Ignore:
File:
1 edited

Legend:

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

    r87ba48cb rad28599  
    3636#define POSIX_FCNTL_H_
    3737
    38 #include "sys/types.h"
    3938#include "libc/fcntl.h"
    40 
    41 /* Mask for file access modes. */
    42 #undef O_ACCMODE
    43 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
    4439
    4540/* fcntl commands */
    4641#undef F_DUPFD
    47 #undef F_DUPFD_CLOEXEC
    4842#undef F_GETFD
    4943#undef F_SETFD
     
    5246#undef F_GETOWN
    5347#undef F_SETOWN
    54 #undef F_GETLK
    55 #undef F_SETLK
    56 #undef F_SETLKW
    57 #define F_DUPFD            0 /* Duplicate file descriptor. */
    58 #define F_DUPFD_CLOEXEC    1 /* Same as F_DUPFD but with FD_CLOEXEC flag set. */
    59 #define F_GETFD            2 /* Get file descriptor flags. */
    60 #define F_SETFD            3 /* Set file descriptor flags. */
    61 #define F_GETFL            4 /* Get file status and access flags. */
    62 #define F_SETFL            5 /* Set file status flags. */
    63 #define F_GETOWN           6 /* Get socket owner. */
    64 #define F_SETOWN           7 /* Set socket owner. */
    65 #define F_GETLK            8 /* Get locking information. */
    66 #define F_SETLK            9 /* Set locking information. */
    67 #define F_SETLKW          10 /* Set locking information; wait if blocked. */
     48#define F_DUPFD         0       /* Duplicate file descriptor. */
     49#define F_GETFD         1       /* Get file descriptor flags. */
     50#define F_SETFD         2       /* Set file descriptor flags. */
     51#define F_GETFL         3       /* Get file status flags. */
     52#define F_SETFL         4       /* Set file status flags. */
     53#define F_GETOWN        5       /* Get owner. */
     54#define F_SETOWN        6       /* Set owner. */
    6855
    6956/* File descriptor flags used with F_GETFD and F_SETFD. */
    7057#undef FD_CLOEXEC
    71 #define FD_CLOEXEC         1 /* Close on exec. */
     58#define FD_CLOEXEC      1       /* Close on exec. */
    7259
    7360extern int posix_fcntl(int fd, int cmd, ...);
Note: See TracChangeset for help on using the changeset viewer.