Module Name: src Committed By: jdc Date: Thu Aug 9 06:49:23 UTC 2012
Modified Files: src/lib/libc/gen [netbsd-6]: sysconf.c src/sys/sys [netbsd-6]: unistd.h Log Message: 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(). To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.33.22.1 src/lib/libc/gen/sysconf.c cvs rdiff -u -r1.52 -r1.52.18.1 src/sys/sys/unistd.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/gen/sysconf.c diff -u src/lib/libc/gen/sysconf.c:1.33 src/lib/libc/gen/sysconf.c:1.33.22.1 --- src/lib/libc/gen/sysconf.c:1.33 Wed Aug 6 17:17:04 2008 +++ src/lib/libc/gen/sysconf.c Thu Aug 9 06:49:23 2012 @@ -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 @@ sysconf(int name) return _POSIX_REGEXP; case _SC_SHELL: return _POSIX_SHELL; + case _SC_SPAWN: + return _POSIX_SPAWN; case _SC_SYMLOOP_MAX: return MAXSYMLINKS; Index: src/sys/sys/unistd.h diff -u src/sys/sys/unistd.h:1.52 src/sys/sys/unistd.h:1.52.18.1 --- src/sys/sys/unistd.h:1.52 Sun Aug 30 16:38:48 2009 +++ src/sys/sys/unistd.h Thu Aug 9 06:49:23 2012 @@ -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