summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2012-07-11make -j# fix, I had this forever actually.Marc Espie
okay millert@
2012-07-11implement res_mkqueryEric Faurot
2012-07-11- port multiple report ID support for HID parser from FreeBSD codeYojiro Uo
(rev. 205728, 224511 and 225839) - add hid_get_report_id(3) to get id of a descriptor. - crank the major in shlib_version 3.0 -> 4.0 ok deraadt@, mpi@
2012-07-11Disable SSLv2 in OpenSSL. No objections from djm.Stuart Henderson
Brad, jasper and naddy helped with test builds, fixing ports, etc.
2012-07-11fix an off-by-one error where the return value would point to theChristian Weisgerber
character after the '\0'; ok guenther@
2012-07-11sem_timedwait() needs the struct timespec tag to be pre-declared here.Philip Guenthe
Add restrict qualifiers.
2012-07-10same code update and fix as for gethostnamadr_asyncEric Faurot
2012-07-10simplify the code, improve error handling and plug a potential fd leak on errorEric Faurot
2012-07-10use the value actually passed to the functionEric Faurot
2012-07-10Better handling of servname in getaddrinfo_async. Do not necessarilyEric Faurot
fail if there is no entry for a given protocol. Fix issue reported by early testers.
2012-07-09ANSIfy forkpty, add missing $OpenBSD$ in duid.c, style (no arg names) inNicholas Marriott
util.h. ok guenther
2012-07-09Use the PAGE_* forms (instead of the ancient BSD forms) in param.h,Theo de Raadt
because param.h will get a kick in the head sometime in the future. One day, maybe both can become invisible, but we boot one of them first. ok guenter
2012-07-09use PAGE_SHIFT instead of PGSHIFT, in preperation for futureTheo de Raadt
param.h symbol reduction. ok guenther
2012-07-08implement res_querydomain() required by sendmailEric Faurot
2012-07-08add stub function for gethostent(), and move things around a bit while here.Eric Faurot
2012-07-08Zap extra spaces from function pointer argumentsPhilip Guenthe
Pointed out by Joachim Schipper (joachim at joachimschipper.nl)
2012-07-08Describe tdelete()'s return value correctly and update the related CAVEATPhilip Guenthe
Based on a note from Steffen Daode Nurpmeso (sdaoden at googlemail.com) ok jmc@
2012-07-07rename function to avoid symbol clashEric Faurot
2012-07-07remove bogus include of bsd.lib.mkEric Faurot
2012-07-07unbreak, pointed out by theoJasper Lievisse Adriaanse
2012-07-07actually, make this identical to what upstream expat ships nowadays by addingJasper Lievisse Adriaanse
a URL field and removing the empty Requires.
2012-07-07add expat.pcJasper Lievisse Adriaanse
based on a diff by brad ok sthen@
2012-07-03adapt the NetBSD code to make sigpending work on shJonathan Gray
ok miod@ kettenis@
2012-07-01The kernel returns the pending set; this stub has to save it throughPhilip Guenthe
the pointer ok miod@ kettenis@
2012-07-01make this actually workMark Kettenis
ok miod@
2012-06-28librthread has eaten libpthread, so build includes via the former insteadPhilip Guenthe
of the latter. Permits the misleading lib/libpthread/Makefile to be removed discussed with deraadt@
2012-06-26after a talk with ariane, use MAP_FIXED for mquery to avoid the cost ofTed Unangst
scanning for free space if the hint isn't available. also, on further inspection, this will prevent pmap_prefer from "improving" our hint.
2012-06-26simplify a little of the posix standards talk. ok deraadt guenther jmcTed Unangst
2012-06-26Use nl_langinfo(RADIXCHAR) instead of localeconv()->decimal_point inMatthew Dempsky
printf() and avoid calling it unless needed (i.e., when we have a floating point value to print). This isn't a big concern currently due to our limited locale support and current localeconv() implementation, but it's still technically a data race and implementing POSIX 2008 per-thread locales is likely to make it worse. nl_langinfo() isn't guaranteed by POSIX to be thread-safe either, but at least our current implementation is thread-safe and it's a simpler interface to keep that way. Printing floating point values isn't async-signal-safe anyway due to gdtoa()'s use of malloc(), so that's not an issue. ok deraadt, stsp, millert
2012-06-25Do not use <machine/float.h>, that is an deformed BSD-ism.Theo de Raadt
It turns out <float.h> is the right file to pull in. ok millert
2012-06-24In sysconf(), don't bother querying the kernel for userspace-onlyMatthew Dempsky
values or features that POSIX now requires to always be provided. From Brad; ok guenther and me; incorporates feedback from millert too
2012-06-24Change arc4random_uniform() to calculate ``2**32 % upper_bound'' asMatthew Dempsky
``-upper_bound % upper_bound''. Simplifies the code and makes it the same on both ILP32 and LP64 architectures, and also slightly faster on LP64 architectures by using a 32-bit remainder instead of a 64-bit remainder. Pointed out by Jorden Verwer on tech@ ok deraadt; no objections from djm or otto
2012-06-24- document newly imported AF_INET6 support to net_inet_{pton,ntop}Gilles Chehade
diff from Florian Obser, ok jmc@
2012-06-22add support for AF_INET6 to inet_net_pton() and inet_net_ntop()Gilles Chehade
using inet_pton() and inet_ntop() as suggested by claudio ok claudio@
2012-06-22synch build after importMarc Espie
2012-06-22import 3.7.13Marc Espie
okay jasper@
2012-06-22two changes which should improve realloc. first, fix zapcacheregion toTed Unangst
clear out the entire requested area, not just a perfect fit. second, use mquery to check for room to avoid getting an address we don't like and having to send it back.
2012-06-21A piece of this is still neededTheo de Raadt
2012-06-21Update to reflect API changesPhilip Guenthe
2012-06-21For now... libpthread is just a container directory, since all the newTheo de Raadt
goop is in librthread. As a result, the top-level Makefile and shlib_version here are simply very confusing and tell lies. Remove them, and update the instructions in libc to not make my mistake again. ok guenther
2012-06-21__tfork() needs to set the stack address of the new thread in the kernel,Philip Guenthe
so that it can't get a signal while still running on the parent thread's stack. Also, pass in sizeof(struct __tfork) to provide forward compat when more members are added. This is an ABI change, so switch syscall numbers and bump lib majors this time. ok deraadt@ matthew@
2012-06-20two small fixes to free page cache. first, we need two nibbles of randomTed Unangst
in order to span the the entire cache. second, on free use the same offset to put things in the cache instead of always starting at zero. ok otto
2012-06-19oops, forgot to install getdtablecount(2); noted by teduTheo de Raadt
2012-06-18Support larger-than-page-alignment requests in posix_memalign() byMatthew Dempsky
overallocating and then releasing unneeded memory pages. ok otto
2012-06-15update return values for ibuf_write and msgbuf_writeJonathan Matthew
ok gilles@
2012-06-15Fix typos.Matthew Dempsky
ok pig(6)
2012-06-07Document mbsnrtowcs() and wcsnrtombs().Matthew Dempsky
ok jmc
2012-06-06Add support for mbsnrtowcs() and wcsnrtombs() to libc.Matthew Dempsky
Bulk build test by naddy.
2012-06-04stop editing header by hand, expose script I'm going to use for next versionsMarc Espie
2012-06-04fix autodetection, somehow I managed to lose that commit earlier ?Marc Espie
(brad reminded me we have strerror_r too).