1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-08 17:22:05 +03:00

Rename module 'pipe' to 'spawn-pipe'.

* modules/spawn-pipe: New file, renamed from modules/pipe.
(Files, configure.ac, Makefile.am): Update.
(Include): Mention "spawn-pipe.h" instead of "pipe.h".
* modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
* lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
* lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
"spawn-pipe.h" instead of "pipe.h".
* m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
to gl_SPAWN_PIPE.
* modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
(Files, Makefile.am): Update.
* tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
Update.
* tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
Include "spawn-pipe.h" instead of "pipe.h".
* lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
* lib/javacomp.c: Likewise.
* lib/javaversion.c: Likewise.
* lib/pipe-filter-gi.c: Likewise.
* lib/pipe-filter-ii.c: Likewise.
* modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
* modules/javacomp (Depends-on): Likewise.
* modules/javaversion (Depends-on): Likewise.
* modules/pipe-filter-gi (Depends-on): Likewise.
* modules/pipe-filter-ii (Depends-on): Likewise.
* MODULES.html.sh (Executing programs): Update.
* NEWS: Mention the change.
This commit is contained in:
Bruno Haible
2010-12-11 02:00:44 +01:00
parent e2f1471b02
commit 8ecf1d24ee
23 changed files with 135 additions and 75 deletions

View File

@@ -1,3 +1,34 @@
2010-12-10 Bruno Haible <bruno@clisp.org>
Rename module 'pipe' to 'spawn-pipe'.
* modules/spawn-pipe: New file, renamed from modules/pipe.
(Files, configure.ac, Makefile.am): Update.
(Include): Mention "spawn-pipe.h" instead of "pipe.h".
* modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
* lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
* lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
"spawn-pipe.h" instead of "pipe.h".
* m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
to gl_SPAWN_PIPE.
* modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
(Files, Makefile.am): Update.
* tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
Update.
* tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
Include "spawn-pipe.h" instead of "pipe.h".
* lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
* lib/javacomp.c: Likewise.
* lib/javaversion.c: Likewise.
* lib/pipe-filter-gi.c: Likewise.
* lib/pipe-filter-ii.c: Likewise.
* modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
* modules/javacomp (Depends-on): Likewise.
* modules/javaversion (Depends-on): Likewise.
* modules/pipe-filter-gi (Depends-on): Likewise.
* modules/pipe-filter-ii (Depends-on): Likewise.
* MODULES.html.sh (Executing programs): Update.
* NEWS: Mention the change.
2010-12-10 Eric Blake <eblake@redhat.com> 2010-12-10 Eric Blake <eblake@redhat.com>
pipe-posix: new module pipe-posix: new module

View File

@@ -3324,7 +3324,7 @@ func_all_modules ()
func_module findprog-lgpl func_module findprog-lgpl
func_module wait-process func_module wait-process
func_module execute func_module execute
func_module pipe func_module spawn-pipe
func_module pipe-filter-gi func_module pipe-filter-gi
func_module pipe-filter-ii func_module pipe-filter-ii
func_module sh-quote func_module sh-quote

3
NEWS
View File

@@ -12,6 +12,9 @@ User visible incompatible changes
Date Modules Changes Date Modules Changes
2010-12-10 pipe This module is renamed to spawn-pipe. The include
file is renamed to "spawn-pipe.h".
2010-10-05 getdate This module is deprecated. Please use the new 2010-10-05 getdate This module is deprecated. Please use the new
parse-datetime module for the replacement parse-datetime module for the replacement
function parse_datetime(), or help us write function parse_datetime(), or help us write

View File

@@ -27,7 +27,7 @@
#include <string.h> #include <string.h>
#include "execute.h" #include "execute.h"
#include "pipe.h" #include "spawn-pipe.h"
#include "wait-process.h" #include "wait-process.h"
#include "sh-quote.h" #include "sh-quote.h"
#include "safe-read.h" #include "safe-read.h"

View File

@@ -32,7 +32,7 @@
#include "javaversion.h" #include "javaversion.h"
#include "execute.h" #include "execute.h"
#include "pipe.h" #include "spawn-pipe.h"
#include "wait-process.h" #include "wait-process.h"
#include "classpath.h" #include "classpath.h"
#include "xsetenv.h" #include "xsetenv.h"

View File

@@ -31,7 +31,7 @@
#endif #endif
#include "javaexec.h" #include "javaexec.h"
#include "pipe.h" #include "spawn-pipe.h"
#include "wait-process.h" #include "wait-process.h"
#include "error.h" #include "error.h"
#include "gettext.h" #include "gettext.h"

View File

@@ -34,7 +34,7 @@
#endif #endif
#include "error.h" #include "error.h"
#include "pipe.h" #include "spawn-pipe.h"
#include "wait-process.h" #include "wait-process.h"
#include "xalloc.h" #include "xalloc.h"
#include "gettext.h" #include "gettext.h"

View File

@@ -33,7 +33,7 @@
#endif #endif
#include "error.h" #include "error.h"
#include "pipe.h" #include "spawn-pipe.h"
#include "wait-process.h" #include "wait-process.h"
#include "gettext.h" #include "gettext.h"

View File

@@ -19,7 +19,7 @@
#include <config.h> #include <config.h>
/* Specification. */ /* Specification. */
#include "pipe.h" #include "spawn-pipe.h"
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>

View File

@@ -15,8 +15,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef _PIPE_H #ifndef _SPAWN_PIPE_H
#define _PIPE_H #define _SPAWN_PIPE_H
/* Get pid_t. */ /* Get pid_t. */
#include <stdlib.h> #include <stdlib.h>
@@ -144,4 +144,4 @@ extern pid_t create_pipe_bidi (const char *progname,
#endif #endif
#endif /* _PIPE_H */ #endif /* _SPAWN_PIPE_H */

View File

@@ -1,12 +1,12 @@
# pipe.m4 serial 4 # spawn-pipe.m4 serial 1
dnl Copyright (C) 2004, 2008, 2009, 2010 Free Software Foundation, Inc. dnl Copyright (C) 2004, 2008-2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it, dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved. dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_PIPE], AC_DEFUN([gl_SPAWN_PIPE],
[ [
dnl Prerequisites of lib/pipe.c. dnl Prerequisites of lib/spawn-pipe.c.
AC_REQUIRE([AC_C_INLINE]) AC_REQUIRE([AC_C_INLINE])
AC_REQUIRE([AC_TYPE_MODE_T]) AC_REQUIRE([AC_TYPE_MODE_T])
]) ])

View File

@@ -9,7 +9,7 @@ Depends-on:
stdbool stdbool
xmalloca xmalloca
execute execute
pipe spawn-pipe
wait-process wait-process
getline getline
sh-quote sh-quote

View File

@@ -10,7 +10,7 @@ stdbool
unistd unistd
javaversion javaversion
execute execute
pipe spawn-pipe
wait-process wait-process
classpath classpath
xsetenv xsetenv

View File

@@ -10,7 +10,7 @@ lib/javaversion.class
Depends-on: Depends-on:
javaexec javaexec
stdbool stdbool
pipe spawn-pipe
wait-process wait-process
getline getline
gettext-h gettext-h

View File

@@ -1,48 +1,23 @@
Description: Description:
Creation of subprocesses, communicating via pipes. Creation of subprocesses, communicating via pipes.
Status:
obsolete
Notice:
This module is obsolete. Use the module 'spawn-pipe' instead.
Files: Files:
lib/pipe.h
lib/pipe.c
lib/w32spawn.h
m4/pipe.m4
Depends-on: Depends-on:
cloexec spawn-pipe
dup2
environ
error
exit
fatal-signal
gettext-h
open
pipe2
pipe2-safer
spawn
posix_spawnp
posix_spawn_file_actions_init
posix_spawn_file_actions_addclose
posix_spawn_file_actions_adddup2
posix_spawn_file_actions_addopen
posix_spawn_file_actions_destroy
posix_spawnattr_init
posix_spawnattr_setsigmask
posix_spawnattr_setflags
posix_spawnattr_destroy
stdbool
strpbrk
unistd
unistd-safer
wait-process
configure.ac: configure.ac:
gl_PIPE
Makefile.am: Makefile.am:
lib_SOURCES += pipe.h pipe.c w32spawn.h
Include: Include:
"pipe.h" "spawn-pipe.h"
License: License:
GPL GPL

View File

@@ -7,7 +7,7 @@ lib/pipe-filter-gi.c
lib/pipe-filter-aux.h lib/pipe-filter-aux.h
Depends-on: Depends-on:
pipe spawn-pipe
wait-process wait-process
error error
exit exit

View File

@@ -7,7 +7,7 @@ lib/pipe-filter-ii.c
lib/pipe-filter-aux.h lib/pipe-filter-aux.h
Depends-on: Depends-on:
pipe spawn-pipe
wait-process wait-process
error error
exit exit

View File

@@ -1,14 +0,0 @@
Files:
tests/test-pipe.sh
tests/test-pipe.c
tests/macros.h
Depends-on:
progname
configure.ac:
Makefile.am:
TESTS += test-pipe.sh
check_PROGRAMS += test-pipe
test_pipe_LDADD = $(LDADD) @LIBINTL@

51
modules/spawn-pipe Normal file
View File

@@ -0,0 +1,51 @@
Description:
Creation of subprocesses, communicating via pipes.
Files:
lib/spawn-pipe.h
lib/spawn-pipe.c
lib/w32spawn.h
m4/spawn-pipe.m4
Depends-on:
cloexec
dup2
environ
error
exit
fatal-signal
gettext-h
open
pipe2
pipe2-safer
spawn
posix_spawnp
posix_spawn_file_actions_init
posix_spawn_file_actions_addclose
posix_spawn_file_actions_adddup2
posix_spawn_file_actions_addopen
posix_spawn_file_actions_destroy
posix_spawnattr_init
posix_spawnattr_setsigmask
posix_spawnattr_setflags
posix_spawnattr_destroy
stdbool
strpbrk
unistd
unistd-safer
wait-process
configure.ac:
gl_SPAWN_PIPE
Makefile.am:
lib_SOURCES += spawn-pipe.h spawn-pipe.c w32spawn.h
Include:
"spawn-pipe.h"
License:
GPL
Maintainer:
Bruno Haible

14
modules/spawn-pipe-tests Normal file
View File

@@ -0,0 +1,14 @@
Files:
tests/test-spawn-pipe.sh
tests/test-spawn-pipe.c
tests/macros.h
Depends-on:
progname
configure.ac:
Makefile.am:
TESTS += test-spawn-pipe.sh
check_PROGRAMS += test-spawn-pipe
test_spawn_pipe_LDADD = $(LDADD) @LIBINTL@

View File

@@ -1,8 +0,0 @@
#!/bin/sh
st=0
for i in 0 1 2 3 4 5 6 7 ; do
./test-pipe${EXEEXT} $i \
|| { echo test-pipe.sh: iteration $i failed >&2; st=1; }
done
exit $st

View File

@@ -17,7 +17,7 @@
#include <config.h> #include <config.h>
#include "pipe.h" #include "spawn-pipe.h"
#include "wait-process.h" #include "wait-process.h"
#include <errno.h> #include <errno.h>

8
tests/test-spawn-pipe.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
st=0
for i in 0 1 2 3 4 5 6 7 ; do
./test-spawn-pipe${EXEEXT} $i \
|| { echo test-spawn-pipe.sh: iteration $i failed >&2; st=1; }
done
exit $st