summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2001-12-31More changes from FreeBSD, including:Federico G. Schwindt
o Only poll file descriptors when needed. o Change the way timing is achieved, counting scheduling ticks instead of calculating the elapsed time via gettimeofday(). o Prevent an overflow when polling. o Use curthread instead of _thread_run. o Remove extra spaces; indent.
2001-12-30Rename libusb to libusbhid, a better name, per NetBSDPeter Valchev
2001-12-30call pthread_sigmask() instead of having the code twice.Federico G. Schwindt
2001-12-29Two functions can return errors here, not just one.Miod Vallat
2001-12-26no way for this to be 'shared only', duhPeter Valchev
2001-12-20fix to match documented behaviour. RAND_file_name must return a pointer toBob Beck
buf, not something else.
2001-12-20From FreeBSD:Federico G. Schwindt
When cancelling a thread while in a join operation, do not detach the target thread of the join operation. This allows the cancelled thread to detach the target thread in its cancellation handler.
2001-12-20sync with freebsd.Federico G. Schwindt
2001-12-19More sync.Federico G. Schwindt
2001-12-18sigh, do it right.Federico G. Schwindt
2001-12-18Fix func decl. in comment.Federico G. Schwindt
2001-12-18Allow the scheduler to return to the signal handler and the signalMarco S Hyman
handler to return instead of calling sigreturn directly. This works around an apparent bug in sparc sigreturn handling. ok fgs@ and noone else has bitched
2001-12-18Software invoked traps should use the ST_ versions of the trap numberMarco S Hyman
with the high bit of the trap number stripped per the V8 arch manual. The stack alignment code was broken. It tried to align to a 32 byte boundary (only 8 byte boundary is required) by first adding 15 bytes then masking. It could have aligned down. The minimum frame size was twice the size needed by allocating 8 bytes per saved value instead of the needed 4. This bug offset the bug in the stack alignment code.
2001-12-17fix memory leak associated with compiled BPF program, sync'd from ↵Dug Song
tcpdump.org. ok itojun@
2001-12-15Document SIGTTIN and SIGTTOU now that we deal with them too.Todd C. Miller
2001-12-15Catch SIGTTIN and SIGTTOU too and treat them like SIGTSTP.Todd C. Miller
2001-12-13atoi->strtoulBob Beck
2001-12-13Reorder new includes. art@ says ok.Hugh Graham
2001-12-11FQDN subjectAltName in certs, used in isakmpd(8) examples. beck@ ok.Hakan Olsson
2001-12-11More sync with freebsd code; join related code this time.Federico G. Schwindt
2001-12-08when strerror() has an Unknown error, also set EINVALTheo de Raadt
2001-12-08sync with freebsd.Federico G. Schwindt
2001-12-08Partially sync with FreeBSD; mostly pthread_cancel(3) related changes.Federico G. Schwindt
make includes is needed in case you want to play.
2001-12-08save the pid as well, and only do the atexit in the same pidTheo de Raadt
2001-12-07Add ERRORS and STANDARDS sectionsTodd C. Miller
2001-12-07o Turn off ECHONL in addition to ECHOTodd C. Miller
o Return NULL of read(2) returns -1 o Add ERRORS and STANDARDS sections
2001-12-07From XPG4.2: read(2) can return EIO if the process is a member ofTodd C. Miller
a background process attempting to read from its controlling terminal, the process is ignoring or blocking the SIGTTIN signal or the process group is orphaned. Verified against reality...
2001-12-07missing commaTodd C. Miller
2001-12-07Instead of restoring the tty mode, restoring the signal handler,Todd C. Miller
unblocking the signal and redelivering it just make all our signal handler interupt system calls and set a flag. We can just deliver the signal at the end right before we would normally return. This solves the SIG_IGN problem nicely and causes readpassphrase() to return when someone hits ^C even if the handler is SIG_IGN.
2001-12-07Document signal handling in readpassphrase(3)Todd C. Miller
2001-12-07Add CAVEATS section pointing out the dangers of closing fds <= 2Todd C. Miller
as found by Markus.
2001-12-07o point pthread_setcancel(type|state) manpages where they belong.Federico G. Schwindt
o remove functions from pthread_cancel(3).
2001-12-07Check for keyfile == NULL in skey_unlock()Todd C. Miller
2001-12-06Use TCSAFLUSH not TCSANOW. I was only using TCSANOW during debugging...Todd C. Miller
2001-12-06Fix a long standing annoyance with getpass/readpassphrase. Instead ofTodd C. Miller
blocking SIGINT and SIGTSTP, catch them (along with SIGHUP, SIGQUIT, SIGTERM). We restore the tty mode as needed and then restore the original signal handler and resend the signal. For SIGTSTP, upon return from suspend the user is re-prompted for the passphrase.
2001-12-06mark more signals that I cannot fixTheo de Raadt
2001-12-06alloca cannot check if the allocation is valid. mention the consequences; ↵Theo de Raadt
millert ok
2001-12-06A FILE * is not a file name, dammit.Todd C. Miller
2001-12-05correct an alignment mis-conception for malloc(0) returned regions.Thierry Deval
OK deraadt@
2001-12-05KNF, i need this for what comes next..Theo de Raadt
2001-12-05document how malloc(0) blobbies are stored, and their characterTheo de Raadt
2001-12-05Include more machdep headers. (paranoia)Artur Grabowski
2001-12-05Must include machine/pmap.h and machine/vmparam.h here nowArtur Grabowski
that uvm headers won't do that for us.
2001-12-03for MAP_ANON, dont mention giving an fd of anything but -1, this never worked.Eric Jackson
2001-12-01Warn that pidfile() will not have the expected removal behaviour if _exit()Miod Vallat
is called.
2001-11-29chflags(2) can return EPERM for other reasons.Todd C. Miller
From NetBSD via Brian J. Kifiak
2001-11-29getfh(2) can fail with EPERM; Brian J. KifiakTodd C. Miller
2001-11-22Broken use of .IMPSRC in non-inference rule contextMarc Espie
2001-11-21Use the address of the symbol, do not overwrite the address with 0, beforeDale Rahn
calling pwrite. Fix from dlucq. ok millert.
2001-11-212nd param is constTheo de Raadt