This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem with popen/pclose


> 
> 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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]