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:
31
ChangeLog
31
ChangeLog
@@ -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>
|
||||
|
||||
pipe-posix: new module
|
||||
|
@@ -3324,7 +3324,7 @@ func_all_modules ()
|
||||
func_module findprog-lgpl
|
||||
func_module wait-process
|
||||
func_module execute
|
||||
func_module pipe
|
||||
func_module spawn-pipe
|
||||
func_module pipe-filter-gi
|
||||
func_module pipe-filter-ii
|
||||
func_module sh-quote
|
||||
|
3
NEWS
3
NEWS
@@ -12,6 +12,9 @@ User visible incompatible 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
|
||||
parse-datetime module for the replacement
|
||||
function parse_datetime(), or help us write
|
||||
|
@@ -27,7 +27,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "execute.h"
|
||||
#include "pipe.h"
|
||||
#include "spawn-pipe.h"
|
||||
#include "wait-process.h"
|
||||
#include "sh-quote.h"
|
||||
#include "safe-read.h"
|
||||
|
@@ -32,7 +32,7 @@
|
||||
|
||||
#include "javaversion.h"
|
||||
#include "execute.h"
|
||||
#include "pipe.h"
|
||||
#include "spawn-pipe.h"
|
||||
#include "wait-process.h"
|
||||
#include "classpath.h"
|
||||
#include "xsetenv.h"
|
||||
|
@@ -31,7 +31,7 @@
|
||||
#endif
|
||||
|
||||
#include "javaexec.h"
|
||||
#include "pipe.h"
|
||||
#include "spawn-pipe.h"
|
||||
#include "wait-process.h"
|
||||
#include "error.h"
|
||||
#include "gettext.h"
|
||||
|
@@ -34,7 +34,7 @@
|
||||
#endif
|
||||
|
||||
#include "error.h"
|
||||
#include "pipe.h"
|
||||
#include "spawn-pipe.h"
|
||||
#include "wait-process.h"
|
||||
#include "xalloc.h"
|
||||
#include "gettext.h"
|
||||
|
@@ -33,7 +33,7 @@
|
||||
#endif
|
||||
|
||||
#include "error.h"
|
||||
#include "pipe.h"
|
||||
#include "spawn-pipe.h"
|
||||
#include "wait-process.h"
|
||||
#include "gettext.h"
|
||||
|
||||
|
@@ -19,7 +19,7 @@
|
||||
#include <config.h>
|
||||
|
||||
/* Specification. */
|
||||
#include "pipe.h"
|
||||
#include "spawn-pipe.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
@@ -15,8 +15,8 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _PIPE_H
|
||||
#define _PIPE_H
|
||||
#ifndef _SPAWN_PIPE_H
|
||||
#define _SPAWN_PIPE_H
|
||||
|
||||
/* Get pid_t. */
|
||||
#include <stdlib.h>
|
||||
@@ -144,4 +144,4 @@ extern pid_t create_pipe_bidi (const char *progname,
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _PIPE_H */
|
||||
#endif /* _SPAWN_PIPE_H */
|
@@ -1,12 +1,12 @@
|
||||
# pipe.m4 serial 4
|
||||
dnl Copyright (C) 2004, 2008, 2009, 2010 Free Software Foundation, Inc.
|
||||
# spawn-pipe.m4 serial 1
|
||||
dnl Copyright (C) 2004, 2008-2010 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
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_TYPE_MODE_T])
|
||||
])
|
@@ -9,7 +9,7 @@ Depends-on:
|
||||
stdbool
|
||||
xmalloca
|
||||
execute
|
||||
pipe
|
||||
spawn-pipe
|
||||
wait-process
|
||||
getline
|
||||
sh-quote
|
||||
|
@@ -10,7 +10,7 @@ stdbool
|
||||
unistd
|
||||
javaversion
|
||||
execute
|
||||
pipe
|
||||
spawn-pipe
|
||||
wait-process
|
||||
classpath
|
||||
xsetenv
|
||||
|
@@ -10,7 +10,7 @@ lib/javaversion.class
|
||||
Depends-on:
|
||||
javaexec
|
||||
stdbool
|
||||
pipe
|
||||
spawn-pipe
|
||||
wait-process
|
||||
getline
|
||||
gettext-h
|
||||
|
41
modules/pipe
41
modules/pipe
@@ -1,48 +1,23 @@
|
||||
Description:
|
||||
Creation of subprocesses, communicating via pipes.
|
||||
|
||||
Status:
|
||||
obsolete
|
||||
|
||||
Notice:
|
||||
This module is obsolete. Use the module 'spawn-pipe' instead.
|
||||
|
||||
Files:
|
||||
lib/pipe.h
|
||||
lib/pipe.c
|
||||
lib/w32spawn.h
|
||||
m4/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
|
||||
spawn-pipe
|
||||
|
||||
configure.ac:
|
||||
gl_PIPE
|
||||
|
||||
Makefile.am:
|
||||
lib_SOURCES += pipe.h pipe.c w32spawn.h
|
||||
|
||||
Include:
|
||||
"pipe.h"
|
||||
"spawn-pipe.h"
|
||||
|
||||
License:
|
||||
GPL
|
||||
|
@@ -7,7 +7,7 @@ lib/pipe-filter-gi.c
|
||||
lib/pipe-filter-aux.h
|
||||
|
||||
Depends-on:
|
||||
pipe
|
||||
spawn-pipe
|
||||
wait-process
|
||||
error
|
||||
exit
|
||||
|
@@ -7,7 +7,7 @@ lib/pipe-filter-ii.c
|
||||
lib/pipe-filter-aux.h
|
||||
|
||||
Depends-on:
|
||||
pipe
|
||||
spawn-pipe
|
||||
wait-process
|
||||
error
|
||||
exit
|
||||
|
@@ -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
51
modules/spawn-pipe
Normal 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
14
modules/spawn-pipe-tests
Normal 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@
|
@@ -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
|
@@ -17,7 +17,7 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "pipe.h"
|
||||
#include "spawn-pipe.h"
|
||||
#include "wait-process.h"
|
||||
|
||||
#include <errno.h>
|
8
tests/test-spawn-pipe.sh
Executable file
8
tests/test-spawn-pipe.sh
Executable 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
|
Reference in New Issue
Block a user