Age | Commit message (Collapse) | Author | Lines | |
---|---|---|---|---|
2012-03-01 | implement a64l and l64a (legacy xsi stuff) | Rich Felker | -0/+26 | |
2012-02-23 | fix (hopefully) PTRACE_TRACEME (command 0) argument handling | Rich Felker | -2/+2 | |
2012-02-17 | fix get_current_dir_name behavior | Rich Felker | -2/+6 | |
2012-02-17 | add get_current_dir_name function | Rich Felker | -0/+12 | |
2012-01-24 | add legacy futimes and lutimes functions | Rich Felker | -0/+26 | |
based on patch by sh4rm4. these functions are deprecated; futimens and utimensat should be used instead in new programs. | ||||
2012-01-20 | use prlimit syscall for getrlimit/setrlimit | Rich Felker | -4/+14 | |
this allows the full range of 64-bit limit arguments even on 32-bit systems. fallback to the old syscalls on old kernels that don't support prlimit. | ||||
2012-01-20 | add prlimit syscall wrapper | Rich Felker | -0/+8 | |
2012-01-18 | alias basename to glibc name for it, to meet abi goals | Rich Felker | -0/+3 | |
note that regardless of the name used, basename is always conformant. it never takes on the bogus gnu behavior, unlike glibc where basename is nonconformant when declared manually without including libgen.h. | ||||
2011-09-16 | fix ptrace (maybe) | Rich Felker | -1/+8 | |
2011-09-15 | implement ptrace syscall wrapper (untested) | Rich Felker | -0/+18 | |
2011-09-13 | remove some stray trailing space characters | Rich Felker | -1/+1 | |
2011-07-30 | fix some bugs in setxid and update setrlimit to use __synccall | Rich Felker | -2/+27 | |
setrlimit is supposed to be per-process, not per-thread, but again linux gets it wrong. work around this in userspace. not only is it needed for correctness; setxid also depends on the resource limits for all threads being the same to avoid situations where temporarily unlimiting the limit succeeds in some threads but fails in others. | ||||
2011-07-22 | check for fd exhaustion in forkpty | Rich Felker | -2/+15 | |
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 | incorrect check for open failure in openpty function | Rich Felker | -1/+1 | |
-1, not 0, indicates failure | ||||
2011-06-25 | wordexp cannot use we_offs unless WRDE_DOOFFS flag is set | Rich Felker | -1/+2 | |
previously, a potentially-indeterminate value from we_offs was being used, resulting in wrong we_wordc and subsequent crashes in the caller. | ||||
2011-06-18 | fix memory leak on failure in realpath | Rich Felker | -4/+4 | |
2011-05-29 | add useless, obsolescent function ulimit | Rich Felker | -0/+19 | |
2011-04-20 | properly create new session/controlling terminal in forkpty | Rich Felker | -1/+4 | |
2011-04-20 | implement (nonstandard) forkpty | Rich Felker | -0/+22 | |
2011-04-19 | block cancellation in wordexp, handle more errors | Rich Felker | -2/+17 | |
2011-04-19 | avoid malloc of potentially-large string in wordexp | Rich Felker | -10/+28 | |
2011-04-18 | protect ftw and nftw against cancellation | Rich Felker | -1/+6 | |
2011-04-18 | protect syslog against cancellation | Rich Felker | -5/+19 | |
these functions are allowed to be cancellation points, but then we would have to install cleanup handlers to avoid termination with locks held. | ||||
2011-04-17 | minimal realpath implementation using /proc | Rich Felker | -0/+43 | |
clean and simple, but fails when the caller does not have permissions to open the file for reading or when /proc is not available. i may replace this with a full implementation later, possibly leaving this version as an optimization to use when it works. | ||||
2011-04-15 | remove stupid debug code in wordexp | Rich Felker | -1/+0 | |
2011-04-15 | implement wordexp. first try, may be buggy. intended to be safe. | Rich Felker | -0/+128 | |
2011-04-13 | simplify syslog, add vsyslog interface (nonstandard) | Rich Felker | -31/+36 | |
with datagram sockets, depending on fprintf not to flush the output early was very fragile; the new version simply uses a small fixed-size buffer. it could be updated to dynamic-allocate large buffers if needed, but i can't envision any admin being happy about finding 64kb-long lines in their syslog... | ||||
2011-04-13 | remove useless SIGPIPE protection from syslog | Rich Felker | -9/+0 | |
per the standard, SIGPIPE is not generated for SOCK_DGRAM. | ||||
2011-04-13 | fix syslog (corrected SIGPIPE blocking, and using dgram instead of stream) | Rich Felker | -10/+8 | |
it actually appears the hacks to block SIGPIPE are probably not necessary, and potentially harmful. if i can confirm this, i'll remove them. | ||||
2011-04-13 | implement getgrouplist (for initgroups), formerly dummied-outv0.7.8 | Rich Felker | -4/+16 | |
2011-04-13 | add ptsname_r (nonstandard) and split ptsname (standard) to separate file | Rich Felker | -11/+16 | |
this eliminates the ugly static buffer in programs that use ptsname_r. | ||||
2011-04-12 | move bswap functions to static inline in byteswap.h | Rich Felker | -16/+0 | |
2011-04-12 | fix broken bswap_32 | Rich Felker | -1/+1 | |
2011-04-11 | remove ugly warning-suppression hack from crypt - this invokes UB! | Rich Felker | -1/+1 | |
2011-03-25 | fix all implicit conversion between signed/unsigned pointers | Rich Felker | -2/+2 | |
sadly the C language does not specify any such implicit conversion, so this is not a matter of just fixing warnings (as gcc treats it) but actual errors. i would like to revisit a number of these changes and possibly revise the types used to reduce the number of casts required. | ||||
2011-03-20 | global cleanup to use the new syscall interface | Rich Felker | -20/+8 | |
2011-02-16 | fix compile failure: legacy cuserid needs to define feature test | Rich Felker | -0/+1 | |
2011-02-15 | fix getrlimit handling on 32-bit systems, and ease porting to 64-bit | Rich Felker | -3/+3 | |
2011-02-12 | initial check-in, version 0.5.0v0.5.0 | Rich Felker | -0/+3194 | |