fcntl.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef _FCNTL_H
  2. #include <io/fcntl.h>
  3. #ifndef _ISOMAC
  4. /* Now define the internal interfaces. */
  5. extern int __open64 (const char *__file, int __oflag, ...);
  6. libc_hidden_proto (__open64)
  7. extern int __libc_open64 (const char *file, int oflag, ...);
  8. extern int __libc_open (const char *file, int oflag, ...);
  9. libc_hidden_proto (__libc_open)
  10. extern int __libc_fcntl (int fd, int cmd, ...);
  11. libc_hidden_proto (__libc_fcntl)
  12. extern int __fcntl64_nocancel_adjusted (int fd, int cmd, void *arg)
  13. attribute_hidden;
  14. extern int __libc_fcntl64 (int fd, int cmd, ...);
  15. libc_hidden_proto (__libc_fcntl64)
  16. extern int __open (const char *__file, int __oflag, ...);
  17. libc_hidden_proto (__open)
  18. extern int __fcntl (int __fd, int __cmd, ...);
  19. libc_hidden_proto (__fcntl)
  20. extern int __fcntl64 (int __fd, int __cmd, ...) attribute_hidden;
  21. libc_hidden_proto (__fcntl64)
  22. extern int __openat (int __fd, const char *__file, int __oflag, ...)
  23. __nonnull ((2));
  24. libc_hidden_proto (__openat)
  25. extern int __openat64 (int __fd, const char *__file, int __oflag, ...)
  26. __nonnull ((2));
  27. libc_hidden_proto (__openat64)
  28. extern int __open_2 (const char *__path, int __oflag);
  29. extern int __open64_2 (const char *__path, int __oflag);
  30. extern int __openat_2 (int __fd, const char *__path, int __oflag);
  31. extern int __openat64_2 (int __fd, const char *__path, int __oflag);
  32. #if IS_IN (rtld)
  33. # include <dl-fcntl.h>
  34. #endif
  35. /* Flag determining whether the *at system calls are available. */
  36. extern int __have_atfcts attribute_hidden;
  37. #endif
  38. #endif