Ignore:
File:
1 edited

Legend:

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

    rc8830a2 rb19e892  
    3636#define POSIX_FCNTL_H_
    3737
     38#ifndef __POSIX_DEF__
     39#define __POSIX_DEF__(x) x
     40#endif
     41
    3842#include "sys/types.h"
    39 #include "libc/fcntl.h"
    4043#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
    4159
    4260/* Mask for file access modes. */
     
    7694#define FD_CLOEXEC         1 /* Close on exec. */
    7795
    78 extern int posix_open(const char *pathname, int flags, ...);
    79 extern int posix_fcntl(int fd, int cmd, ...);
     96extern int __POSIX_DEF__(open)(const char *pathname, int flags, ...);
     97extern int __POSIX_DEF__(fcntl)(int fd, int cmd, ...);
    8098
    81 #ifndef LIBPOSIX_INTERNAL
    82         #define fcntl posix_fcntl
    83         #define open posix_open
    84 #endif
    8599
    86100#endif /* POSIX_FCNTL_H_ */
Note: See TracChangeset for help on using the changeset viewer.