summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2008-04-16permit _ in the middle of a DNS name componentTheo de Raadt
2008-04-13Improve the libc DNS resolver ID generation algorithm to be moreDamien Miller
resistant to prediction atacks by wrapping the existing LCG in a random permutation generator based on a Luby-Rackoff block cipher. lots of discussion and final ok deraadt@
2008-04-13Use arc4random_buf() when requesting more than a single word of outputDamien Miller
Use arc4random_uniform() when the desired random number upper bound is not a power of two ok deraadt@ millert@
2008-04-05document EINVAL; from DasnJason McIntyre
ok millert
2008-04-04alter internal _readdir_unlocked() api to be less confusing, so thatOkan Demirmen
callers may respond accordingly and correctly. this fixes an issue where readdir_r() could not decipher the difference between an error or no more entires. feedback and ok kurt@, ok millert@
2008-04-04- do not call pthread_atfork(3) handlers when a multithreaded programKurt Miller
calls vfork(2). "untested, but looks OK" marc@ - document vfork(2), popen(3) and system(3) don't call atfork handlers in multithreaded programs. okay jmc@
2008-04-04Zero out the password/response argument in the simplified BSD authTodd C. Miller
interafces. Otherwise, we end up with an extra copy in memory when auth_call() forks that is not possible to clear.
2008-04-04simplify SNDCTL_DSP_SETTRIGGERJacob Meuser
- don't mess with the operational mode. that was primarily to be able to set record|play mode for full-duplex, which isn't needed any more. - don't set pause=1. this ioctl isn't supposed to be used for stopping streams. suggestions, ok ratchov
2008-04-02Zero state buffers on return. OK deraadt@Todd C. Miller
2008-03-31Update to tzcode 2008a from elsie.nci.nih.govTodd C. Miller
2008-03-30Unbreak build.Mark Kettenis
2008-03-26HISTORY tweak; ok ottoJason McIntyre
2008-03-25be more explicit about the unit used for the f_b* fields; prompted byOtto Moerbeek
and ok djm@
2008-03-25section 3, Darrin ChandlerOtto Moerbeek
2008-03-24msg_controllen has to be CMSG_SPACE so that the kernel can account forTheo de Raadt
each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len). This works now that kernel fd passing has been fixed to accept a bit of sloppiness because of this ABI repair. lots of discussion with kettenis
2008-03-23Use fileno() instead of peeking into FILE *; Paul StoeberTheo de Raadt
2008-03-22flag constant values should be UL, spotted by deraadt@Otto Moerbeek
2008-03-22move statvfs.c to gen, since it is not a syscall; ok deraadt@Otto Moerbeek
2008-03-22overdue statvfs man pageOtto Moerbeek
2008-03-19bcmp(3) tries to return length, which is a size_t, as an int.Ray Lai
Instead, just return 1 if there is a difference. Found by lint. OK millert.
2008-03-16- add NAME entries for arc4random_buf and arc4random_uniformJason McIntyre
- simplify a macro call (Do/Dc -> Dq)
2008-03-16Add missing MLINKSTheo de Raadt
2008-03-16sync with sys/statfs.h; ok jmc@Otto Moerbeek
2008-03-16bumpOtto Moerbeek
2008-03-16Add the semi-standard _SC_PHYS_PAGES and _SC_AVPHYS_PAGES, sysconf(3) variable.Mark Kettenis
ok espie@
2008-03-16diff from djm@ committed at his request:Otto Moerbeek
introduce two new APIs for requesting strong random numbers: arc4random_buf() - fill an arbitrary memory range with random numbers arc4random_uniform() - return a uniformly distributed random number below a specified upper bound, avoiding the bias that comes from a naive "arc4random() % upper_bound" construction. these mirror similarly-named functions in the kernel; lots of discussion deraadt@ mcbride@
2008-03-16indentTheo de Raadt
2008-03-16statvfs supportOtto Moerbeek
2008-03-15- len is size_t, but n uses len and is an int. Matching those typesRay Lai
should be good, plus it prevents weird things from happening if len > INT_MAX. - Since n is now size_t, compare it against 0 instead of >= 0. - temp is used to store individual bytes, so use char instead (matches fp and tp). - millert noted that the comma operator may not guarantee order of execution, so replace with semicolons. Found by lint, OK millert.
2008-03-15Convert c to unsigned char, like it says in the manual. Also addRay Lai
cast to make it explicit. Found by lint, OK millert.
2008-03-15Repair the simple cases for msg_controllen where it should just beTheo de Raadt
CMSG_SIZE(sizeof(int)), not sizeof(buffer) which may be larger because of alignment; ok kettenis hshoexer
2008-03-13Correct CMSG_SPACE and CMSG_LEN usage everywhere in the tree. Due toTheo de Raadt
an extensive discussion with otto, kettenis, millert, and hshoexer
2008-02-26fix memory leak (in one case of unaligned buffers); from Markus KvetterTheo de Raadt
ok markus
2008-02-25Have cfmakeraw() also reset VMIN and VTIME to their default values;Theo de Raadt
ok kettenis miod
2008-02-23if the first call to allocset() fails, the second might deref a NULLOtto Moerbeek
pointer, so add a safety-net. From Gianluigi Tiesi via Torok Edwin. ok chl@ millert@
2008-02-22fix rwlocks to work with the "initialized" form, from Philip GuentherTed Unangst
2008-02-20use pgfree pool like other code does to reserve free list slots.Otto Moerbeek
prevents a few "cannot free mem because i need mem to free mem" scenarios (one found by weingart@). ok weingart@ millert@ miod@
2008-02-13The digest in the example seems to have been generatedArtur Grabowski
by code that does not do zero padding. The example code does. Fix. millert@ ok
2008-02-11bump Mdocdate for pages committed in "febuary", necessary becauseJason McIntyre
of a typo in rcs.c;
2008-02-09Mention new HW_PHYSMEM64 and HW_USERMEM64 variables. Mark HW_PHYSMEM andMark Kettenis
HW_USERMEM as deprecated and point people towards HW_PHYSMEM64/HW_USERMEM64.
2008-02-05Move carp load balancing (ARP/IP) to a simpler configuration scheme.Marco Pfatschbacher
Instead of using the same IP on multiple interfaces, carp has to be configured with the new "carpnodes" and "balancing" options. # ifconfig carp0 carpnodes 1:0,2:100,3:100 balancing ip carpdev sis0 192.168.5.50 Please note, that this is a flag day for anyone using carp balancing. You'll need to adjust your configuration accordingly. Addititionally this diff adds IPv6 NDP balancing support. Tested and OK mcbride@, reyk@. Manpage help by jmc@.
2008-02-02Relocate internal pipe file descriptor if newfd collides with it. FixesKurt Miller
bsd_auth(2) issue when compiled with threads. Reported by Joachim Wieland <joachim.wieland at credativ.de>. okay otto@ marc@
2008-01-29More read/write result checking fixes to avoid unsigned comparisons vsKenneth R Westerback
-1. ok henning@ beck@ ray@
2008-01-28Properly align stack such that code that uses SSE2 instructions doesn't crash.Mark Kettenis
ok espie@, beck@
2008-01-23- add missing libc locking functions for _thread_atexit_lock() andKurt Miller
_thread_atexit_unlock(). okay tedu@
2008-01-17Use TCSAFLUSH instead of TCSANOW when turning echo back on so thatTodd C. Miller
there is no chance of output that was written but still pending to be displayed. This is what the original getpass(3) did.
2008-01-07update to tzcode2007k from elsie.nci.nih.govTodd C. Miller
2008-01-05no more need for vadvise.oTheo de Raadt
2008-01-05crank libc and libpthread, because libc cannot build lint libraries anymore ↵Theo de Raadt
if a syscall is OBSOL..
2008-01-01- make arc4random*() functions thread safe. Use a custom spinlock functionKurt Miller
instead of the generic pthread macros since free(3) uses __arc4_getbyte() when freeing small sized allocations and the generic pthread macros call malloc(3). - eliminate passing pointers to a static variable with global scope (rs) for additional code clarity and reduction. - shlib minor bumps for libc and libpthread due to new functions. From andreas@ with some bits from me. okay tedu@ marc@ w/some spot checking from millert@