Source-Changes-HG archive

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

[src/trunk]: src Use C++ compatible declaration for posix_spawn (instead of t...



details:   https://anonhg.NetBSD.org/src/rev/937e2f58c76e
branches:  trunk
changeset: 777544:937e2f58c76e
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Feb 22 17:51:01 2012 +0000

description:
Use C++ compatible declaration for posix_spawn (instead of the C99 specific
posix one).

diffstat:

 include/spawn.h             |  6 +++---
 lib/libc/gen/posix_spawnp.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (49 lines):

diff -r a72ffadcd1d5 -r 937e2f58c76e include/spawn.h
--- a/include/spawn.h   Wed Feb 22 17:48:04 2012 +0000
+++ b/include/spawn.h   Wed Feb 22 17:51:01 2012 +0000
@@ -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 <ed%FreeBSD.org@localhost>
@@ -40,10 +40,10 @@
  */
 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
diff -r a72ffadcd1d5 -r 937e2f58c76e lib/libc/gen/posix_spawnp.c
--- a/lib/libc/gen/posix_spawnp.c       Wed Feb 22 17:48:04 2012 +0000
+++ b/lib/libc/gen/posix_spawnp.c       Wed Feb 22 17:51:01 2012 +0000
@@ -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 @@
 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;



Home | Main Index | Thread Index | Old Index