summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
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
2012-04-12remove rfork(); ok guenther miodTheo de Raadt
2012-04-12prototype getdtablecount()Theo de Raadt
2012-04-11Use "unsigned int" rather than "unsigned". No object change.Alexandre Ratchov
suggested by deraadt@
2012-03-25strsignal() was added to POSIX-2008; strerror_r() was in the basePhilip Guenthe
of POSIX-2001, without the XSI qualifier. Adjust conditionals to match. ok millert@
2012-03-24Provide the old prototypes for scandir() and alphasort() for code thatPhilip Guenthe
requests the pre-standardized version requested by millert@
2012-03-22Make DIR a private type within libc, give it the same underlyingMatthew Dempsky
typedef regardless of __BSD_VISIBLE, and eliminate the dirfd() macro. ok guenther@
2012-03-22Update alphasort() and scandir()'s argument types to match POSIX:Philip Guenthe
use "const struct dirent **" instead of "const void *". Also, add __restrict to readdir_r(). ok matthew@
2012-03-22Add dirfd() as a function to libc per POSIX requirement; dirfd() macroMatthew Dempsky
to be pruned later when DIR is made an opaque type. ok guenther@; prodding by brad@ for VLC and other ports
2012-03-21Implement getdelim(3) and getline(3).Federico G. Schwindt
Prompted in a mail to tech@ by Jan Klemkow (j-dot-klemkow-at-wemelug-dot-de) but this is based on NetBSD's implementation instead with some tweaks by me. Further improvements would happen in tree. ok millert@; discussed with many others ports cleanup by naddy@, sthen@. Antti Harri, Gonzalo L. R. and myself.
2012-03-21Implement execvpe(3) and posix_spawn(3) and family. Based onMatthew Dempsky
FreeBSD's implementation via Frank Denis, with various cleanups and tweaks by me. ok deraadt@, guenther@; discussions and tweaks from many others jmc@ promises to help me further with the man pages in tree
2012-01-17Add stpcpy() and stpncpy(), pointless crap that made it into POSIX.Philip Guenthe
Includes friendly linker warning to wake up those dumb enough to use it. Committing for kettenis@, who ran away to the hills after writing it
2012-01-17net_addrcmp() dies. found out to be a horrific function by ericTheo de Raadt
ok guenther
2012-01-13Replace _SELECT_DECLARED with _SELECT_DEFINED_Nigel Taylor
Ok sthen@, millert@, dcoppa@
2012-01-07Add rtable id and thread id to struct kinfo_proc (and fix process id)Philip Guenthe
and add an 'rtableid' keyword to ps. Add rtable id, thread id, and socket splice info to struct kinfo_file2 and make fstat display socket splice information. Remove old KVM_PROC2 and kinfo_proc2 interfaces; bump libkvm major Socket splice info and corrections from bluhm@ "Lovely" deraadt@
2012-01-05C99 says that both <wchar.h> and <stdint.h> should define WCHAR_MIN/MAX.Mark Kettenis
ok beck@, guenther@, millert@, miod@
2012-01-03The prototype for pthread_sigmask(2) is supposed to live in <signal.h>Mark Kettenis
instead of <pthread.h>. ok guenther@, millert@
2011-11-22sigstack() is long dead, and the compat sigaltstack syscall is gone too.Philip Guenthe
Correct the namespace protections for sigreturn(), sigwait(), and psignal() ok millert@
2011-11-09getcwd() buffer's length can be smaller than 1024. In that case it willFederico G. Schwindt
fail with errno set to ERANGE if not enough room is provided. Similar for getlogin_r() so remove minbytes enforcement attribute. ok kettenis@ guenther@ deraadt@ on getcwd, deraadt@ on getlogin_r.
2011-10-16Hook wcsftime(3) to the build; committing on behalf of espieStefan Sperling
2011-10-16Add wscanf(3) and friends. Based on our scanf(3) implementation, with wideStefan Sperling
character support changes based on code from FreeBSD. ok espie guenther; man page help from schwarze
2011-07-18Expose a bunch of new functionality from POSIX 2008: openat(2),Matthew Dempsky
fchmodat(2), fstatat(2), mkdirat(2), mkfifoat(2), mknodat(2), faccessat(2), fchownat(2), linkat(2), readlinkat(2), renameat(2), symlinkat(2), unlinkat(2), utimensat(2), futimens(2), and fdopendir(3). "Minor" libc bump. Tested in a bulk build by naddy@ Much help from guenther@, thib@, tedu@, oga@, and others. ok deraadt@, naddy@
2011-07-14__opendir2, DTF_NODUP, and __DTF_READALL can die. struct direntTheo de Raadt
dd_flags is renamed to the placeholder position dd_unused so that we can spot "broken software" which assumes we have Jan Simon Pendry's union mounts (we don't have them, and won't have them ever again). __opendir2 question spotted by matthew verified to not break ports by sthen
2011-07-09stop installing netatalk headersHenning Brauer
2011-07-08Add support for tgmath--the type-generic math; now that both mathMartynas Venckus
and complex math routines are complete. OK kettenis@.
2011-07-08Finalize work on complex math routines, now that we have theMartynas Venckus
extended-precision support. Mostly from Cephes.
2011-07-07fix typos; while here, improve spacing in comments.Igor Sobrado
changes to libevent and zlib headers sent to the upstream maintainers. ok jmc@ (for typos), millert@
2011-07-06sigset_t is unsigned, so eliminate a warning by shifting a 1U insteadPhilip Guenthe
of a 1 when creating signal masks. ok millert@
2011-07-06Finalize work on the math library. It's time to do this monsterMartynas Venckus
commit, and deal with problems (if any) in tree. Note that this adds the following functions. Ports with hacks might need adjustments. nexttoward(3), fma(3), nexttowardf(3), fmaf(3), acoshl(3), asinhl(3), atanhl(3), coshl(3), sinhl(3), tanhl(3), expl(3), expm1l(3), logl(3), log10l(3), log1pl(3), log2l(3), modfl(3), cbrtl(3), hypotl(3), powl(3), erfl(3), erfcl(3), lgammal(3), tgammal(3), ceill(3), floorl(3), lrintl(3), llrintl(3), roundl(3), lroundl(3), llroundl(3), truncl(3), fmodl(3), remainderl(3), remquol(3), nextafterl(3), nexttowardl(3), fmal(3). With this commit, our library implements all functionality required by C99. Documentation bits will follow.
2011-07-04Add wcsdup(), from NetBSD.Nicholas Marriott
ok deraadt matthew
2011-07-03As pointed out by Richard Guenther our definitionJonathan Gray
of NULL was incorrect for c++ compilers that aren't gcc (or pretend to be gcc like clang). ok miod@
2011-06-26half-guard the actual function prototypes.Marc Espie
precludes -Wredundant-declarations with multiple includes. okay millert@
2011-06-01Use __POSIX_VISIBLE not __POSIX_C_SOURCE to bracket the definitionsTodd C. Miller
of wcscasecmp() and wcsncasecmp(). Noticed by naddy@ OK espie@
2011-05-28wcs(n)casecmp support, manpage comments from jmc@, okay deraadt@Marc Espie
2011-05-25Also enclose variable names with external linkage in __BEGIN_DECLS.Martynas Venckus
Doesn't matter much since C++ ABI used by GCC doesn't mangle variable names; however technically is required by Section 7.5 of the C++ spec. Discussed with/OK guenther@, matthew@.
2011-04-28- enable fenvMartynas Venckus
- add nearbyint, nearbyintf and nearbyintl implemented using fenv
2011-04-28Bring back wprintf. We've sorted out what to do for gcc2 and gcc3.Stefan Sperling
"Yes, go ahead then" deraadt
2011-04-25Teach sysconf(_SC_GETGR_R_SIZE_MAX) the correct size of a buffer for theStuart Henderson
reentrant getgrent functions (getgrgid_r, getgrnam_r). seems reasonable to millert@, ok deraadt@
2011-04-24Back out wprintf until we've determined what to do for gcc2 and gcc3 arches.Stefan Sperling
2011-04-24Add fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, and wprintf to libc.Stefan Sperling
Based on our vfprintf etc. implementations. Wide character parts based on NetBSD but with lots of macros expanded. Minor bump for libc. ok kettenis espie
2011-04-21fenv for amd64; from matthew@Martynas Venckus
feedback & ok guenther@, matthew@