summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-01-31build: Use proper user variables during buildGuillem Jover1-4/+9
To compile we need to use CPPFLAGS and CFLAGS, to link CFLAGS and LDFLAGS. Rename MK_CFLAGS to MK_CPPFLAGS as those are only relevant at compilation time. Reported-by: Eric Smith <eric@brouhaha.com>
2010-01-30build: Use new AR variable instead of hardcoded commandGuillem Jover1-1/+2
2010-01-30build: Refactor COMPILER and LINK commands into new variablesGuillem Jover1-3/+6
2010-01-30build: Use CCLD instead of hardcoded gcc for linkingGuillem Jover1-1/+3
2010-01-30build: By default set CC to gccGuillem Jover1-0/+2
2010-01-30build: Install shared library with 755 permissionEric Smith1-1/+1
The Makefile should install the shared library with 755 permission rather than 644. That's standard practice, and required when building RPMs on Fedora to get a debuginfo package.
2010-01-30Fix setprogname to strip leading paths from prognameGuillem Jover1-2/+10
2010-01-21Make setprogname and getprogname arguments and return value constGuillem Jover2-7/+8
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-10Release libbsd 0.2.0Guillem Jover1-2/+2
2010-01-10Reformat code to KNFGuillem Jover4-34/+35
2010-01-10Add vis and unvis man pagesGuillem Jover3-0/+521
Taken from OpenBSD.
2010-01-10Add dehumanize_number man page linkGuillem Jover2-0/+2
2010-01-10Update vis and unvis modules from OpenBSDGuillem Jover2-16/+8
2010-01-10Update strlcat and strlcpy from OpenBSDGuillem Jover3-99/+48
2010-01-10Add arc4random_buf and arc4random_uniform functionsGuillem Jover6-63/+167
Update arc4random module from FreeBSD.
2010-01-10Replace setproctitle dummy macro with a function stubGuillem Jover5-4/+38
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.
2010-01-10Add pidfile functionsGuillem Jover5-0/+528
Taken from FreeBSD. Remove MAXPATHLEN from ‘struct pidfh’ and allocate pf_path dynamically, as some systems do not have such limits. Use dev_t instead of __dev_t. Replace EDOOFUS with EINVAL.
2010-01-10Add flopen functionGuillem Jover5-0/+213
Taken from FreeBSD.
2010-01-10Move man pages to the same directory as the source codeGuillem Jover17-3/+3
This matches BSD style source tree, and makes it easier to see what's missing.
2010-01-10build: Untangle the package version from the soversionGuillem Jover2-2/+53
Add a new script to generate the package version from git. Use that for the pkg-config file and the tarball name.
2010-01-10build: Make dist use files from git plus few autogenerated onesGuillem Jover1-7/+3
To avoid forgetting to include files, we'll use “git ls-files” and will include few precious autogenerated files that cannot be generated later on w/o git. This includes mainly the ChangeLog.
2010-01-09build: Do not duplicate generated filenames in several variablesGuillem Jover1-8/+11
2009-12-12Move fmtcheck and fgetln declarations to <bsd/stdio.h>Guillem Jover4-6/+46
This is were they are located on the BSDs.
2009-12-12Move setmode and getmode declarations to <bsd/unistd.h>Guillem Jover3-7/+46
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 Jover2-6/+4
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 Jover2-3/+0
This function was exposed in the header file and the versioning symbol file, but the actual code was never here.
2009-12-12Define NetBSD version 5.0 for .Nx to avoid groff warningGuillem Jover1-0/+2
This is a temporary workaround, the proper fix is to get groff to know newest BSD versions.
2009-12-11Correct library name in man pagesGuillem Jover11-7/+26
2009-12-10Expand on API guarantee for fgetlnThorsten Glaser2-1/+2
OpenBSD has begun using the API guarantee that *len is not 0 if the fgetln(3) return value is not NULL; document this explicitly in the manpage and add a comment to the function implementation that this doesn’t need to be checked because getdelim/getline have similar guarantees. Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
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 Jover5-0/+398
Taken from OpenBSD.
2009-12-10Add dehumanize_number functionGuillem Jover4-0/+123
Taken from NetBSD.
2009-10-24Add strnvis and strnunvis functionsGuillem Jover4-2/+105
Taken from OpenBSD.
2009-10-24Move <bsd/ip_icmp.h> to <bsd/netinet/ip_icmp.h>Guillem Jover4-187/+224
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 Jover3-0/+767
2009-10-24Move <bsd/queue.h> to <bsd/sys/queue.h>Guillem Jover4-608/+644
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 Jover4-64/+101
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 Jover5-0/+233
Taken from FreeBSD.
2009-10-24Do not append a slash after DESTDIRGuillem Jover1-13/+13
2009-10-11Update git web interface URLGuillem Jover1-1/+1
FreeDesktop.Org switched from gitweb to cgit.
2009-08-30Release libbsd 0.1.6Guillem Jover1-1/+1
2009-08-30Fix typos in M32R local-elf.h endian definitionsHirokazu Takata1-2/+2
2009-07-17Release libbsd 0.1.5Guillem Jover1-1/+1
2009-07-17Add __pure2 dummy macroGuillem Jover1-0/+4
2009-07-17Add more dummy id macrosGuillem Jover1-0/+16
2009-07-17Fix typos in AVR32 and SH local-elf.h endian definitionsNobuhiro Iwamatsu1-2/+2