redirect stdin when using execl

Guy Harris guy at auspex.auspex.com
Thu Aug 3 04:41:44 AEST 1989


>Two provisos: System V users will want to use fcntl(, F_DUPFD, ) instead of
>dup2()

Although:

	1) S5R3 has "dup2()"

and

	2) 4.[23]BSD has "fcntl(F_DUPFD)"

so if you're willing to rule out older systems you can avoid polluting
your code with "#ifdef"s.



More information about the Comp.lang.c mailing list