Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src Pull up revisions:
details: https://anonhg.NetBSD.org/src/rev/4b56d09307e6
branches: netbsd-6
changeset: 774396:4b56d09307e6
user: jdc <jdc%NetBSD.org@localhost>
date: Thu Aug 09 06:49:23 2012 +0000
description:
Pull up revisions:
src/lib/libc/gen/sysconf.c revision 1.34
src/sys/sys/unistd.h revision 1.53
(requested by martin in ticket #460).
Define _POSIX_SPAWN in unistd.h and also provide its value via sysconf(),
as required by posix since we support posix_spawn().
diffstat:
lib/libc/gen/sysconf.c | 6 ++++--
sys/sys/unistd.h | 10 +++++++++-
2 files changed, 13 insertions(+), 3 deletions(-)
diffs (58 lines):
diff -r ddde8de1980c -r 4b56d09307e6 lib/libc/gen/sysconf.c
--- a/lib/libc/gen/sysconf.c Thu Aug 09 06:46:37 2012 +0000
+++ b/lib/libc/gen/sysconf.c Thu Aug 09 06:49:23 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysconf.c,v 1.33 2008/08/06 17:17:04 matt Exp $ */
+/* $NetBSD: sysconf.c,v 1.33.22.1 2012/08/09 06:49:23 jdc Exp $ */
/*-
* Copyright (c) 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)sysconf.c 8.2 (Berkeley) 3/20/94";
#else
-__RCSID("$NetBSD: sysconf.c,v 1.33 2008/08/06 17:17:04 matt Exp $");
+__RCSID("$NetBSD: sysconf.c,v 1.33.22.1 2012/08/09 06:49:23 jdc Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -346,6 +346,8 @@
return _POSIX_REGEXP;
case _SC_SHELL:
return _POSIX_SHELL;
+ case _SC_SPAWN:
+ return _POSIX_SPAWN;
case _SC_SYMLOOP_MAX:
return MAXSYMLINKS;
diff -r ddde8de1980c -r 4b56d09307e6 sys/sys/unistd.h
--- a/sys/sys/unistd.h Thu Aug 09 06:46:37 2012 +0000
+++ b/sys/sys/unistd.h Thu Aug 09 06:49:23 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: unistd.h,v 1.52 2009/08/30 16:38:48 christos Exp $ */
+/* $NetBSD: unistd.h,v 1.52.18.1 2012/08/09 06:49:23 jdc Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -62,6 +62,11 @@
#define _POSIX_VERSION 200112L
#define _POSIX2_VERSION 200112L
+/*
+ * We support the posix_spawn() family of functions (unconditionally).
+ */
+#define _POSIX_SPAWN 200809L
+
/* execution-time symbolic constants */
/*
@@ -298,6 +303,9 @@
#define _SC_2_PBS_MESSAGE 84
#define _SC_2_PBS_TRACK 85
+/* This is implemented */
+#define _SC_SPAWN 86
+
#ifdef _NETBSD_SOURCE
/* Commonly provided sysconf() extensions */
#define _SC_NPROCESSORS_CONF 1001
Home |
Main Index |
Thread Index |
Old Index