Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc undo, the right place for this is compat_defs.h



details:   https://anonhg.NetBSD.org/src/rev/c4a5442cb407
branches:  trunk
changeset: 332491:c4a5442cb407
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Sep 24 13:18:52 2014 +0000

description:
undo, the right place for this is compat_defs.h

diffstat:

 lib/libc/gen/getcap.c  |  8 ++------
 lib/libc/hash/hashhl.c |  6 +-----
 lib/libc/md/mdXhl.c    |  7 +------
 3 files changed, 4 insertions(+), 17 deletions(-)

diffs (70 lines):

diff -r de434b6df5be -r c4a5442cb407 lib/libc/gen/getcap.c
--- a/lib/libc/gen/getcap.c     Wed Sep 24 13:17:35 2014 +0000
+++ b/lib/libc/gen/getcap.c     Wed Sep 24 13:18:52 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getcap.c,v 1.55 2014/09/24 07:53:06 he Exp $   */
+/*     $NetBSD: getcap.c,v 1.56 2014/09/24 13:18:52 christos Exp $     */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)getcap.c   8.3 (Berkeley) 3/25/94";
 #else
-__RCSID("$NetBSD: getcap.c,v 1.55 2014/09/24 07:53:06 he Exp $");
+__RCSID("$NetBSD: getcap.c,v 1.56 2014/09/24 13:18:52 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -65,10 +65,6 @@
 #include <string.h>
 #include <unistd.h>
 
-#ifndef O_CLOEXEC /* For tools, as in NetBSD 5.2 or earlier... */
-#define O_CLOEXEC 0
-#endif
-
 #if defined(__weak_alias) && !defined(SMALL)
 __weak_alias(cgetcap,_cgetcap)
 __weak_alias(cgetclose,_cgetclose)
diff -r de434b6df5be -r c4a5442cb407 lib/libc/hash/hashhl.c
--- a/lib/libc/hash/hashhl.c    Wed Sep 24 13:17:35 2014 +0000
+++ b/lib/libc/hash/hashhl.c    Wed Sep 24 13:18:52 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hashhl.c,v 1.6 2014/09/24 07:53:06 he Exp $ */
+/* $NetBSD: hashhl.c,v 1.7 2014/09/24 13:18:52 christos Exp $ */
 
 /*
  * ----------------------------------------------------------------------------
@@ -60,10 +60,6 @@
 #define        MIN(x,y)        ((x)<(y)?(x):(y))
 #endif /* !MIN */
 
-#ifndef O_CLOEXEC /* For tools, as in NetBSD 5.2 or earlier... */
-#define O_CLOEXEC 0     
-#endif
-
 char *
 FNPREFIX(End)(HASH_CTX *ctx, char *buf)
 {
diff -r de434b6df5be -r c4a5442cb407 lib/libc/md/mdXhl.c
--- a/lib/libc/md/mdXhl.c       Wed Sep 24 13:17:35 2014 +0000
+++ b/lib/libc/md/mdXhl.c       Wed Sep 24 13:18:52 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mdXhl.c,v 1.12 2014/09/24 07:53:07 he Exp $    */
+/*     $NetBSD: mdXhl.c,v 1.13 2014/09/24 13:18:52 christos Exp $      */
 
 /*
  * ----------------------------------------------------------------------------
@@ -42,11 +42,6 @@
 #include <stdlib.h>
 #include <unistd.h>
 
-#ifndef O_CLOEXEC /* For tools, as in NetBSD 5.2 or earlier... */
-#define O_CLOEXEC 0
-#endif
-
-
 char *
 MDNAME(End)(MDNAME(_CTX) *ctx, char *buf)
 {



Home | Main Index | Thread Index | Old Index