Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/fcntl.h

    r6817eba r87ba48cb  
    3838#include "sys/types.h"
    3939#include "libc/fcntl.h"
    40 #include "errno.h"
    4140
    4241/* Mask for file access modes. */
     
    7271#define FD_CLOEXEC         1 /* Close on exec. */
    7372
    74 #undef open
    75 #define open(path, ...) \
    76         ({ \
    77                 int rc = open(path, ##__VA_ARGS__); \
    78                 if (rc < 0) { \
    79                         errno = -rc; \
    80                         rc = -1; \
    81                 } \
    82                 rc; \
    83         })
    84 
    8573extern int posix_fcntl(int fd, int cmd, ...);
    8674
Note: See TracChangeset for help on using the changeset viewer.