This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix FD_CLOEXEC comment typos


Hi!

FD_CLOEXEC is F_SETFD/F_GETFD flag, F_SETFL/F_GETFL work with O_* bits.

2006-07-12  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/i386/bits/fcntl.h (FD_CLOEXEC): Fix comment.
	* sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (FD_CLOEXEC): Likewise.
	* sysdeps/unix/sysv/linux/s390/bits/fcntl.h (FD_CLOEXEC): Likewise.
	* sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (FD_CLOEXEC): Likewise.
	* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (FD_CLOEXEC): Likewise.
	* sysdeps/unix/sysv/linux/sh/bits/fcntl.h (FD_CLOEXEC): Likewise.
	* sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (FD_CLOEXEC): Likewise.
	* sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (FD_CLOEXEC): Likewise.

--- libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h.jj	2006-05-10 14:03:55.000000000 +0200
+++ libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h	2006-07-12 12:07:40.000000000 +0200
@@ -94,7 +94,7 @@
 # define F_NOTIFY	1026	/* Request notfications on a directory.	 */
 #endif
 
-/* for F_[GET|SET]FL */
+/* for F_[GET|SET]FD */
 #define FD_CLOEXEC	1	/* actually anything with low bit set goes */
 
 /* For posix fcntl() and `l_type' field of a `struct flock' for lockf() */
--- libc/sysdeps/unix/sysv/linux/s390/bits/fcntl.h.jj	2006-05-10 14:03:55.000000000 +0200
+++ libc/sysdeps/unix/sysv/linux/s390/bits/fcntl.h	2006-07-12 12:07:49.000000000 +0200
@@ -114,7 +114,7 @@
 # define F_NOTIFY	1026	/* Request notfications on a directory.	 */
 #endif
 
-/* For F_[GET|SET]FL.  */
+/* For F_[GET|SET]FD.  */
 #define FD_CLOEXEC	1	/* actually anything with low bit set goes */
 
 /* For posix fcntl() and `l_type' field of a `struct flock' for lockf().  */
--- libc/sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h.jj	2006-05-10 14:03:55.000000000 +0200
+++ libc/sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h	2006-07-12 12:07:54.000000000 +0200
@@ -99,7 +99,7 @@
 # define F_NOTIFY	1026	/* Request notfications on a directory.	 */
 #endif
 
-/* For F_[GET|SET]FL.  */
+/* For F_[GET|SET]FD.  */
 #define FD_CLOEXEC	1	/* actually anything with low bit set goes */
 
 /* For posix fcntl() and `l_type' field of a `struct flock' for lockf().  */
--- libc/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h.jj	2006-05-10 14:03:57.000000000 +0200
+++ libc/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h	2006-07-12 12:08:00.000000000 +0200
@@ -116,7 +116,7 @@
 # define F_SETLKW64	14	/* Set record locking info (blocking).  */
 #endif
 
-/* for F_[GET|SET]FL */
+/* for F_[GET|SET]FD */
 #define FD_CLOEXEC	1	/* actually anything with low bit set goes */
 
 /* For posix fcntl() and `l_type' field of a `struct flock' for lockf().  */
--- libc/sysdeps/unix/sysv/linux/sh/bits/fcntl.h.jj	2006-05-10 14:03:57.000000000 +0200
+++ libc/sysdeps/unix/sysv/linux/sh/bits/fcntl.h	2006-07-12 12:08:05.000000000 +0200
@@ -99,7 +99,7 @@
 # define F_NOTIFY	1026	/* Request notfications on a directory.	 */
 #endif
 
-/* For F_[GET|SET]FL.  */
+/* For F_[GET|SET]FD.  */
 #define FD_CLOEXEC	1	/* actually anything with low bit set goes */
 
 /* For posix fcntl() and `l_type' field of a `struct flock' for lockf().  */
--- libc/sysdeps/unix/sysv/linux/i386/bits/fcntl.h.jj	2006-05-10 14:03:55.000000000 +0200
+++ libc/sysdeps/unix/sysv/linux/i386/bits/fcntl.h	2006-07-12 12:08:09.000000000 +0200
@@ -99,7 +99,7 @@
 # define F_NOTIFY	1026	/* Request notfications on a directory.	 */
 #endif
 
-/* For F_[GET|SET]FL.  */
+/* For F_[GET|SET]FD.  */
 #define FD_CLOEXEC	1	/* actually anything with low bit set goes */
 
 /* For posix fcntl() and `l_type' field of a `struct flock' for lockf().  */
--- libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h.jj	2006-05-10 14:03:55.000000000 +0200
+++ libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h	2006-07-12 12:08:14.000000000 +0200
@@ -95,7 +95,7 @@
 # define F_NOTIFY	1026	/* Request notfications on a directory.	 */
 #endif
 
-/* For F_[GET|SET]FL.  */
+/* For F_[GET|SET]FD.  */
 #define FD_CLOEXEC	1	/* actually anything with low bit set goes */
 
 /* For posix fcntl() and `l_type' field of a `struct flock' for lockf().  */
--- libc/sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h.jj	2006-05-10 14:03:57.000000000 +0200
+++ libc/sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h	2006-07-12 12:08:19.000000000 +0200
@@ -113,7 +113,7 @@
 # define F_NOTIFY	1026	/* Request notfications on a directory.	 */
 #endif
 
-/* For F_[GET|SET]FL.  */
+/* For F_[GET|SET]FD.  */
 #define FD_CLOEXEC	1	/* actually anything with low bit set goes */
 
 /* For posix fcntl() and `l_type' field of a `struct flock' for lockf().  */

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]