summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2013-06-11Contrary to C99's advice, C++ TR1 and C++ 11 require that <inttypes.h>Matthew Dempsky
and <stdint.h> should unconditionally define all of their macros regardless of whether the __STDC_*_MACROS macros are defined. ok guenther, espie bulk build tested by landry
2013-06-04Enable the _POSIX_SHARED_MEMORY_OBJECTS option group now that we have ↵Brad Smith
shm_open / shm_unlink. ok guenther@
2013-06-02XPG 4 apparently exposed d_ino and ino_t. Also, always pull inPhilip Guenther
<sys/_types.h> for the internal types ok matthew@
2013-05-31Add getprogname() and setprogname() to ease slackers^porters' work.Antoine Jacoutot
Man page adapted from FreeBSD and NetBSD. Bump libc minor now (there will be more upcoming changes). input from tedu@ get it in deraadt@
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-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-11getpgid() and getsid() were rolled into POSIX in 2008Philip Guenther
ok millert@
2013-04-11Add 'restrict' per POSIX, per prodding by tedu@. (Might permit more warnings?)Philip Guenther
Tweak standards exposure of memchr (never) and strdup (POSIX-2008) Remove unnecessary tests of __BSD_VISIBLE ok millert@
2013-04-02Pull in <sys/_types.h> instead of <machine/_types.h> in prep for the futurePhilip Guenther
ok deraadt@
2013-03-28Enable fmemopen(3) and open_{w,}memstream(3)Eric Faurot
commiting on behalf of mpi@
2013-03-24I can see no reason for #ifndef _KERNEL check in a /usr/includeTheo de Raadt
(ie. non-kernel) .h file
2013-03-24dlerror() should not return const char *, as noted by landryTheo de Raadt
ok guenther
2013-03-21Do not install the dev/pci/drm/i915 directory to /usr/includeTheo de Raadt
2013-03-18forget about this for now; wait till laterTheo de Raadt
2013-03-18Skip another irrelevant leaf when descending into sys/devTheo de Raadt
ok kettenis
2013-03-01Adds the (somewhat silly) _CS_V[67]_ENV and _CS_POSIX_V[67]_* definesPhilip Guenther
to <unistd.h> and confstr(3) per POSIX 1003.1-2008 Change confstr(_CS_PATH) to operate directly instead of calling sysctl(3) ports build tested by espie@
2013-03-01Add _POSIX_CLOCKRES_MIN and _POSIX2_CHARCLASS_NAME_MAX per POSIX 1003.1-2008Philip Guenther
ports build tested by espie@
2013-02-17Fix typo that hid PASS_MAX, TMP_MAX, NL_NMAX, and _XOPEN_{IOV,NAME,PATH}_MAXPhilip Guenther
defines. ok deraadt@ millert@
2013-01-30Add support for POSIX.1-2008 functions dprintf(3) and vdprintf(3).Brad Smith
Feedback from millert@ guenther@ OK guenther@ man page bits OK jmc@
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2012-12-03Simple emulation of POSIX pty APIs posix_openpt(), ptsname(),Todd C. Miller
grantpt() and unlockpt() using /dev/ptm. Man pages from FreeBSD. OK kettenis@ deraadt@ beck@ ajacoutot@ naddy@
2012-11-29Change scandir()'s 'select' argument fromPhilip Guenthe
int (*)(struct dirent *) to int (*)(const struct dirent *) to match POSIX. ok millert@, ports check by naddy@
2012-10-01More compliance fixes: hiding non-standard stuff behind __BSD_VISIBLE,Philip Guenthe
making files stand-alone, some __restrict additions. tweaks kettenis@; ports testing and fixes landry@ and jasper@ ok millert@
2012-09-26Explicitly annotate setjmp() and longjmp() (and friends) asBrad Smith
__returns_twice and __dead instead of depending on GCC's special handling of these function names. With input from kettenis@ and guenther@ Fixes a warning from clang ok matthew@
2012-09-23uint32_t is the integer type defined in stdint.hMarc Espie
u_int32_t is historical BSD stuff. fix to match the manpage, namely #include <stdint.h> as a prerequisite. okay millert@
2012-09-15Improve POSIX/SUS compliance of <netdb.h>, <sys/socket.h>, and <sys/un.h>.Philip Guenthe
Much ports testing of various versions by naddy@ and jasper@ ok matthew@, miller@
2012-08-23no more _PATH_AFSD requiredTheo de Raadt
2012-08-23do not install the nnpfs directoryTheo de Raadt
2012-08-22hex constants unsigned, prevents some gcc warningsMarc Espie
okay ratchov@
2012-07-10Instead of <arpa/inet.h> pulling in <netinet/in.h>, just copy in thePhilip Guenthe
three things that it needed from there: INET_ADDRSTRLEN, INET6_ADDRSTRLEN, and struct in_addr. Add protecting #ifndefs to netinet6?/in6?.h for those. ok deraadt@
2012-07-10Stop pulling in <sys/param.h>Philip Guenthe
ok deraadt@
2012-07-10bsearch() doesn't belong here (it's in <stdlib.h>)Philip Guenthe
Add __restrict bits for tdelete() ok deraadt@
2012-07-08Include sys/types.h rather than sys/param.h to pull BYTE_ORDER macros.Alexandre Ratchov
suggested by deraadt@
2012-06-30Further standards compliance fixes: export LONG_BIT, WORD_BIT, andPhilip Guenthe
NL_{ARG,LANG,MSG,SET,TEXT}MAX with newer POSIX. Hide {FLT,DBL}_{DIG,MAX,MIN} and {PASS,TMP,NL_N}_MAX with newer XPG. Make _POSIX_NGROUPS_MAX and _POSIX_OPEN_MAX conditional on the POSIX version, like _POSIX_TZNAME_MAX already is. Add some more _POSIX_* and _XOPEN_* 'specified' limits. ok kettenis@
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-26create new machine/_float.h which is namespace clean. create a newTheo de Raadt
MI float.h which pulls in and defines the values that are needed from there, and repair sys/limits.h so that it defines the values it needs as well (depending on POSIX version, XPG version, etc). guenther has a more exact selection of that coming for limits.h. this also fixes a few mistakes for the vax. reviewed by kettenis and guenther.
2012-06-26Improve compliance for <arpa/inet.h> and <netinet/in.h> to define/declarePhilip Guenthe
all the symbols that POSIX says they must and fewer that they can't and, most importantly, to not require a specific ordering of headers. ports testing by naddy@ ok millert@ deraadt@
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-19simplify includes prereq/req order:Marc Espie
- everything that has prereq will also do includes, add it late, so that gnu stuff (the only part with prereq) happens late. - new RUN_MAKE snippet, to be able to have the makefile magically decide between Makefile.bsd-wrapper and Makefile. So there's no longer any need to remember complicated rules: add it to RDIRS if it just wants make includes, add it to PRDIRS if it wants prereq too, and that's all. okay deraadt@, miod@
2012-06-10Improve standards compliance: bsd_signal() was XSI only and has been droppedPhilip Guenthe
from the most recent version, use the implementation namespace for variables in inline functions, and add __restrict as specified. ok millert@
2012-06-06Add support for mbsnrtowcs() and wcsnrtombs() to libc.Matthew Dempsky
Bulk build test by naddy.
2012-06-01Improve standards conformance: ecvt(), fcvt(), gcvt(), mktemp(), ttyslot(),Philip Guenthe
and valloc() are not in the current version, while posix_memalign() mkstemp(), and mkdtemp() are, and setstate()'s argument has lost a bogus 'const'. ok millert@ jmc@ espie@ kettenis@; ports build testing by naddy@
2012-05-30Move the _SC_* and _CS_* configurable system variables and stringsMatthew Dempsky
from sys/unistd.h to unistd.h. From Brad; ok millert and me
2012-05-23Make the "default" string a valid device name that has the same effectAlexandre Ratchov
as NULL has. This will (hopefully) simplify ports where the user passes the device string.
2012-05-14More sysconf(3)-y and pathconf(3)-y goodness from Brad.Matthew Dempsky
ok guenther, millert (and me); bulk build test by naddy
2012-05-13functions are top-level objects anyways, make that clearer.Marc Espie
Okay otto@
2012-05-10Recongnize that:Mark Kettenis
* strptime(3) was introduced in XPG 4.0 * clock_gettime(3) and friends were introduced in 1003.1b-1993 * asctime_r(3) and friends were introduced in 1003.1c-1995 and conditionally provide prototypes and associated types accordingly. This makes our <time.h> standards compliant except for some functions that are still missing. ok guenther@
2012-05-07Once more the people behind POSIX didn't think and put clock_gettime(2) andMark Kettenis
friends in <time.h>. The kernel needs access to the associated #defines, but can't get them from <time.h>, so introduce a new header <sys/_time.h> and include that from <time.h> for userland and <sys/time.h> for the kernel. ok matthew@, guenther@, millert@
2012-04-22enable sqlite3, as prompted by theoMarc Espie