summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2004-01-26Use libkern's fast ffs() in libc too.Miod Vallat
2004-01-25use new .St macro;Jason McIntyre
2004-01-24document EPERM; from Pedro Martelletto;Jason McIntyre
ok millert@
2004-01-23`Ns' implies `No', so `Ns No' -> `Ns'; (even simpler in adduser(8))Jason McIntyre
discussed with todd@
2004-01-23Use closefrom(); ok millert teduTheo de Raadt
2004-01-20Call _exit() not exit() from abort() if we are unable to kill ourselvesTodd C. Miller
to avoid flushing stdio twice. This code path should never really happen though. Also make the function declaration ANSI. OK deraadt@
2004-01-20Stop parsing the buffer after an appropriate number of digits; from NetBSDTodd C. Miller
OK otto@ and miod@
2004-01-20Fix the example code. The loop invariant 'i' was not bound by MAXTOKENSTodd C. Miller
which could result in writing a NUL byte outside of tokens[]. A fix, from Patrick Latifi, is to move the increment into the "i < MAXTOKENS - 1" block.
2004-01-19emulation names are not changeableTed Unangst
2004-01-15ABI breakage happened with the sigaltstack replacement. It is too late,Theo de Raadt
now we just have to cope. Since setjmp uses it, the alpha and sparc64 are unhappy with the structure change. In a few days, we will make the second hop here, for now, use the old system call until all binaries have the new struct in them.
2004-01-14.Xr closefromTed Unangst
2004-01-14update struct, noted by deraadt@Ted Unangst
2004-01-12full date in .Dd;Jason McIntyre
2004-01-12typo from jmc@Ted Unangst
2004-01-12new syscall closefrom(2). ok deraadt millertTed Unangst
2004-01-12document WAIT_ANY and WAIT_MYPGRP;Jason McIntyre
help and ok miod@
2004-01-12some comments on ffs sysctls, mainly dirhashTed Unangst
2004-01-11__sglue should be extern; from art@Todd C. Miller
2004-01-10auth_clean does not clear the options settingsTodd C. Miller
2004-01-10Don't clean options in auth_clean() which was introduced in rev 1.8.Todd C. Miller
login(1) depends on auth_clean() leaving options alone so this was API breakage. Verified to not make ftpd leak memory by mpech@.
2004-01-08Add missing include of poll.h to example code; Andre NathanTodd C. Miller
2004-01-08in the description of ip.sourceroute, point people to securelevel(7), asJason McIntyre
for other sysctls affected by securelevel;
2004-01-08alphabetic order;Jason McIntyre
sort spacing;
2004-01-08use va_copy() with gcc 3 and up.Brad Smith
ok millert@ espie@
2004-01-08add dirhash sysctlsTed Unangst
2004-01-07document syn cache sysctl; ok deraadt, jmc, itojunMarkus Friedl
2004-01-07Implement KERN_PROC2 sysctl from NetBSD. This will allow us toTodd C. Miller
have ps and friends be independent of changes in struct proc et al in the kernel. OK deraadt@
2004-01-07amout -> amount; from tom@.Federico G. Schwindt
2004-01-06- Rename index to longindex and explain its use.Federico G. Schwindt
- Talk about zeroing the last element of the longopts array. - Remove '?' from the switch and some KNF to the code. - Change 0's to NULL where appropriate. jmc@ ok.
2004-01-05Use correct type for old values. No binary change.Otto Moerbeek
ok mickey@ miod@
2004-01-02net.inet.carp.preempt is disabled by default.Ryan Thomas McBride
Pointed out by david@
2003-12-31Implement svc_getreq_poll(3) and friends and use poll(2) instead of select(2)Todd C. Miller
in the libc rpc code. The main difference between this and the previous version is the use of a simple free list that simplifies the logic when adding a socket to svc_pollfd. I've also added code to pack svc_pollfd when the free list gets too big. The idea general idea is to keep svc_pollfd as tightly packed as possible to make poll(2) efficient. Tested by many people and OK deraadt@
2003-12-30sync protos with <netdb.h>;Jason McIntyre
from Andrey Matveev;
2003-12-28Mention session ID; OK deraadt@Todd C. Miller
2003-12-28elf(5) is relevant here too;Jason McIntyre
from Mathias K. Straede (PR 3619); ok miod@ deraadt@
2003-12-25Use an unsigned comparison against minbrk.Miod Vallat
ok deraadt@
2003-12-24In the never-ending story of *setjmp bugs, fix a typo preventingMiod Vallat
sigsetjmp(foo, !0) to work. Sigh.
2003-12-23- uppercase idJason McIntyre
- kill some .Pp's before and after a list
2003-12-20update sticky: note that setting the sticky bit on files is still possible,Jason McIntyre
but has no effect. Retain description of sticky files, but note that it is historical. Add small description of how current system works. Improve description of sticky directories. Remove references to ld(1). Remove no longer relevant BUG. much assistance and ok otto@ and tedu@
2003-12-19Speed up sbrk() one cycle by removing an unnecessary register shuffling.Miod Vallat
2003-12-19document hw.{cpuspeed,setperf} sysctls;Jason McIntyre
tweak and ok tedu@
2003-12-17- new sentence, new lineJason McIntyre
- kill whitespace at EOL - remove unnecessary .Pp
2003-12-17new options from marius@monkeyTed Unangst
2003-12-14alignment fixes (e.g sparc 64); from Daniel Lucq; ok millert, henningMarkus Friedl
2003-12-12Document RLIM_SAVED_CUR and RLIM_SAVED_MAX; jmc@ OKTodd C. Miller
2003-12-12niels kindly dropped clause 3/4 from the license. tnx!Jun-ichiro itojun Hagino
2003-12-12we can skip arc4random() call here. markusJun-ichiro itojun Hagino
2003-12-11Add id_t type as per POSIX and use it for [gs]etpriority(2).Todd C. Miller
OK henning@ and deraadt@
2003-12-10Add an nfds_t type as per POSIX and also add pollfd_t like Solaris has.Todd C. Miller
2003-12-10correct non-repetitive ID code, based on comments from niels provos.Jun-ichiro itojun Hagino
- seed2 is necessary, but use it as "seed2 + x" not "seed2 ^ x". - skipping number is not needed, so disable it for 16bit generator (makes the repetition period to 30000)