aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-29 22:56:03 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-29 23:00:17 +0100
commit99dfbef48da238e9a29f83acf3897c2901e5de17 (patch)
tree33ae3a62ded884edbc173b7157a5c248ca853e62
parentmalloc: Use assert.h's assert macro (diff)
downloadglibc-99dfbef48da238e9a29f83acf3897c2901e5de17.tar.gz
glibc-99dfbef48da238e9a29f83acf3897c2901e5de17.tar.bz2
glibc-99dfbef48da238e9a29f83acf3897c2901e5de17.zip
hurd: Fix comments for FREAD and FWRITE
* bits/fcntl.h: Fix comment for FREAD and FWRITE. * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
-rw-r--r--ChangeLog2
-rw-r--r--bits/fcntl.h5
-rw-r--r--sysdeps/mach/hurd/bits/fcntl.h2
3 files changed, 4 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 579c4f306b..64b3943546 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -26,6 +26,8 @@
* malloc/malloc.c: Include <assert.h>.
(assert): Do not define.
[!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
+ * bits/fcntl.h: Fix comment for FREAD and FWRITE.
+ * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
2018-01-29 Darius Rad <darius@bluespec.com>
diff --git a/bits/fcntl.h b/bits/fcntl.h
index 7c62303829..671c9e6877 100644
--- a/bits/fcntl.h
+++ b/bits/fcntl.h
@@ -63,10 +63,7 @@
#endif
#ifdef __USE_MISC
-/* Bits in the file status flags returned by F_GETFL.
- These are all the O_* flags, plus FREAD and FWRITE, which are
- independent bits set by which of O_RDONLY, O_WRONLY, and O_RDWR, was
- given to `open'. */
+/* Flags for TIOCFLUSH. */
# define FREAD 1
# define FWRITE 2
diff --git a/sysdeps/mach/hurd/bits/fcntl.h b/sysdeps/mach/hurd/bits/fcntl.h
index cb8a6ff565..2cfaa872a5 100644
--- a/sysdeps/mach/hurd/bits/fcntl.h
+++ b/sysdeps/mach/hurd/bits/fcntl.h
@@ -135,7 +135,7 @@
#ifdef __USE_MISC
-/* Bits in the file status flags returned by F_GETFL. */
+/* Flags for TIOCFLUSH. */
# define FREAD O_RDONLY
# define FWRITE O_WRONLY