summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2002-11-21Take advantage of the libc minor bump and add atoll(3)Todd C. Miller
2002-11-21Add strerror_r and functions versions of getchar_unlocked andMarco S Hyman
putchar_unlocked. Crank the minor on related libs. OK fgs@, deraadt@
2002-11-19typo; Stefan BergTodd C. Miller
2002-11-18Oops, unbrek libc_pMiod Vallat
2002-11-16Zero out struct skey early in skeylookup() so callers can reliably checkTodd C. Miller
for keyfile == NULL and not get a garbage value.
2002-11-16Add a missing check for NULL keyfile in skeychallenge() thatTodd C. Miller
caused a user w/o an S/Key to just get "permission denied" from login_skey instead of a fake challenge.
2002-11-16Enable libpthread, kind of....Marco S Hyman
The library is installed as libnpthread, not libpthread. This gets around broken autoconf ports that attempt to link using both -lpthread and -pthread. The next step will be to change the gcc -pthread flag to use this lib instead of libc_r.
2002-11-14Updates from http://www.isc.org/products/BIND/patches/bind4910.diffTodd C. Miller
o check __dn_skipname() return value for errors o fix sanity checking of reverse records, getnetbyname() may not have been working before.
2002-11-14Add a link to libncurses. Lots of programs/configure scripts out thereTodd C. Miller
look for ncurses by checking for ncurses.h or libncurses instead of checking for NCURSES_VERSION in curses.h. Closes PR 2942.
2002-11-12get rid of compiler warningsMarco S Hyman
2002-11-12don't build with -g/-ggdb by default.Marco S Hyman
always build with -Wall bump version to 0.7 (matches libc_r x.7)
2002-11-12Fix the C version of atomic lock so that the compiler will not shareDale Rahn
registers. ok marc@
2002-11-10build crtbegin/crtend as it is ment for elfMichael Shalayeff
2002-11-10SEE ALSO corrections. millert ok.Federico G. Schwindt
2002-11-10missing MLINKs for setresuid(2). millert ok.Federico G. Schwindt
2002-11-09remove unused manpages (already in libc) and reorder SEE ALSO; marc@ ok.Federico G. Schwindt
2002-11-08kill two compiler warnings; ok marc@Todd T. Fries
2002-11-08Do not try to initialize entries in the fd table before the tableMarco S Hyman
is created.
2002-11-07Add needed table of strong functions that override weak functionsMarco S Hyman
in libc so static linking works with -lpthreads. There is a (linker?) problem that still shows up with static -pthread, though. Solution to problem from freebsd.
2002-11-07type func(...) -> type\nfunc(...) for function definitionsMarco S Hyman
2002-11-06Move the weak definition from before the syscall's entry point toTodd C. Miller
after. This avoids a bunch of reloc warnings by working around a deficiency in the a.out loader. miod@ OK
2002-11-06From NetBSD; Use _C_LABEL, not SYSNAME to call sigaltstack, sigblock,Todd C. Miller
sigreturn. sigblock has not been a syscall since 4.3BSD and using SYSCALL directly seems like a bad idea in general. Fixes a build problem on vax. OK miod@
2002-11-05thread safe libc -- 2nd try. OK miod@, millert@Marco S Hyman
Thanks to miod@ for m68k and vax fixes
2002-11-05Rename cerror to __cerror and curbrk to __curbrk, to avoid namespaceMiod Vallat
pollution. Conforming to art@'s evil plans.
2002-11-05Rename cerror to __cerror and curbrk to __curbrk, to avoid namespaceMiod Vallat
pollution. Conforming to art@'s evil plans.
2002-11-04test locks against _SPINLOCK_UNLOCKED, not 0. _SPINLOCK_UNLOCKED isMarco S Hyman
not zero on all arches
2002-11-03back out previous patch.. there are still some vax/m68k issuesMarco S Hyman
2002-11-03libc changes for thread safety. Tested on:Marco S Hyman
alpha (millert@), i386 (marc@), m68k (millert@ and miod@), powerpc (drahn@ and dhartmei@), sparc (millert@ and marc@), sparc64 (marc@), and vax (millert@ and miod@). Thanks to millert@, miod@, and mickey@ for fixes along the way.
2002-11-02Include string.h to get memcpy() prototype; OK marc@Todd C. Miller
2002-11-01Working atomic locks on vax for libc_r.Miod Vallat
ok marc@
2002-11-01Stub to help libc_r buildsMiod Vallat
2002-11-01md part for hppa should look like this, at the first lookMichael Shalayeff
2002-10-31gotta define SYSEXIT() and make all the rest of sys/*S be thread-safe now, ↵Michael Shalayeff
missed this fuct in the previous take on thread-safe libc
2002-10-31marc@ said we should be always thread-safe, accomodate for that, also ↵Michael Shalayeff
defining the weak symbols which we did not before in either case
2002-10-30No longer usedTodd C. Miller
2002-10-30o .Xr setres[ug]idTodd C. Miller
o Update HISTORY section
2002-10-30Minor bump for [gs]etres[ug]id(2)Todd C. Miller
2002-10-30Add [gs]etres[ug]id(2) syscall to libc and use it in emulating some 4.3BSDTodd C. Miller
functions.
2002-10-30removes duplicate functions and factor out common code so the needed (butMarco S Hyman
missing) _thread_fd_unlock_owned function can be added with minimal pain. The incorrect special handling of the stdio fds was also removed. Tested with the libc_r regression tests and the mysql regression tests. No complaints from any developers
2002-10-30signal handling changes. This corrects several signalMarco S Hyman
handling errors in the threads library. Most of the libc_r regression tests are now ok. thread specific kill semantics are still not correct. No negative comments after posting to tech@ a week or so ago. siginfo test fails on sparc64 due to sparc64 oddity.
2002-10-30Revert this va_copy addition, it cannot work on macppc (which is theDale Rahn
only arch where va_copy is currently required), current version of va_copy uses alloca, but since the results of the va_copy are not used here, only after return, stack trashing will occur. This will have to be revised again for gcc 3.2 support on powerpc.
2002-10-26Describe the actual operation of inet_net_pton with a few examples.Marco S Hyman
Also add caution regarding dst field initialization. operation text OK millert@
2002-10-24Use va_copy() for varargs assignemnt. va_copy() is standard with C99Dale Rahn
and gcc3.2 requires this on powerpc.
2002-10-24Remove some old if 0/if 1 code, it is pointless to keep this in.Dale Rahn
2002-10-21Check for null pointer before deref in info output. Based uponMarco S Hyman
a freebsd patch forwarded to me by millert@ (thanks!). Change also applied to uthread_info.c even though we do not use it
2002-10-21reversed condition checking for sig*jmp(, savemask)Michael Shalayeff
2002-10-21deal w/ longjmp(, 0)Michael Shalayeff
2002-10-21make an ieeefp regress pass; miod@ okMichael Shalayeff
2002-10-16- don't use the function enclosure macros.Wilbern Cobb
- replace `POSIX 1003.2' instances with St -p1003.2. ok mpech@, millert@
2002-10-16Replace "if (value != NULL && value == as->FOO)" with justTodd C. Miller
"if (value == as->FOO)" -- NULL needs no special handling. Pointed out by Paul Borman.