[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/8] gnulib already defines O_CLOEXEC.
From: |
James Youngman |
Subject: |
[PATCH 2/8] gnulib already defines O_CLOEXEC. |
Date: |
Sun, 5 Jun 2011 01:11:51 +0100 |
* lib/fdleak.c: gnulib's fcntl.h always defines O_CLOEXEC, so
don't define it here.
---
ChangeLog | 4 ++++
lib/fdleak.c | 4 ----
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 798301f..624d848 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2011-06-04 James Youngman <address@hidden>
+ gnulib already defines O_CLOEXEC.
+ * lib/fdleak.c: gnulib's fcntl.h always defines O_CLOEXEC, so
+ don't define it here.
+
Add internationalisation support to bigram but not regexprops.
* locate/bigram.c: Use libintl.h.
(main): Call bindtextdomain.
diff --git a/lib/fdleak.c b/lib/fdleak.c
index 05ad2fc..f366666 100644
--- a/lib/fdleak.c
+++ b/lib/fdleak.c
@@ -59,10 +59,6 @@ static int *non_cloexec_fds;
static size_t num_cloexec_fds;
-#if !defined(O_CLOEXEC)
-#define O_CLOEXEC 0
-#endif
-
/* Determine the value of the largest open fd, on systems that
* offer /proc/self/fd. */
static int
--
1.7.2.5
- [PATCH 1/8] Add internationalisation support to bigram but not regexprops., James Youngman, 2011/06/04
- [PATCH 6/8] Silence some false positives for sc_prohibit_always_true_header_tests., James Youngman, 2011/06/04
- [PATCH 8/8] Avoid some false positives for the sc_prohibit_doubled_word check., James Youngman, 2011/06/04
- [PATCH 3/8] Use the gnulib byteswap and uname modules., James Youngman, 2011/06/04
- [PATCH 2/8] gnulib already defines O_CLOEXEC.,
James Youngman <=
- [PATCH 4/8] Update xargs error message., James Youngman, 2011/06/04
- [PATCH 5/8] Prefer "cannot" to "can not"., James Youngman, 2011/06/04
- [PATCH 7/8] Include dirent.h uncontintionally (since gnulib provides it)., James Youngman, 2011/06/04