summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2003-02-23define HAS_vsnprintfTheo de Raadt
2003-02-21check for size < 0 when allocating memory, from openssl (-r1.34)Markus Friedl
2003-02-21one more: guid -> egidJason McIntyre
thanks tedu@
2003-02-21typos;Jason McIntyre
2003-02-20copyrights added;Jason McIntyre
these are all David Leonard, and Public Domain ok deraadt@
2003-02-20fix a variety of missing or wrong MLINKSTheo de Raadt
2003-02-19security fix from openssl 0.9.7a:Markus Friedl
In ssl3_get_record (ssl/s3_pkt.c), minimize information leaked via timing by performing a MAC computation even if incorrrect block cipher padding has been found. This is a countermeasure against active attacks where the attacker has to distinguish between bad padding and a MAC verification error. (CAN-2003-0078)
2003-02-18indent delay slotJason Wright
2003-02-18intial -> initial;Jason McIntyre
the great intial witch hunt, as prompted by tdeval@ os-aix-dso.c: ok henning@ ab.C: ok drahn@
2003-02-18copyrights added;Jason McIntyre
bootpef(8), pppd(8): Carnegie Mellon map-mbone(8), mrinfo(8): Xerox pdisk(8): Apple awk(1): Lucent sectok(3): University of Michigan
2003-02-18copyrights added;Jason McIntyre
these are all Sun Microsystems
2003-02-17minor KNFTodd C. Miller
2003-02-17copyrights added;Jason McIntyre
des_crypt(3): Eric Young aac(4): Michael Smith, BSDi, Niklas Hallqvist; ok niklas@ bktr(4): Amancio Hasty, Roger Hardiman getopt(1): Henry Spencer (public domain) pcnfds(8): Sun
2003-02-16teach people about strlcpy, not strcpyTheo de Raadt
2003-02-14put my copyrights on hereTheo de Raadt
2003-02-14- save and restore %fsr, too.Jason Wright
- better function descriptions
2003-02-14license clarifications; arthur_david_olson@nih.govTodd C. Miller
2003-02-14re-stir if pid changes; markus & meTheo de Raadt
2003-02-14fix bug that would leave an FD locked if dup'd, then closed.Marco S Hyman
Also, for safety lock the _thread_fd_table when removing entries.
2003-02-14white spaceMarco S Hyman
2003-02-13This fixes the problem with ypxfr switching key and value on map transfer.Mats O Jansson
This will make librpcsvc follow the real protocol and not the incorrect specification in yp.x. The changes in yp.x is from FreeBSD. A make build is the simplest way to get things working but the following five step is an alternative 1) make depend && make && make install in lib/librpcsvc 2) make includes in lib/librpcsvc 3) make depend && make && make install in lib/libc 4) make depend && make && make install in usr.sbin/ypserv/ypserv 5) make depend && make && make install in usr.sbin/ypserv/ypxfr -moj ok niklas@ ho@
2003-02-12delete duplicate line; jason@ackley.net, 3090Theo de Raadt
2003-02-10priviledged -> privileged from David Krause via Henning BrauerMarco S Hyman
2003-02-08Obey calling convention and use the right opcode (fabss -> fabsd); Fabulous...Jason Wright
(based on netbsd pr 20140)
2003-02-07Don't write log message to console unless we are unable to connect toTodd C. Miller
syslogd. Noticed by marc@; OK by marc@ and deraadt@
2003-02-05AARRGGH! 2nd try, handle the case where from_fd == to_fd in ↵Marco S Hyman
_thread_fd_table_dup
2003-02-05handle the case where from_fd == to_fd in _thread_fd_table_dupMarco S Hyman
2003-02-05thread fd handling, part 2. Don't mung file flags until forcedMarco S Hyman
to notice that the file exists. This fixes a problem where an application may think a file was in non-block mode because the threads kernel played with the flags. Also fix a stupid error introduced in the last commit -- the threaded version of dup and dup2 were foobared. Bad marc.
2003-02-04Part 1 of thread fd handling fixes. In the new scheme fd_table_entriesMarco S Hyman
for dup-ed fds are shared to ensure proper flag handling. A refcnt was added to control when entries should be freed. Specific changes: close: don't free entry unless refcnt is zero dup: rewrite to use new function _thread_fd_table_dup dup2: rewrite to use new function _thread_fd_table_dup fcntl: use _thread_fd_table_dup uthread_fd: initialize thread fd table, searching for dup-ed fds. Add function to share _thread_fd_table entries when an fd is dup-ed. uthread_init: make it readable. Call fd init functions. All current regression tests plus the mysql torture test pass. The new stdfiles regression test fails (I/O redirection problem). Part 2 is intended to fix that problem
2003-02-03some more functions that are (only on OpenBSD) safe in signal handlers.Theo de Raadt
not having access to these makes things really painful
2003-01-31typoTheo de Raadt
2003-01-31Replace emulated versions of setreuid() and setregid() with real syscalls.Todd C. Miller
These are spec'd by POSIX as of 1003.1-2001; deraadt@ OK
2003-01-31stuff in arch/sparc64 is by defn v9, remove < v9 #ifdefs. ok marc.Jason Wright
2003-01-31bad marc, commited crap to shut gcc up. Remove the crap.Marco S Hyman
2003-01-31we do not need that mess of -ITheo de Raadt
2003-01-31Create a siginfo_t for thread-to-thread kill.Marco S Hyman
Clean up (compiler warning elimination). Compile check options added but commented out as they have not been checked on all architectures, yet.
2003-01-29Align this char array accessed as double, for paranoia reasons.Dale Rahn
2003-01-28thread safer libc (note: safer, not safe)Marco S Hyman
Access to the global _res structure replaced by pointers to a per thread instance. If unthreaded the pointer is to the global structure. Also replaced a 64k stack array with malloc-ed memory so threaded aps (with a default 64k stack) have a chance at working. ok deraadt@
2003-01-27pthreads signal handling improvements. With these changes allMarco S Hyman
of the thread regressions tests pass on i386, sparc, sparc64 (save the siginfo test on sparc64 due to a kernel issue) and alpha. The tests should also pass on ppc. In addition, it fixes the problems with the "mysql torture test" provided by one of our users. The python port also appears to work correctly with these changes. Summary of changes: * check_pending removed from thread structure, no longer used. * unused elements of sigstatus structure removed. The sigstatus structure is now used to keep track of siginfo data instead of defining a local array in uthread_sig.c. * _thread_kern_sched_sig removed * _thread_sig_process goes away -- can't have a lock active when signal handlers are called. Functions now call _thread_sig_handle directly. * _thread_clear_pending now used lib wide to clear pending flags. It was named _clean_pending_flag and only used in uthread_sig.c. The function clears both per thread signals, and per process signals. * _thread_sig_handle now returns a value. * unused debugging macros removed from the thread kernel * dispatch pending signals after switching to a thread providing that signal handling hasn't been deferred by the thread. * process thread switchhooks before dispatching pending sigs * check for thread cancellation before dispatching pending sigs * re-wrote pthread-kill to do the correct thing. It now does minimal thread-kill-specific processing and then calls the existing code in uthread_sig to process the generated signal. * shut the compiler up when compiling uthread_mutex.c * no more "signal_lock". It does more harm than good. * keep track of "per-process" signals. * don't bother saving siginfo_t data for the scheduling signal. * per posix: SIGSTOP cleared when SIGCONT received and vice versa. * add _dispatch_signal to properly dispatch a signal to a thread. It sets the appropriate signal mask, something that was missing in the previous implementation. This fixes several bugs. The previous method held a lock. If the signal handler longjmp-ed the lock was never cleared and no more signals were processed.
2003-01-27Save all floating point registers to full register sized fields, notDale Rahn
half-sized areas. fixes preemption_float on powerpc.
2003-01-26save fpu context (needs optimization)Jason Wright
2003-01-24On save:Jason Wright
If the fpu isn't enabled, don't save state, otherwise, save the state, mark both sides clean and disable the fpu. On restore: If the saved fpu state has the fpu disabled, do nothing, otherwise, restore everything.
2003-01-24Save FPU state (unconditionally)Jason Wright
2003-01-24save and restore fp state when switching threads. This, withMarco S Hyman
an arch/i386 patch previously commited and arch/sparc64 patches from jason@ make the preemption_float test pass on those two architectures. Do not run signal handlers for a thread until the thread has been made current, ensuring the proper context. Solves several (if not all) of the '_pq_insert_tail: Already in priority queue' problems.
2003-01-24save i386 fpu stateMarco S Hyman
2003-01-23typos;Jason McIntyre
ok millert@
2003-01-23stubs for functions needed by the vaxMarco S Hyman
2003-01-21kern.watchdog; ok mickey@Markus Friedl
2003-01-21typos;Jason McIntyre
ok deraadt@
2003-01-20Don't reconnect to logging socket if send() returns an error and errnoTodd C. Miller
== ENOBUFS, there is no point and it hurts chroot'ed processes. Don't return immediately from syslog_r() when the send(), we may have more work to do. deraadt@ OK