musl/src/misc
Rich Felker c0fe5b9da9 check for fd exhaustion in forkpty
we cannot report failure after forking, so the idea is to ensure prior
to fork that fd 0,1,2 exist. this will prevent dup2 from possibly
hitting a resource limit and failing in the child process. fcntl
rather than dup2 is used prior to forking to avoid race conditions.
2011-07-22 00:25:56 -04:00
..
basename.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
crypt.c remove ugly warning-suppression hack from crypt - this invokes UB! 2011-04-11 01:50:26 -04:00
cuserid.c fix compile failure: legacy cuserid needs to define feature test 2011-02-16 09:30:56 -05:00
dirname.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
ffs.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
forkpty.c check for fd exhaustion in forkpty 2011-07-22 00:25:56 -04:00
ftw.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
getdomainname.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
getgrouplist.c implement getgrouplist (for initgroups), formerly dummied-out 2011-04-13 09:39:47 -04:00
getopt.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
getpriority.c global cleanup to use the new syscall interface 2011-03-20 00:16:43 -04:00
getrlimit.c global cleanup to use the new syscall interface 2011-03-20 00:16:43 -04:00
getrusage.c global cleanup to use the new syscall interface 2011-03-20 00:16:43 -04:00
getsubopt.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
ioctl.c global cleanup to use the new syscall interface 2011-03-20 00:16:43 -04:00
lockf.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
nftw.c protect ftw and nftw against cancellation 2011-04-18 21:17:03 -04:00
openpty.c incorrect check for open failure in openpty function 2011-07-22 00:23:36 -04:00
ptsname.c add ptsname_r (nonstandard) and split ptsname (standard) to separate file 2011-04-13 08:35:32 -04:00
pty.c add ptsname_r (nonstandard) and split ptsname (standard) to separate file 2011-04-13 08:35:32 -04:00
realpath.c fix memory leak on failure in realpath 2011-06-18 07:41:14 -04:00
sched_yield.c global cleanup to use the new syscall interface 2011-03-20 00:16:43 -04:00
setpriority.c global cleanup to use the new syscall interface 2011-03-20 00:16:43 -04:00
setrlimit.c global cleanup to use the new syscall interface 2011-03-20 00:16:43 -04:00
syslog.c protect syslog against cancellation 2011-04-18 21:11:23 -04:00
ulimit.c add useless, obsolescent function ulimit 2011-05-29 14:09:03 -04:00
uname.c global cleanup to use the new syscall interface 2011-03-20 00:16:43 -04:00
wordexp.c wordexp cannot use we_offs unless WRDE_DOOFFS flag is set 2011-06-25 18:54:33 -04:00