From 7145fac593684e0df4113ff20c4436a6e5ae467b Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Sat, 3 May 2008 12:49:10 +0000 Subject: - implement splice,vmsplice,tee for all arches - synch F_LINUX_SPECIFIC_BASE related fcntls for all arches --- libc/sysdeps/linux/arm/bits/fcntl.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libc/sysdeps/linux/arm/bits') diff --git a/libc/sysdeps/linux/arm/bits/fcntl.h b/libc/sysdeps/linux/arm/bits/fcntl.h index ad05b533f..3ea24c593 100644 --- a/libc/sysdeps/linux/arm/bits/fcntl.h +++ b/libc/sysdeps/linux/arm/bits/fcntl.h @@ -50,7 +50,9 @@ # define O_NOFOLLOW 0100000 /* Do not follow links. */ # define O_DIRECT 0200000 /* Direct disk access. */ # define O_NOATIME 01000000 /* Do not set atime. */ +# if 0 # define O_CLOEXEC 02000000 /* Set close_on_exec. */ +# endif #endif /* For now Linux has synchronisity options for data and read operations. @@ -99,7 +101,7 @@ # define F_GETLEASE 1025 /* Enquire what lease is active. */ # define F_NOTIFY 1026 /* Request notfications on a directory. */ # define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with - close-on-exit set. */ + close-on-exit set on new fd. */ #endif /* For F_[GET|SET]FD. */ @@ -188,6 +190,7 @@ struct flock64 #ifdef __USE_GNU +#if 0 /* Flags for SYNC_FILE_RANGE. */ # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages in the range before performing the @@ -198,6 +201,7 @@ struct flock64 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in the range after performing the write. */ +#endif /* Flags for SPLICE and VMSPLICE. */ # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */ @@ -235,6 +239,5 @@ extern ssize_t splice (int __fdin, __off64_t *__offin, int __fdout, extern ssize_t tee (int __fdin, int __fdout, size_t __len, unsigned int __flags); -#endif - __END_DECLS + -- cgit v1.2.3