Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc Provide a backward-compatible conditional define of...
details: https://anonhg.NetBSD.org/src/rev/2807db734c6d
branches: trunk
changeset: 332487:2807db734c6d
user: he <he%NetBSD.org@localhost>
date: Wed Sep 24 07:53:06 2014 +0000
description:
Provide a backward-compatible conditional define of O_CLOEXEC
for those systems which lack it, since these files are used in
tools builds.
diffstat:
lib/libc/gen/getcap.c | 8 ++++++--
lib/libc/hash/hashhl.c | 5 ++++-
lib/libc/md/mdXhl.c | 5 ++++-
3 files changed, 14 insertions(+), 4 deletions(-)
diffs (67 lines):
diff -r 8a5efd88575e -r 2807db734c6d lib/libc/gen/getcap.c
--- a/lib/libc/gen/getcap.c Wed Sep 24 01:16:04 2014 +0000
+++ b/lib/libc/gen/getcap.c Wed Sep 24 07:53:06 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getcap.c,v 1.54 2014/09/18 13:58:20 christos Exp $ */
+/* $NetBSD: getcap.c,v 1.55 2014/09/24 07:53:06 he 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.54 2014/09/18 13:58:20 christos Exp $");
+__RCSID("$NetBSD: getcap.c,v 1.55 2014/09/24 07:53:06 he Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -65,6 +65,10 @@
#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 8a5efd88575e -r 2807db734c6d lib/libc/hash/hashhl.c
--- a/lib/libc/hash/hashhl.c Wed Sep 24 01:16:04 2014 +0000
+++ b/lib/libc/hash/hashhl.c Wed Sep 24 07:53:06 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hashhl.c,v 1.5 2014/09/18 13:58:20 christos Exp $ */
+/* $NetBSD: hashhl.c,v 1.6 2014/09/24 07:53:06 he Exp $ */
/*
* ----------------------------------------------------------------------------
@@ -60,6 +60,9 @@
#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 8a5efd88575e -r 2807db734c6d lib/libc/md/mdXhl.c
--- a/lib/libc/md/mdXhl.c Wed Sep 24 01:16:04 2014 +0000
+++ b/lib/libc/md/mdXhl.c Wed Sep 24 07:53:06 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mdXhl.c,v 1.11 2014/09/18 13:58:20 christos Exp $ */
+/* $NetBSD: mdXhl.c,v 1.12 2014/09/24 07:53:07 he Exp $ */
/*
* ----------------------------------------------------------------------------
@@ -42,6 +42,9 @@
#include <stdlib.h>
#include <unistd.h>
+#ifndef O_CLOEXEC /* For tools, as in NetBSD 5.2 or earlier... */
+#define O_CLOEXEC 0
+#endif
char *
Home |
Main Index |
Thread Index |
Old Index