summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-01-28Bump deps and compat levelHEADmasterIgor Pashev2-2/+2
2012-01-28Added debian/Igor Pashev12-0/+784
2012-01-28Search include/ as wellIgor Pashev1-0/+1
2012-01-28Missing MIN(a, b) macroIgor Pashev1-0/+4
2012-01-28Fixed getpeereid() : struct ucred_t is not publicIgor Pashev1-5/+10
2012-01-28"Ported" fpurge()Igor Pashev1-4/+0
2012-01-28flock() by fcntl()Igor Pashev1-0/+44
2012-01-28"Ported" src/fgetln.cIgor Pashev1-4/+0
2012-01-28Use regular getopt()Igor Pashev1-5/+1
2012-01-28Disable nlistIgor Pashev1-4/+0
2011-07-09build: Use -isystem instead of -IGuillem Jover1-1/+1
2011-07-09build: Do not add -Iinclude/ to MK_CPPFLAGSGuillem Jover1-1/+1
The source code should not be using any of the headers there.
2011-07-09Add missing semicolon to bsd_getopt() declarationGuillem Jover1-1/+1
Accidentally lost in commit 4a6303ba3b64504ab0077b9cfebd2a4b918d531d.
2011-06-08Constify bsd_getopt(3) argumentsGuillem Jover2-2/+2
This matches the standard declaration for getopt(3).
2011-06-02Release libbsd 0.3.0Guillem Jover1-1/+1
2011-06-02Add a COPYING file to ease the distributors workGuillem Jover1-0/+444
This file includes all the copyright and license notices from the source code in a single place.
2011-05-29Remove blank lines at EOFGuillem Jover13-13/+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-29Do not use the same header inclusion protector for <nlist.h> and <bsd/nlist.h>Guillem Jover1-2/+2
Regression introduced in commit f7caf2b30da93d46528ec706dffaf5cbde5266d9.
2011-05-29Add LIBBSD_DISABLE_DEPRECATED to deprecated headersGuillem Jover8-0/+32
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 Jover8-8/+8
Mention the possibility of using libbsd-overlay.pc.
2011-05-28Rename LIBBSD_CLEAN_INCLUDES to LIBBSD_DISABLE_DEPRECATEDGuillem Jover4-4/+4
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 Jover2-0/+41
2011-05-28Add new <bsd/sys/endian.h> headerGuillem Jover2-0/+53
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 Jover2-1/+10
This will ensure the code can safely and correctly use optreset transparently.
2011-05-27Rename transparent support to overlayGuillem Jover9-20/+20
This affects the pkg-config file now named libbsd-overlay.pc, and the macro to use the overlay LIBBSD_OVERLAY.
2011-05-16Abort compilation if fgetln cannot be wrappedGuillem Jover1-1/+3
2011-05-16Add fpurge functionGuillem Jover4-1/+74
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 Jover4-1/+8
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-14Correct library name in man pagesGuillem Jover2-2/+4
2011-05-14Update libbsd header references in man pagesGuillem Jover20-20/+19
Point to the namespaced path for libbsd specific headers.
2011-05-14Move all header files to /usr/include/bsd/ and deprecate /usr/include/Guillem Jover7-139/+244
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 Jover14-9/+62
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-14Move each version symbol declaration into its own lineGuillem Jover1-5/+19
2011-05-14Generalize pkg-config file handlingGuillem Jover2-2/+2
Use a make pattern for the .pc rule to allow using more than one .pc file. And generalize the .gitignore entry.
2011-05-14Initialize __progname to program_invocation_short_nameGuillem Jover1-1/+7
As we do not have cooperation from the crt0 code to set __progname, we have to set it ourselves from getprogname() in case it's NULL. On GNU systems we can use program_invocation_short_name which is actually set on crt0.
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 Jover2-0/+147
Taken from FreeBSD.
2011-05-14Add new radixsort and sradixsort functionsGuillem Jover6-0/+497
Taken from FreeBSD.
2011-05-14Add man pages for heapsort and mergesortGuillem Jover3-0/+210
Taken from FreeBSD, originally as qsort.3 but qsort references stripped.
2011-05-14Add new mergesort functionGuillem Jover4-1/+357
Taken from FreeBSD.
2011-05-14Add getpeereid functionGuillem Jover5-0/+275
2011-02-23Add reallocf functionAurelien Jarno5-0/+163