summaryrefslogtreecommitdiff
path: root/include/bsd
AgeCommit message (Collapse)AuthorFilesLines
2011-07-09Add missing semicolon to bsd_getopt() declarationGuillem Jover1-1/+1
Accidentally lost in commit 4a6303ba3b64504ab0077b9cfebd2a4b918d531d.
2011-06-08Constify bsd_getopt(3) argumentsGuillem Jover1-1/+1
This matches the standard declaration for getopt(3).
2011-05-29Remove blank lines at EOFGuillem Jover6-6/+0
2011-05-29Move bsd_getopt() from <bsd/getopt.h> to <bsd/unistd.h>Guillem Jover2-15/+14
Deprecate <bsd/getopt.h>.
2011-05-29Include the correct deprecated headeres when using the overlayGuillem Jover6-0/+25
2011-05-29Add LIBBSD_DISABLE_DEPRECATED to deprecated headersGuillem Jover5-0/+20
When enabled this will make the inclusion of deprecated headers a fatal error so that it's easier to spot.
2011-05-28Condense and clarify header deprecation warningsGuillem Jover5-5/+5
Mention the possibility of using libbsd-overlay.pc.
2011-05-28Rename LIBBSD_CLEAN_INCLUDES to LIBBSD_DISABLE_DEPRECATEDGuillem Jover3-3/+3
2011-05-28Namespace header protector in <bsd/sys/cdefs.h> with LIBBSD_SYS_Guillem Jover1-2/+2
2011-05-28Add new <bsd/sys/poll.h> headerGuillem Jover1-0/+40
2011-05-28Add new <bsd/sys/endian.h> headerGuillem Jover1-0/+52
2011-05-28Add new __packed, __aligned and __nonnull attributesGuillem Jover1-0/+24
2011-05-28Define __dead2 and __pure2 to actual gcc attributes if possibleGuillem Jover1-2/+10
2011-05-28Define <sys/cdefs.h> attributes conditional to the supported gcc versionGuillem Jover1-2/+8
2011-05-28Define _SYS_CDEFS_H and _SYS_CDEFS_H after including <sys/cdefs.h>Guillem Jover1-0/+10
This makes sure the “standard” inclusion protectors are in place, as at least some FreeBSD kernel headers expect these to be defined to do some sanity checks.
2011-05-28Map getopt to bsd_getopt if we are using the overlayGuillem Jover1-0/+5
This will ensure the code can safely and correctly use optreset transparently.
2011-05-27Rename transparent support to overlayGuillem Jover7-13/+13
This affects the pkg-config file now named libbsd-overlay.pc, and the macro to use the overlay LIBBSD_OVERLAY.
2011-05-16Add fpurge functionGuillem Jover1-1/+3
2011-05-14Conditionalize <time.h> inclusion from <bsd/bsd.h>Guillem Jover1-0/+2
This was added long time ago to fix some software which was implicitly depending on the header through some other header, and to avoid having to modify such software. Conditionalize it on LIBBSD_CLEAN_INCLUDES, so that buildability can be tested for its future removal.
2011-05-14Conditionalize temporary compatibility inclusionsGuillem Jover2-0/+4
These inclusions were in place for backward compatibility purposes, when the headers were split so that code using them would not break. Make it possible for applications to disable them by defining LIBBSD_CLEAN_INCLUDES so that buildability can be tested and fixed before they get removed in a subsequent release.
2011-05-14Move all header files to /usr/include/bsd/ and deprecate /usr/include/Guillem Jover3-0/+200
First stage of the transition to avoid possible clashes with other software by moving out of the way the remaining headers from /usr/include/. At least nlist.h is known to cause file conflicts with some libelf implementations. libutil.h is not really complete and might cause confusion if software detects its availability w/o someone actually checking. And lastly vis.h is not known to cause any problem and it's complete, but better be safe than sorry. The compatibility headers will be removed in a later release.
2011-05-14Add support for transparent compilationGuillem Jover7-1/+42
This means that software being ported should not need to be modified in the usual case, as the libbsd headers will take over the standard namespace and fill the missing gaps, and include the system headers. To use this the new libbsd-transparent.pc file can be used through pkg-config, which should end up doing the right thing.
2011-05-14Add missing prototypes for arc4random_buf and arc4random_uniformKevin McCarthy1-0/+2
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=34511
2011-05-14Add new <bsd/sys/bitstring.h> headerGuillem Jover1-0/+146
Taken from FreeBSD.
2011-05-14Add new radixsort and sradixsort functionsGuillem Jover1-0/+4
Taken from FreeBSD.
2011-05-14Add new mergesort functionGuillem Jover1-1/+3
Taken from FreeBSD.
2011-05-14Add getpeereid functionGuillem Jover1-0/+2
2011-02-23Add reallocf functionAurelien Jarno1-0/+2
2010-01-21Make setprogname and getprogname arguments and return value constGuillem Jover1-3/+3
This is more correct as the strings are not going to be changed, and it matches the function signatures on other BSDs. Suggested-by: Aurelien Jarno <aurel32@debian.org>
2010-01-10Replace setproctitle dummy macro with a function stubGuillem Jover2-4/+2
This way we can replace it later on with a real implementation so that applications can immediately benefit from it w/o the need to recompile them.
2009-12-12Move fmtcheck and fgetln declarations to <bsd/stdio.h>Guillem Jover3-6/+45
This is were they are located on the BSDs.
2009-12-12Move setmode and getmode declarations to <bsd/unistd.h>Guillem Jover2-7/+45
This is were they are located on the BSDs.
2009-12-12Mark inclusion of <time.h> from <bsd/bsd.h> deprecatedGuillem Jover1-0/+2
This will be removed at some point in the future.
2009-12-12Move arc4random declarations to <bsd/stdlib.h>Guillem Jover3-8/+6
This is were they are located on the BSDs.
2009-12-12Deprecate <bsd/inet.h>Guillem Jover1-5/+2
The only function declared in that header file was inet_net_pton, which is already provided by glibc. Will be removed on the next SONAME bump.
2009-12-12Remove traces of fgetwln, it was never includedGuillem Jover1-2/+0
This function was exposed in the header file and the versioning symbol file, but the actual code was never here.
2009-12-10Make RCS macros take argumentsThorsten Glaser1-3/+3
This was breaking code actually using those macros. Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
2009-12-10Track bug IDs for __unused collisionThorsten Glaser1-0/+1
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
2009-12-10Add readpassphrase functionGuillem Jover1-0/+41
Taken from OpenBSD.
2009-12-10Add dehumanize_number functionGuillem Jover1-0/+6
Taken from NetBSD.
2009-10-24Move <bsd/ip_icmp.h> to <bsd/netinet/ip_icmp.h>Guillem Jover3-186/+221
This maps more closely the location of the real header. For transitional purposes keep a <bsd/ip_icmp.h> that warns and includes <bsd/netinet/ip_icmp.h>.
2009-10-24Add new <bsd/sys/tree.h> headerGuillem Jover2-0/+766
2009-10-24Move <bsd/queue.h> to <bsd/sys/queue.h>Guillem Jover3-607/+642
This maps more closely the location of the real header. For transitional purposes keep a <bsd/queue.h> that warns and includes <bsd/sys/queue.h>.
2009-10-24Move <bsd/cdefs.h> to <bsd/sys/cdefs.h>Guillem Jover3-63/+98
This maps more closely the location of the real header. For transitional purposes keep a <bsd/cdefs.h> that warns and includes <bsd/sys/cdefs.h>.
2009-10-24Update <sys/queue.h>Guillem Jover1-61/+130
Taken from FreeBSD.
2009-10-24Add strtonum functionGuillem Jover1-0/+3
Taken from FreeBSD.
2009-07-17Add __pure2 dummy macroGuillem Jover1-0/+4
2009-07-17Add more dummy id macrosGuillem Jover1-0/+16
2009-05-25Export public functions as extern CGuillem Jover6-3/+23
2009-05-25Add missing <stdarg.h> include in <bsd/err.h>Guillem Jover1-0/+1