summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2013-05-13Add an implementation of memmem() -- from FreeBSD with some tweaks.Antoine Jacoutot
Requires a libc minor bump, committing now so that we have up-to-date snapshots for the upcoming hackathon. joint work with millert@ man page bits ok jmc@ input and ok millert@, guenther@, deraadt@
2013-05-10Update SYNOPSIS and add STANDARDSPhilip Guenther
2013-05-10Update STANDARDSPhilip Guenther
2013-05-10Clarify behavior of SA_NOCLDWAITPhilip Guenther
Tweak indentation in the synopsis feedback and ok jmc@, espie@
2013-05-08clarify when EACCESS can fail. if from is read only, you're out of luck.Ted Unangst
failure to document this case noticed by Mike Small
2013-05-08Don't declare ___start static, for gcc4 would optimize it out.Miod Vallat
2013-05-08fix SEE ALSO;Jason McIntyre
2013-05-08Update DESCRIPTION, ERRORS, SEE ALSO, and STANDARDS sectionsPhilip Guenther
(setpgid has *never* cared about euid in OpenBSD)
2013-05-08Lists should be sorted by the normal alphabet, not my private onePhilip Guenther
Noted by jmc@
2013-05-08We have fdatasync() and pselect() now, so uncomment them in the list ofPhilip Guenther
async-signal-safe functions. Also, add ppoll() as an async-s-s extension interface
2013-05-07on failure errno is set as wellDavid Gwynne
2013-05-06If the lock is contended, such that the 'sc' fails, then we need toPhilip Guenther
reset the %2 register with _SPINLOCK_LOCKED before retrying. tobiasu@ hit the problem and figured out that ".set noreorder" is needed in the ASM
2013-05-05since i386_{g,s}et_ioperm(2) are the same page, do not list them both inJason McIntyre
SEE ALSO;
2013-05-05remove never implemented amd64 get/set ioperm sysarch. ok guentherTed Unangst
2013-05-05no need to cast callocTed Unangst
2013-05-03Fix resetting MB_CUR_MAX when switching locales away from a UTF-8 locale.Stefan Sperling
Patch by Vladimir Támara Patiño <vtamara@pasosdeJesus.org> ok mpi millert
2013-04-30various small fixes;Jason McIntyre
2013-04-30Do not take external buffers for storing DNS responses in the internalEric Faurot
async API. That is actually useless and it makes the code more complicated. The required buffers are always allocated when needed.
2013-04-30copy input flags in result addrinfo structures.Eric Faurot
2013-04-29Extend P_SIGSUSPEND handling in userret() to properly restore theMatthew Dempsky
sigmask even if there are no pending signals under the temporary sigmask. Refactor existing select() and poll() system calls to introduce the pselect() and ppoll() system calls. Add rthread wrappers for pselect() and ppoll(). While there, update cancellation point comments to reflect recent fdatasync() addition. Minor bumps for libc and librthread due to new symbols. ok guenther, millert, deraadt, jmc
2013-04-29use FD_CLOEXEC instead of 1; from David HillOkan Demirmen
ok otto
2013-04-29use O_CLOEXEC with open() instead of open/fcntl; from David HillOkan Demirmen
ok otto
2013-04-23Do a PC-relative relocation for _map rather than going throughMartynas Venckus
GOTPCREL. Uncovered after the binutils patch where it isn't optimized away at assembly and is forced to go through GOTPCREL. But _map is effectively a local variable. Found with cephes by guenther@. OK guenther@, kettenis@, deraadt@.
2013-04-22Fixed typo.Tobias Stoeckmann
ok jmc
2013-04-21tweak a few commentsTed Unangst
2013-04-21this man page is mostly about password hashing now (you really don'tTed Unangst
want to be using DES) and some of the notes about the export controls are no longer so relevant. ok deraadt jmc
2013-04-21wording fix;Jason McIntyre
2013-04-20identify the argument containing the requested timeout, give argumentsTed Unangst
better names, and reword time to duration for clarity
2013-04-20Xr encrypt(1) to give people a hint if they just want a password stringTed Unangst
2013-04-19add clock_gettime to see also. i think guenther was ok with this.Ted Unangst
2013-04-17check return value of strdup(), fix mem leak in error path and takeOtto Moerbeek
into account that asr_use_resolver() can return NULL; ok tedu@ eric@
2013-04-17surround the error strings with quotes to clarify exactly which stringsTed Unangst
the function is going to return.
2013-04-17the tiniest of style tweaksTed Unangst
2013-04-17add some prototypes, casts, includes, parenthesis, and whatnot toTed Unangst
silence some warnings.
2013-04-17silence some warnings by adding prototypes, casts, and headers asTed Unangst
appropriate. in regex, stop using the struct hack for a fixed size array
2013-04-17evtag_marshal_timeval() truncates tv_sec to 32 bits, not passing the highTheo de Raadt
bits. Mark it with XXX 2038. I think it is poor style to create a "marshalling layer" which throws away information someone might need. ok nicm, who will pass the news upstream and ask for them to fix it
2013-04-17(long long) and %lld for big time_tTheo de Raadt
ok nicm, who will pass it upstream
2013-04-17use CLOCK_MONOTONIC, and repair future time_t overflowTheo de Raadt
ok millert guenther
2013-04-17give a timespec a name that is easier to verifyTheo de Raadt
2013-04-16Replace a realloc() + memcpy() with calloc() + memcpy().Todd C. Miller
We don't need to zero pfd but using calloc() gets us overflow protection for free. OK chl@ deraadt@
2013-04-15Remove CTL_USER hierarchy from sysctl()Philip Guenther
(Use sysconf() or confstr() instead) ok miod@ millert@
2013-04-15Implement fdatasync() as a wrapper around fsync()Matthew Dempsky
ok guenther, deraadt, jmc
2013-04-15SHA-224 is to SHA-256 as SHA-384 is to SHA-512. It was added in aTodd C. Miller
later revision of FIPS-180. OK miod@ jmc@ guenther@ djm@
2013-04-15Crank due to statfs changes and other inbound commits.Joel Sing
2013-04-15Back out r1.17 and its subsequent conversion to poll. OtherwiseTodd C. Miller
we can get into a svc_getreq_poll() -> readtcp() -> svc_getreq_poll() loop until we run out of stack. If we want to avoid blocking on the new fd in readtcp() we need to poll() in svc_getreq_poll(), which will require a more elaborate change. OK tedu@
2013-04-14spacingTheo de Raadt
2013-04-14typo; Benedikt SteinbuschStuart Henderson
2013-04-11Proper access of _THREAD_PRIVATE storage. Avoids a mem leak and reinitOtto Moerbeek
of resolver context for each resolver call for single threaded programs. With and ok tedu@ ok eric@
2013-04-11Fix obviously stupid bug in the PIC_{LOAD,STORE} macros when compiling withMiod Vallat
-fPIC. Harmless since we build libc -fpic so far.
2013-04-09show what we parsed in debug output; ok guether@Otto Moerbeek