2009-08-18 Eric Blake <ebb9@byu.net>
* libc/posix/popen.c (popen): Fix documented prototype.
        Improve popen compatibility with glibc.
        * libc/posix/popen.c (popen): The 2006-08-22 change to use
        FD_CLOEXEC disagrees with other implementations; instead, use
        pidlist to work even when fcntl is not available.  Meanwhile,
        support the 'e' modifier to set CLOEXEC, as in glibc.  Drop
        cygwin-specific code, now that cygwin has its own version.
        * libc/posix/Makefile.am (CHEWOUT_FILES): Document popen.
        * libc/posix/posix.tex: New file.
			
			
This commit is contained in:
		| @@ -162,6 +162,8 @@ ENABLE_NEWLIB_ICONV_TRUE = @ENABLE_NEWLIB_ICONV_TRUE@ | |||||||
| EXEEXT = @EXEEXT@ | EXEEXT = @EXEEXT@ | ||||||
| FGREP = @FGREP@ | FGREP = @FGREP@ | ||||||
| GREP = @GREP@ | GREP = @GREP@ | ||||||
|  | HAVE_LONG_DOUBLE_FALSE = @HAVE_LONG_DOUBLE_FALSE@ | ||||||
|  | HAVE_LONG_DOUBLE_TRUE = @HAVE_LONG_DOUBLE_TRUE@ | ||||||
| HAVE_POSIX_DIR_FALSE = @HAVE_POSIX_DIR_FALSE@ | HAVE_POSIX_DIR_FALSE = @HAVE_POSIX_DIR_FALSE@ | ||||||
| HAVE_POSIX_DIR_TRUE = @HAVE_POSIX_DIR_TRUE@ | HAVE_POSIX_DIR_TRUE = @HAVE_POSIX_DIR_TRUE@ | ||||||
| HAVE_SIGNAL_DIR_FALSE = @HAVE_SIGNAL_DIR_FALSE@ | HAVE_SIGNAL_DIR_FALSE = @HAVE_SIGNAL_DIR_FALSE@ | ||||||
| @@ -319,7 +321,9 @@ libposix_la_LDFLAGS = -Xcompiler -nostdlib | |||||||
| @USE_LIBTOOL_FALSE@noinst_LIBRARIES = lib.a | @USE_LIBTOOL_FALSE@noinst_LIBRARIES = lib.a | ||||||
| @USE_LIBTOOL_FALSE@lib_a_SOURCES = $(GENERAL_SOURCES) $(ELIX_SOURCES) | @USE_LIBTOOL_FALSE@lib_a_SOURCES = $(GENERAL_SOURCES) $(ELIX_SOURCES) | ||||||
| @USE_LIBTOOL_FALSE@lib_a_CFLAGS = $(AM_CFLAGS) | @USE_LIBTOOL_FALSE@lib_a_CFLAGS = $(AM_CFLAGS) | ||||||
| CHEWOUT_FILES =  | CHEWOUT_FILES = \ | ||||||
|  | 	popen.def | ||||||
|  |  | ||||||
| SUFFIXES = .def | SUFFIXES = .def | ||||||
| CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str | CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str | ||||||
| TARGETDOC = ../tmp.texi | TARGETDOC = ../tmp.texi | ||||||
| @@ -730,8 +734,8 @@ objectlist.awk.in: $(noinst_LTLIBRARIES) | |||||||
| 	$(CHEW) < $< > $*.def 2> $*.ref | 	$(CHEW) < $< > $*.def 2> $*.ref | ||||||
| 	touch stmp-def | 	touch stmp-def | ||||||
|  |  | ||||||
| # No doc for posix. | doc: $(CHEWOUT_FILES) | ||||||
| doc: | 	cat $(srcdir)/posix.tex >> $(TARGETDOC) | ||||||
| # Tell versions [3.59,3.63) of GNU make to not export all variables. | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||||||
| # Otherwise a system limit (for SysV at least) may be exceeded. | # Otherwise a system limit (for SysV at least) may be exceeded. | ||||||
| .NOEXPORT: | .NOEXPORT: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user