summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2002-11-28fd sharing was re-enabled quite awhile ago.Brad Smith
2002-11-27Honour malloc_junk ('J') with realloc(3), and fix page_dir shrink update.Thierry Deval
2002-11-25Mention the net.inet.tcp.ecn sysctl.Wilbern Cobb
ok kjc@
2002-11-25Warn if atexit(3) fails. Change some tabs to spaces. UseChad Loder
STDERR_FILENO instead of 2. OK millert@
2002-11-24"The contents is" -> "The contents are"Chad Loder
2002-11-24Zero out the reserved fields of struct gmonhdr rather than leavingChad Loder
stack garbage in them. From FreeBSD. OK deraadt@
2002-11-24Fix comment: s/trailing NULL/trailing NUL/, no code changes.Chad Loder
2002-11-24Fix instance where syslog(3) after closelog(3) could access freed logChad Loder
tag name. OK millert@, deraadt@
2002-11-23Make the mul/div/rem (and u... versions) weak so that ld.so can overrideDale Rahn
it with optimized versions. And allow ld.so to compile with strong versions with extra symbols so it can find them.
2002-11-22Initialize status to zero before calling waitpid(). That way, ifTodd C. Miller
there is nothing to be waited for (for instance if SIGCHLD is being ignored) we don't check WIFEXITED(garbage off the stack).
2002-11-22more snprintf; ok millertTheo de Raadt
2002-11-21shadow -> _shadowTodd C. Miller
2002-11-21Add a "shadow" group and make the shadow passwd db readable by thatTodd C. Miller
group. This changes getpw* to always try the shadow db first and then fall back to the db w/o password hashes. In the future, /usr/libexec/auth/login_passwd (and others) will be setgid shadow instead of setuid root. OK deraadt@ If you track -current you should do the following: o add group shadow to /etc/group o chgrp shadow /etc/spwd.db o chmod 640 /etc/spwd.db o rebuild and install src/usr.sbin/pwd_mkdb You do not need to rebuild libc yet, but it would't hurt to do so.
2002-11-21.Xr atoll(3) and add missing .Xr of atol(3) in atoll(3) man page.Todd C. Miller
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-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-10SEE ALSO corrections. millert ok.Federico G. Schwindt
2002-11-10missing MLINKs for setresuid(2). millert ok.Federico G. Schwindt
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-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-01Stub to help libc_r buildsMiod Vallat
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-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-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.
2002-10-16Implement isfdtype(3) as per the POSIX.1g draft; requested by David HillTodd C. Miller
2002-10-15Fix typo introduce in last commitTodd C. Miller
2002-10-15cast NULL varargs sentinel to char * so it is 64 bit on alpha & sparc64Todd C. Miller
2002-10-15Document the fact that calling auth_setitem() with a NULL valueTodd C. Miller
clears (frees) the corresponding value in the auth session.
2002-10-15If auth_setitem() is called with the current value (ie: the pointerTodd C. Miller
is the same as the private value) then just return 0 as there is nothing to do. This fixes a potentially nasty problem where the caller could grab the username or style from the auth session via auth_getitem() and then call auth_verify() with those values. auth_setitem() would eventually get called which would make a private copy and free the old values in the auth session. After all this, the stashed username and/or style pointers would point to freed memory.
2002-10-15Note that when calling auth_verify() with a style and/or username,Todd C. Miller
the old values in the auth session will get freed and the new values added.