opnsense-src/tools/regression/lib/libc/gen
Jilles Tjoelker e9dec7758d popen(): Add 'e' mode character to set close-on-exec on the new fd.
If 'e' is used, the kernel must support the recently added pipe2() system
call.

The use of pipe2() with O_CLOEXEC also fixes race conditions between
concurrent popen() calls from different threads, even if the close-on-exec
flag on the fd of the returned FILE is later cleared (because popen() closes
all file descriptors from earlier popen() calls in the child process).
Therefore, this approach should be used in all cases when pipe2() can be
assumed present.

The old version of popen() rejects "re" and "we" but treats "r+e" like "r+".
2013-05-20 17:31:18 +00:00
..
Makefile Add a test program for popen(). 2013-05-20 13:05:51 +00:00
test-arc4random.c A regression test to ensure that arc4random returns different sequences 2011-11-15 05:55:15 +00:00
test-fmtcheck.c
test-fmtmsg.c libc: Add some tests for fmtmsg(). 2012-02-21 23:46:41 +00:00
test-fnmatch.c Generate some tests for sh's case command from the fnmatch tests. 2010-05-09 16:15:40 +00:00
test-fpclassify.c
test-ftw.c nftw(): POSIX says directories causing loops should be silently skipped. 2012-08-09 22:05:40 +00:00
test-popen.c popen(): Add 'e' mode character to set close-on-exec on the new fd. 2013-05-20 17:31:18 +00:00
test-posix_spawn.c posix_spawn: If an error is detected in the child process, reap the zombie. 2011-07-10 14:20:11 +00:00
test-wordexp.c wordexp(): Remove wrong IFS usage. 2013-04-01 20:50:07 +00:00