Module Name: src Committed By: martin Date: Wed Feb 22 17:51:01 UTC 2012
Modified Files: src/include: spawn.h src/lib/libc/gen: posix_spawnp.c Log Message: Use C++ compatible declaration for posix_spawn (instead of the C99 specific posix one). To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/include/spawn.h cvs rdiff -u -r1.1 -r1.2 src/lib/libc/gen/posix_spawnp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/include/spawn.h diff -u src/include/spawn.h:1.3 src/include/spawn.h:1.4 --- src/include/spawn.h:1.3 Tue Feb 21 10:54:07 2012 +++ src/include/spawn.h Wed Feb 22 17:51:01 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: spawn.h,v 1.3 2012/02/21 10:54:07 martin Exp $ */ +/* $NetBSD: spawn.h,v 1.4 2012/02/22 17:51:01 martin Exp $ */ /*- * Copyright (c) 2008 Ed Schouten <e...@freebsd.org> @@ -40,10 +40,10 @@ __BEGIN_DECLS */ int posix_spawn(pid_t * __restrict, const char * __restrict, const posix_spawn_file_actions_t *, const posix_spawnattr_t * __restrict, - char * const [__conly_restrict], char * const [__conly_restrict]); + char * const *__restrict, char * const *__restrict); int posix_spawnp(pid_t * __restrict, const char * __restrict, const posix_spawn_file_actions_t *, const posix_spawnattr_t * __restrict, - char * const [__conly_restrict], char * const [__conly_restrict]); + char * const *__restrict, char * const *__restrict); /* * File descriptor actions Index: src/lib/libc/gen/posix_spawnp.c diff -u src/lib/libc/gen/posix_spawnp.c:1.1 src/lib/libc/gen/posix_spawnp.c:1.2 --- src/lib/libc/gen/posix_spawnp.c:1.1 Sat Feb 11 23:31:24 2012 +++ src/lib/libc/gen/posix_spawnp.c Wed Feb 22 17:51:01 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: posix_spawnp.c,v 1.1 2012/02/11 23:31:24 martin Exp $ */ +/* $NetBSD: posix_spawnp.c,v 1.2 2012/02/22 17:51:01 martin Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: posix_spawnp.c,v 1.1 2012/02/11 23:31:24 martin Exp $"); +__RCSID("$NetBSD: posix_spawnp.c,v 1.2 2012/02/22 17:51:01 martin Exp $"); #endif /* LIBC_SCCS and not lint */ #include <stdio.h> @@ -45,7 +45,7 @@ __RCSID("$NetBSD: posix_spawnp.c,v 1.1 2 int posix_spawnp(pid_t * __restrict pid, const char * __restrict file, const posix_spawn_file_actions_t *fa, const posix_spawnattr_t * __restrict sa, - char * const cav[__restrict], char * const env[__restrict]) + char * const *__restrict cav, char * const *__restrict env) { char fpath[FILENAME_MAX], *last, *p; char *path;