Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/internal/common.h

    r75406dc r4cf8ca6  
    4343    __func__, __FILE__, __LINE__), abort())
    4444
    45 /* A little helper macro to avoid typing this over and over. */
    46 #define errnify(func, ...) ({ \
    47         int rc = func(__VA_ARGS__); \
    48         if (rc < 0) { \
    49                 errno = -rc; \
    50                 rc = -1; \
    51         } \
    52         rc; \
    53 })
    54 
    5545#endif /* LIBPOSIX_COMMON_H_ */
    5646
Note: See TracChangeset for help on using the changeset viewer.