This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Problem with popen/pclose
- To: drepper@cygnus.com
- Subject: Problem with popen/pclose
- From: hjl@lucon.org (H.J. Lu)
- Date: Tue, 27 Oct 1998 10:54:40 -0800 (PST)
- Cc: libc-hacker@cygnus.com
>
> Yup. If you update signal/signal.h from the CVS archive you'll find
> it fixed. Thanks,
>
Thanks. Now I got a problem with popen/pclose. VSX-PCT uses
-D_POSIX_C_SOURCE=199506
But it doesn't want to see popen/pclose. Can we do
#if defined _POSIX_C_SOURCE && _POSIX_C_SOURCE == 2 || \
defined _XOPEN_SOURCE
# define __USE_POSIX2 1
#endif
in features.h and/or do
#if defined __USE_UNIX98 || defined __USE_SVID || \
defined __USE_BSD || defined __USE_MISC
/* Create a new stream connected to a pipe running the given command. */
extern FILE *popen __P ((__const char *__command, __const char *__modes));
/* Close a stream opened by popen and return the status of its child. */
extern int pclose __P ((FILE *__stream));
#endif
in stdio.h.
Thanks.
--
H.J. Lu (hjl@gnu.org)