Ignore:
File:
1 edited

Legend:

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

    rc8830a2 rfdf97f6  
    3636#define POSIX_FCNTL_H_
    3737
     38#ifndef __POSIX_DEF__
     39#define __POSIX_DEF__(x) x
     40#endif
     41
    3842#include "sys/types.h"
    3943#include "libc/fcntl.h"
     
    4347#undef O_ACCMODE
    4448#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
    45 
    46 /* Dummy compatibility flag */
    47 #undef O_NOCTTY
    48 #define O_NOCTTY 0
    4949
    5050/* fcntl commands */
     
    7676#define FD_CLOEXEC         1 /* Close on exec. */
    7777
    78 extern int posix_open(const char *pathname, int flags, ...);
    79 extern int posix_fcntl(int fd, int cmd, ...);
     78extern int __POSIX_DEF__(open)(const char *pathname, int flags, ...);
     79extern int __POSIX_DEF__(fcntl)(int fd, int cmd, ...);
    8080
    81 #ifndef LIBPOSIX_INTERNAL
    82         #define fcntl posix_fcntl
    83         #define open posix_open
    84 #endif
    8581
    8682#endif /* POSIX_FCNTL_H_ */
Note: See TracChangeset for help on using the changeset viewer.