summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2014-08-10Delete duplicate conditionalPhilip Guenther
diff from frantisek holop (minusf (at) obiit.org)
2014-07-18Change lsearch()'s "base" argument to require a non-const pointer toMatthew Dempsky
align with POSIX and other systems. Pointed out by Elliott Hughes on tech ok deraadt
2014-07-14international currency locale rules as per POSIX.1-2008Martin Pelikan
required for libc++ ok guenther afresh1
2014-07-14enter libressl for make includesTheo de Raadt
2014-07-12Tackle the endian.h mess. Make it so that:Philip Guenther
* you can #include <sys/endian.h> instead of <machine/endian.h>, and ditto <endian.h> (fixes code that pulls in <sys/endian.h> first) * those will always export the symbols that POSIX specified for <endian.h>, including the new {be,le}{16,32,64}toh() set. c.f. http://austingroupbugs.net/view.php?id=162 if __BSD_VISIBLE then you also get the symbols that our <machine/endian.h> currently exports (ntohs, NTOHS, dlg's bemtoh*, etc) * when doing POSIX compiles (not __BSD_VISIBLE), then <netinet/in.h> and <arpa/inet.h> will *stop* exporting the extra symbols like BYTE_ORDER and betoh* ok deraadt@
2014-07-12Welcome to 1989: assume the compiler support constPhilip Guenther
2014-07-12Per C99, wchar.h has to forward declare struct tmPhilip Guenther
2014-07-11stop installing netbt headersTed Unangst
2014-07-11make dump support DUIDs for command line arguments and /etc/dumpdates (usingAlexander Hall
the new shiny -U switch) dumpdates part originating from, and discussed with, Maximilian Fillinger seems reasonable to krw@, "get it in" deraadt@
2014-07-09Clean up after arc4random u_int32_t uint32_t changeBob Beck
ok jsing@
2014-07-08update _POSIX2_FORT_RUN, so that sysconf(_SC_2_FORT_RUN) remains correct.Ted Unangst
because you care. reminded by matthew.
2014-06-14Change return value of getentropy() to int 0 for success. MaximumTheo de Raadt
buffersize is enforced strictly, this supplies sufficient entropy payload to act as seed material. Discourage general use of this API, but lock down this function name as the go-to for userland PRNG seeding. Improve documentation. ok miod matthew
2014-06-13Add new getentropy() system call. Code and pressure from matthew.Theo de Raadt
I accepted that he's right (again) to seperate this out from heavy sysctl API and this will simply a variety of things. Functionname is not used by anyone in the ports tree, so we guess we can use it. Shocking that no application has a function called this. ok matthew & others who pushed him to start this early on
2014-06-13Add timingsafe_memcmp().Matthew Dempsky
ok deraadt, jmc, tedu
2014-05-26Can't use a variable 'c' in a standard include; rename it to '_c'Philip Guenther
ok deraadt@ millert@
2014-05-16add prototypes for new crypt functionsTed Unangst
2014-05-12these files have moved to libutilMarc Espie
2014-05-12no md5cryptTed Unangst
2014-05-12move the ohash functions into libutil by popular demand.Marc Espie
It's not a standard interface, so it doesn't belong in libc. I hate duplicating the code in client programs, so do beck@, kettenis@, schwarze@, millert@, miod@... and they agree with libutil.
2014-05-12tweak interface to do the right thing, after useful comments from millert@Marc Espie
(mostly use a calloc function to avoid potential integer overflow)
2014-05-03Annotate wide character routines so they get protected by Wbounded.Martynas Venckus
OK millert@
2014-05-03- Provide extended-precision math constants req'd by POSIXMartynas Venckus
- Explicitly cast double-precision constants as needed for FLT_EVAL_METHOD = 2 archs OK guenther@, ratchov@
2014-04-28Implement AI_ADDRCONFIGsperreault
This is a getaddrinfo() flag that is defined thusly in RFC 3493: If the AI_ADDRCONFIG flag is specified, IPv4 addresses shall be returned only if an IPv4 address is configured on the local system, and IPv6 addresses shall be returned only if an IPv6 address is configured on the local system. The loopback address is not considered for this case as valid as a configured address. For example, when using the DNS, a query for AAAA records should occur only if the node has at least one IPv6 address configured (other than IPv6 loopback) and a query for A records should occur only if the node has at least one IPv4 address configured (other than the IPv4 loopback). The flag is set by default when hints is NULL. ok Eric Faurot, Jason McIntyre
2014-04-22change mallocarray to reallocarray. useful in a few more situations.Ted Unangst
malloc can, as always, be emulated via realloc(NULL). ok deraadt
2014-04-22Remove KERBEROS5 from the Makefiles (except ssh for now, where it isReyk Floeter
already manually disabled). ok deraadt@
2014-04-22Add errc/verrc/warnc/vwarnc family: versions of err/... that take the errnoPhilip Guenther
value to use for the strerror() message as an argument. Originally from FreeBSD 3.0 Patch from Steffen Nurpmeso (sdaoden (at) gmail.com) with minor tweaks.
2014-04-21Remove historical comment about <varargs.h> and warn people from usingPhilip Guenther
the _* functions outside libc
2014-04-21Introducing: void *mallocarray(size_t nmemb, size_t size);Theo de Raadt
Like calloc(), except without the cleared-memory gaurantee ok beck guenther, discussed for more than a year...
2014-04-21Use internal '__' names for __attributes__ in public headersPhilip Guenther
2014-04-19stop installing altq includesHenning Brauer
2014-04-11Move build machinery for libcrypto from libssl/crypto to libcrypto, as wellMiod Vallat
as configuration files; split manpages and .pc files between libcrypto and libssl. No functional change, only there to make engineering easier, and libcrypto sources are still found in libssl/src/crypto at the moment. ok reyk@, also discussed with deraadt@ beck@ and the usual crypto suspects.
2014-04-01Define intptr_t in <unistd.h> as specified by POSIXMatthew Dempsky
ok millert
2014-03-27safe to remove gets, now that's gone from cstdio tooTed Unangst
2014-03-26Make the asr API public. Install asr.h to /usr/include.h and manpages.Eric Faurot
Include tweaks suggested by mpi@ ok deraadt@
2014-03-25try to put the pin back in.Ted Unangst
removing gets means removing it from libstdc++ and guenther tells me that will require changing version numbers.
2014-03-25no getsTed Unangst
2014-03-24unbreak the tree; no more libwrapMark Kettenis
2014-03-23more bm excisionTed Unangst
2014-03-23Remove the MD4 functions.Christian Weisgerber
"A collision attack published in 2007 can find collisions for full MD4 in less than two hash operations." ok deraadt@, man pages ok jmc@
2014-03-16lint is dead (long live the lint!), so stop using it as a cpp conditionalPhilip Guenther
(namespace pollution!) or talking about its opinion on code. ok krw@
2014-03-13the default rsh is now spelled ssh. ok deraadtTed Unangst
2014-03-13Unhook httpd(8) from buildFlorian Obser
OK krw@, gilles@, lteo@, tedu@, todd@, benno@, sthen@ "The time is right." and much help getting the show on the road deraadt@
2014-01-22add explicit_bzero to libc. implementation subject to change, but startTed Unangst
the ball rolling. ok deraadt.
2014-01-08Delete struct definitions that have been obsolete for a dozen yearsPhilip Guenther
ok deraadt@
2013-12-28Annotate a few more bounded functions: realpath(3) needs a bufferMartynas Venckus
of size at least PATH_MAX. pread(2), pwrite(2) and readlinkat(2) also take the buffer and the bound. OK theo.
2013-12-13Fix typo; 200809 not 20080 for __POSIX_VISIBLE. Noticed by jca@Todd C. Miller
2013-12-13Zap some getdirentries() leftovers.Vadim Zhukov
okay guenther@
2013-12-08remove the final vestiges of the stty(), gtty(), and ftime() compatibilityChristian Weisgerber
interfaces; ok deraadt@
2013-12-05oops, sgtty.h stays for a little longerTheo de Raadt
2013-12-04express final disapproval of the interfaces in libcompat, such asTheo de Raadt
them ftime(), gtty(), stty(), re_comp(), cuserid() and others. Discussion and ongoing work to fix the ports tree from many, especially naddy. ok naddy [There is a bit more cleanup possible after that, but this is considered the current safe step]