aboutsummaryrefslogtreecommitdiff
path: root/src/misc (follow)
Commit message (Expand)AuthorAgeFilesLines
* properly create new session/controlling terminal in forkptyRich Felker2011-04-201-1/+4
* implement (nonstandard) forkptyRich Felker2011-04-201-0/+22
* block cancellation in wordexp, handle more errorsRich Felker2011-04-191-2/+17
* avoid malloc of potentially-large string in wordexpRich Felker2011-04-191-10/+28
* protect ftw and nftw against cancellationRich Felker2011-04-181-1/+6
* protect syslog against cancellation•••these functions are allowed to be cancellation points, but then we would have to install cleanup handlers to avoid termination with locks held. Rich Felker2011-04-181-5/+19
* minimal realpath implementation using /proc•••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. Rich Felker2011-04-171-0/+43
* remove stupid debug code in wordexpRich Felker2011-04-151-1/+0
* implement wordexp. first try, may be buggy. intended to be safe.Rich Felker2011-04-151-0/+128
* simplify syslog, add vsyslog interface (nonstandard)•••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... Rich Felker2011-04-131-31/+36
* remove useless SIGPIPE protection from syslog•••per the standard, SIGPIPE is not generated for SOCK_DGRAM. Rich Felker2011-04-131-9/+0
* fix syslog (corrected SIGPIPE blocking, and using dgram instead of stream)•••it actually appears the hacks to block SIGPIPE are probably not necessary, and potentially harmful. if i can confirm this, i'll remove them. Rich Felker2011-04-131-10/+8
* implement getgrouplist (for initgroups), formerly dummied-outRich Felker2011-04-131-4/+16
* add ptsname_r (nonstandard) and split ptsname (standard) to separate file•••this eliminates the ugly static buffer in programs that use ptsname_r. Rich Felker2011-04-132-11/+16
* move bswap functions to static inline in byteswap.hRich Felker2011-04-122-16/+0
* fix broken bswap_32Rich Felker2011-04-121-1/+1
* remove ugly warning-suppression hack from crypt - this invokes UB!Rich Felker2011-04-111-1/+1
* fix all implicit conversion between signed/unsigned pointers•••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. Rich Felker2011-03-251-2/+2
* global cleanup to use the new syscall interfaceRich Felker2011-03-208-20/+8
* fix compile failure: legacy cuserid needs to define feature testRich Felker2011-02-161-0/+1
* fix getrlimit handling on 32-bit systems, and ease porting to 64-bitRich Felker2011-02-151-3/+3
* initial check-in, version 0.5.0Rich Felker2011-02-1226-0/+3194