Ignore:
File:
1 edited

Legend:

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

    rb19e892 rc8830a2  
    3636#define POSIX_FCNTL_H_
    3737
    38 #ifndef __POSIX_DEF__
    39 #define __POSIX_DEF__(x) x
    40 #endif
    41 
    4238#include "sys/types.h"
     39#include "libc/fcntl.h"
    4340#include "errno.h"
    44 
    45 #undef O_CREAT
    46 #undef O_EXCL
    47 #undef O_TRUNC
    48 #undef O_APPEND
    49 #undef O_RDONLY
    50 #undef O_RDWR
    51 #undef O_WRONLY
    52 #define O_CREAT   1
    53 #define O_EXCL    2
    54 #define O_TRUNC   4
    55 #define O_APPEND  8
    56 #define O_RDONLY  16
    57 #define O_RDWR    32
    58 #define O_WRONLY  64
    5941
    6042/* Mask for file access modes. */
     
    9476#define FD_CLOEXEC         1 /* Close on exec. */
    9577
    96 extern int __POSIX_DEF__(open)(const char *pathname, int flags, ...);
    97 extern int __POSIX_DEF__(fcntl)(int fd, int cmd, ...);
     78extern int posix_open(const char *pathname, int flags, ...);
     79extern int posix_fcntl(int fd, int cmd, ...);
    9880
     81#ifndef LIBPOSIX_INTERNAL
     82        #define fcntl posix_fcntl
     83        #define open posix_open
     84#endif
    9985
    10086#endif /* POSIX_FCNTL_H_ */
Note: See TracChangeset for help on using the changeset viewer.