Guillem Jover
4b95e82a32
Add new radixsort and sradixsort functions
...
Taken from FreeBSD.
2011-05-14 13:43:48 +02:00
Guillem Jover
c766e58acf
Add man pages for heapsort and mergesort
...
Taken from FreeBSD, originally as qsort.3 but qsort references stripped.
2011-05-14 13:43:48 +02:00
Guillem Jover
be6ab54986
Add new mergesort function
...
Taken from FreeBSD.
2011-05-14 13:43:48 +02:00
Guillem Jover
5b19adfa82
Add getpeereid function
2011-05-14 13:43:41 +02:00
Aurelien Jarno
acb7c42d7c
Add reallocf function
2011-02-23 14:44:37 +01:00
Guillem Jover
06a60a166a
build: Use proper user variables during build
...
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-31 14:13:24 +01:00
Guillem Jover
51863b6cf9
build: Use new AR variable instead of hardcoded command
2010-01-30 22:43:56 +01:00
Guillem Jover
08afd5d4c9
build: Refactor COMPILER and LINK commands into new variables
2010-01-30 22:42:00 +01:00
Guillem Jover
1f0b0b23cd
build: Use CCLD instead of hardcoded gcc for linking
2010-01-30 22:40:01 +01:00
Guillem Jover
32d79b0310
build: By default set CC to gcc
2010-01-30 22:39:18 +01:00
Eric Smith
cd730a02c3
build: Install shared library with 755 permission
...
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-30 22:13:18 +01:00
Guillem Jover
11f2c32df2
Fix setprogname to strip leading paths from progname
2010-01-30 22:00:18 +01:00
Guillem Jover
30c794083f
Make setprogname and getprogname arguments and return value const
...
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-21 14:34:55 +01:00
Guillem Jover
ddebbd6792
Release libbsd 0.2.0
2010-01-10 15:29:51 +01:00
Guillem Jover
abe0a4a7e6
Reformat code to KNF
2010-01-10 15:29:51 +01:00
Guillem Jover
2872bfa151
Add vis and unvis man pages
...
Taken from OpenBSD.
2010-01-10 15:29:51 +01:00
Guillem Jover
e544a41f62
Add dehumanize_number man page link
2010-01-10 15:29:51 +01:00
Guillem Jover
7b3873bc1e
Update vis and unvis modules from OpenBSD
2010-01-10 15:29:51 +01:00
Guillem Jover
8103fe1486
Update strlcat and strlcpy from OpenBSD
2010-01-10 15:29:51 +01:00
Guillem Jover
d63e081303
Add arc4random_buf and arc4random_uniform functions
...
Update arc4random module from FreeBSD.
2010-01-10 15:29:50 +01:00
Guillem Jover
3fed78e5b0
Replace setproctitle dummy macro with a function stub
...
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-10 15:29:50 +01:00
Guillem Jover
2a81893cc0
Add pidfile functions
...
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-10 15:29:46 +01:00
Guillem Jover
98a2479f0b
Add flopen function
...
Taken from FreeBSD.
2010-01-10 13:36:38 +01:00
Guillem Jover
57cc5326cf
Move man pages to the same directory as the source code
...
This matches BSD style source tree, and makes it easier to see what's
missing.
2010-01-10 13:36:38 +01:00
Guillem Jover
9e4adc4633
build: Untangle the package version from the soversion
...
Add a new script to generate the package version from git. Use that for
the pkg-config file and the tarball name.
2010-01-10 13:36:38 +01:00
Guillem Jover
db406fe24c
build: Make dist use files from git plus few autogenerated ones
...
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-10 13:36:35 +01:00
Guillem Jover
9396cc62cf
build: Do not duplicate generated filenames in several variables
2010-01-09 19:56:45 +01:00
Guillem Jover
7a70f1b019
Move fmtcheck and fgetln declarations to <bsd/stdio.h>
...
This is were they are located on the BSDs.
2009-12-12 01:13:29 +01:00
Guillem Jover
ca28f28046
Move setmode and getmode declarations to <bsd/unistd.h>
...
This is were they are located on the BSDs.
2009-12-12 01:11:56 +01:00
Guillem Jover
dd2756e000
Mark inclusion of <time.h> from <bsd/bsd.h> deprecated
...
This will be removed at some point in the future.
2009-12-12 01:11:08 +01:00
Guillem Jover
3c9182b85e
Move arc4random declarations to <bsd/stdlib.h>
...
This is were they are located on the BSDs.
2009-12-12 01:11:08 +01:00
Guillem Jover
4d17a18db5
Deprecate <bsd/inet.h>
...
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-12 01:11:08 +01:00
Guillem Jover
7da57b293f
Remove traces of fgetwln, it was never included
...
This function was exposed in the header file and the versioning symbol
file, but the actual code was never here.
2009-12-12 01:11:08 +01:00
Guillem Jover
254808d9ef
Define NetBSD version 5.0 for .Nx to avoid groff warning
...
This is a temporary workaround, the proper fix is to get groff to know
newest BSD versions.
2009-12-12 01:11:08 +01:00
Guillem Jover
183cc3cbf1
Correct library name in man pages
2009-12-11 21:31:48 +01:00
Thorsten Glaser
c17c7e13c3
Expand on API guarantee for fgetln
...
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-10 21:07:02 +01:00
Thorsten Glaser
a5dbef45e7
Make RCS macros take arguments
...
This was breaking code actually using those macros.
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
2009-12-10 21:05:52 +01:00
Thorsten Glaser
27842d7f77
Track bug IDs for __unused collision
...
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
2009-12-10 21:05:33 +01:00
Guillem Jover
c5398adfe2
Add readpassphrase function
...
Taken from OpenBSD.
2009-12-10 20:54:03 +01:00
Guillem Jover
538bc87998
Add dehumanize_number function
...
Taken from NetBSD.
2009-12-10 20:54:00 +01:00
Guillem Jover
04250f6a7c
Add strnvis and strnunvis functions
...
Taken from OpenBSD.
2009-10-24 01:47:26 +02:00
Guillem Jover
5c078ce2f5
Move <bsd/ip_icmp.h> to <bsd/netinet/ip_icmp.h>
...
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-24 01:47:26 +02:00
Guillem Jover
614eb0402a
Add new <bsd/sys/tree.h> header
2009-10-24 01:47:25 +02:00
Guillem Jover
b6e8469059
Move <bsd/queue.h> to <bsd/sys/queue.h>
...
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-24 01:47:25 +02:00
Guillem Jover
d3e14ea99e
Move <bsd/cdefs.h> to <bsd/sys/cdefs.h>
...
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-24 01:47:22 +02:00
Guillem Jover
e51be45c40
Update <sys/queue.h>
...
Taken from FreeBSD.
2009-10-24 01:11:23 +02:00
Guillem Jover
56ddcfe65a
Add strtonum function
...
Taken from FreeBSD.
2009-10-24 01:11:23 +02:00
Guillem Jover
1bf8b96ac8
Do not append a slash after DESTDIR
2009-10-24 01:11:23 +02:00
Guillem Jover
16e6ac99fe
Update git web interface URL
...
FreeDesktop.Org switched from gitweb to cgit.
2009-10-11 20:54:36 +02:00
Guillem Jover
56f2e55b7a
Release libbsd 0.1.6
2009-08-30 12:18:28 +02:00