Ignore:
File:
1 edited

Legend:

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

    r9b8be79 rbc56f30  
    3838#include <sys/types.h>
    3939
    40 #undef O_CREAT
    41 #undef O_EXCL
    42 #undef O_TRUNC
    43 #undef O_APPEND
    44 #undef O_RDONLY
    45 #undef O_RDWR
    46 #undef O_WRONLY
    4740#define O_CREAT   1
    4841#define O_EXCL    2
     
    5447
    5548/* Mask for file access modes. */
    56 #undef O_ACCMODE
    5749#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
    5850
    5951/* Dummy compatibility flag */
    60 #undef O_NOCTTY
    6152#define O_NOCTTY 0
    6253
    6354/* fcntl commands */
    64 #undef F_DUPFD
    65 #undef F_DUPFD_CLOEXEC
    66 #undef F_GETFD
    67 #undef F_SETFD
    68 #undef F_GETFL
    69 #undef F_SETFL
    70 #undef F_GETOWN
    71 #undef F_SETOWN
    72 #undef F_GETLK
    73 #undef F_SETLK
    74 #undef F_SETLKW
    7555#define F_DUPFD            0 /* Duplicate file descriptor. */
    7656#define F_DUPFD_CLOEXEC    1 /* Same as F_DUPFD but with FD_CLOEXEC flag set. */
     
    8666
    8767/* File descriptor flags used with F_GETFD and F_SETFD. */
    88 #undef FD_CLOEXEC
    8968#define FD_CLOEXEC         1 /* Close on exec. */
     69
     70__C_DECLS_BEGIN;
    9071
    9172extern int open(const char *pathname, int flags, ...);
    9273extern int fcntl(int fd, int cmd, ...);
     74
     75__C_DECLS_END;
    9376
    9477#endif /* POSIX_FCNTL_H_ */
Note: See TracChangeset for help on using the changeset viewer.