]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - include/fcntl.h
Add per-thread cache to malloc
[thirdparty/glibc.git] / include / fcntl.h
index b645ffc0005629cc5ea1dfc4237acc903ff72900..9a007c358ce28d18bfed4df45987f19cddaa4654 100644 (file)
@@ -8,8 +8,7 @@ libc_hidden_proto (__open64)
 extern int __libc_open64 (const char *file, int oflag, ...);
 extern int __libc_open (const char *file, int oflag, ...);
 libc_hidden_proto (__libc_open)
-extern int __libc_creat (const char *file, mode_t mode);
-extern int __libc_fcntl (int fd, int cmd, ...);
+extern int __libc_fcntl (int fd, int cmd, ...) attribute_hidden;
 #ifndef NO_CANCELLATION
 extern int __fcntl_nocancel (int fd, int cmd, ...) attribute_hidden;
 libc_hidden_proto (__libc_fcntl)
@@ -31,20 +30,12 @@ extern int __openat_2 (int __fd, const char *__path, int __oflag);
 extern int __openat64_2 (int __fd, const char *__path, int __oflag);
 
 
-/* Helper functions for the various *at functions.  For Linux.  */
-extern void __atfct_seterrno (int errval, int fd, const char *buf)
-  attribute_hidden;
-extern void __atfct_seterrno_2 (int errval, int fd1, const char *buf1,
-                               int fd2, const char *buf2)
-  attribute_hidden;
-
+#if IS_IN (rtld)
+#  include <dl-fcntl.h>
+#endif
 
 /* Flag determining whether the *at system calls are available.  */
 extern int __have_atfcts attribute_hidden;
-
-#ifdef O_CLOEXEC
-extern int __have_o_cloexec attribute_hidden;
-#endif
 #endif
 
 #endif