Mail Archives: cygwin/1997/01/24/06:56:36
Geoffrey Noer wrote:
> > I'm finding that the popen() function call always returns NULL.
> > Has anyone else encountered this? Is it a known "feature"?
>
> If this is happening, it's definitely a bug. Unless someone out
> on the net solves the problem and gets me a patch to the appropriate
> cygwin32 code in src/winsup this may not get looked into soon due to
> extreme time constraints.
I don't see any problems:
7:/usr/src$ cat tst.c
#include <stdio.h>
main()
{
FILE *f;
if((f=popen("ls","r")) == NULL) {
perror("Popen");
exit(1);
}
while(!feof(f))
putchar(getc(f));
}
8:/usr/src$ gcc -o tst tst.c
9:/usr/src$ tst
CLS.CC
Mail/
SYSTEM.C
TSOCK.C
a.out
apimon.log
apitrace.log
cygnus/
file-3.20.1/
finddupe/
inetd/
inetutils-1.2/
iostone
iostone.c
joe/
less-321/
lynx2-5/
man/
man-1.4d/
mc-3.2.1/
ncurses-1.9.9e/
net/
ntxlib/
rcs-5.7/
rman-2.1/
rxvt-2.18/
slirp-0.9m/
sockets/
t.c
t.sh
tclhttpd-1.0.1/
telnetd
telnetd.c
termcap-1.3/
tkman-1.5/
tkman-1.8b4/
tkman-2.0a3/
tst.c
tst.exe
unarj/
unzip/
uudecode.c
uuencode.c
vt/
xc/
10:/usr/src$
---
Sergey Okhapkin
Moscow, Russia
Looking for a job
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -