view modules/pipe-posix @ 13925:29a686188651

pipe-posix: Make it work in C++ mode. * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe. (pipe): Use common idiom, not a macro definition. * lib/pipe.c: New file. * m4/pipe.m4: New file. * modules/pipe-posix (Description): Enhance. (Files): Add lib/pipe.c, m4/pipe.m4. (configure.ac): Invoke gl_FUNC_PIPE. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE. * modules/unistd (Makefile.am): Substitute HAVE_PIPE. * tests/test-unistd-c++.cc: Check the signature of pipe.
author Bruno Haible <bruno@clisp.org>
date Sat, 11 Dec 2010 03:03:05 +0100
parents ec0a7deeb2de
children 6645dea6c600
line wrap: on
line source

Description:
pipe() function: Creation of a pipe.

Files:
lib/pipe.c
m4/pipe.m4

Depends-on:
unistd

configure.ac:
gl_FUNC_PIPE
gl_UNISTD_MODULE_INDICATOR([pipe])

Makefile.am:

Include:
<unistd.h>

License:
LGPLv2+

Maintainer:
Eric Blake