]>
git.ipfire.org Git - thirdparty/libbsd.git/log
Guillem Jover [Tue, 24 Apr 2012 02:05:48 +0000 (04:05 +0200)]
Do not quote man page titles
Guillem Jover [Fri, 23 Mar 2012 09:31:42 +0000 (10:31 +0100)]
Add email address to my name
Guillem Jover [Fri, 23 Mar 2012 09:11:57 +0000 (10:11 +0100)]
Clarify that the 4-clause BSD licenses are only for man pages
Guillem Jover [Thu, 12 Jan 2012 18:13:16 +0000 (19:13 +0100)]
Add new man page for tree(3)
Taken from FreeBSD.
Guillem Jover [Thu, 12 Jan 2012 19:56:24 +0000 (20:56 +0100)]
Remove UC Berkeley advertising clause
As per <ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>.
Guillem Jover [Thu, 12 Jan 2012 18:13:16 +0000 (19:13 +0100)]
Add new man pages for bitstring(3) and queue(3)
Taken from FreeBSD.
Guillem Jover [Sat, 14 May 2011 12:18:57 +0000 (14:18 +0200)]
Add new man pages for getprogname(3) and setprogname(3)
Taken from FreeBSD.
Guillem Jover [Sat, 14 May 2011 12:18:57 +0000 (14:18 +0200)]
Add new man page for setproctitle(3)
Taken from FreeBSD.
Guillem Jover [Thu, 12 Jan 2012 17:16:55 +0000 (18:16 +0100)]
Add <bitstring.h> for compatibility with NetBSD and OpenBSD
Guillem Jover [Fri, 23 Mar 2012 09:43:33 +0000 (10:43 +0100)]
test: Add a unit test for endian encoder/decoder
Robert Millan [Tue, 3 Jan 2012 04:29:36 +0000 (05:29 +0100)]
Add inline endian encoding/decoding functions
Taken from FreeBSD.
Signed-off-by: Guillem Jover <guillem@hadrons.org>
Guillem Jover [Tue, 3 Jan 2012 07:58:01 +0000 (08:58 +0100)]
Base getprogname() on program_invocation_short_name presence instead of glibc
Guillem Jover [Tue, 3 Jan 2012 08:08:35 +0000 (09:08 +0100)]
Base fpurge() implementation on __fpurge presence instead of glibc
Guillem Jover [Tue, 3 Jan 2012 07:40:18 +0000 (08:40 +0100)]
Base fgetln() implementation on getline presence instead of glibc
Guillem Jover [Sat, 24 Mar 2012 19:37:55 +0000 (20:37 +0100)]
test: Add new overlay unit test
Guillem Jover [Tue, 3 Jan 2012 04:39:22 +0000 (05:39 +0100)]
Move overlay inclusions outside of header protection
Glibc tends to include standard headers with special definitions
that make few declarations or macros visible, this stomps over the
overlay #include_next <> logic.
Based-on-patch-by: Robert Millan <rmh@debian.org>
Guillem Jover [Wed, 21 Mar 2012 03:10:37 +0000 (04:10 +0100)]
Remove bogus deprecation warning from <getopt.h>
Guillem Jover [Tue, 3 Jan 2012 06:32:53 +0000 (07:32 +0100)]
Remove deprecated compatibility includes in headers
Guillem Jover [Tue, 3 Jan 2012 06:32:37 +0000 (07:32 +0100)]
Remove deprecated headers
Robert Millan [Sat, 31 Dec 2011 03:30:48 +0000 (04:30 +0100)]
Add new expand_number() function
Taken from FreeBSD.
[guillem@hadrons.org:
- Include <stdint.h> in <bsd/libutil.h>. ]
Signed-off-by: Guillem Jover <guillem@hadrons.org>
Guillem Jover [Sat, 31 Dec 2011 07:39:44 +0000 (08:39 +0100)]
Add new closefrom() function
Code taken from sudo, man page from FreeBSD.
Guillem Jover [Sat, 31 Dec 2011 05:01:27 +0000 (06:01 +0100)]
Base errc() and warnc() on vwarnc() and verrc() respectively
Guillem Jover [Wed, 6 Jul 2011 14:29:26 +0000 (16:29 +0200)]
Use system __progname variable in progname module if available
Guillem Jover [Tue, 5 Jul 2011 21:27:31 +0000 (23:27 +0200)]
Use getexecname() if available for getprogname()
This function is present on Solaris.
Guillem Jover [Sat, 24 Mar 2012 19:37:55 +0000 (20:37 +0100)]
test: Add new headers unit test
Guillem Jover [Fri, 23 Mar 2012 09:43:33 +0000 (10:43 +0100)]
build: Add a test suite infrastructure
Guillem Jover [Tue, 3 Jan 2012 07:58:52 +0000 (08:58 +0100)]
build: Do not define already defined _GNU_SOURCE
The macro is defined by configure on config.h which is now implicitly
included by all source files.
Guillem Jover [Tue, 3 Jan 2012 07:45:05 +0000 (08:45 +0100)]
build: Include <config.h> through -include for all source files
Guillem Jover [Sat, 31 Dec 2011 06:31:47 +0000 (07:31 +0100)]
build: Set -Wno-unused-parameter to default CFLAGS
Guillem Jover [Fri, 17 Dec 2010 10:13:04 +0000 (11:13 +0100)]
build: Switch to autotools
Guillem Jover [Sat, 31 Dec 2011 06:35:52 +0000 (07:35 +0100)]
Move .pc and .map files to src/
Guillem Jover [Sat, 31 Dec 2011 05:50:40 +0000 (06:50 +0100)]
Move man pages to man/
Guillem Jover [Sun, 11 Dec 2011 06:57:05 +0000 (07:57 +0100)]
Rename version script from Versions to libbsd.map
Guillem Jover [Sun, 23 Oct 2011 17:27:44 +0000 (19:27 +0200)]
Fix typos in source comments
Found by codespell.
Guillem Jover [Tue, 5 Jul 2011 19:01:57 +0000 (21:01 +0200)]
build: Use -isystem instead of -I
Guillem Jover [Tue, 5 Jul 2011 19:01:18 +0000 (21:01 +0200)]
build: Do not add -Iinclude/ to MK_CPPFLAGS
The source code should not be using any of the headers there.
Guillem Jover [Tue, 5 Jul 2011 18:59:04 +0000 (20:59 +0200)]
Add missing semicolon to bsd_getopt() declaration
Accidentally lost in commit
4a6303ba3b64504ab0077b9cfebd2a4b918d531d .
Guillem Jover [Wed, 8 Jun 2011 00:10:38 +0000 (02:10 +0200)]
Constify bsd_getopt(3) arguments
This matches the standard declaration for getopt(3).
Guillem Jover [Thu, 2 Jun 2011 17:16:57 +0000 (19:16 +0200)]
Release libbsd 0.3.0
Guillem Jover [Thu, 2 Jun 2011 17:14:44 +0000 (19:14 +0200)]
Add a COPYING file to ease the distributors work
This file includes all the copyright and license notices from the source
code in a single place.
Guillem Jover [Sun, 29 May 2011 00:49:14 +0000 (02:49 +0200)]
Remove blank lines at EOF
Guillem Jover [Sat, 28 May 2011 09:40:36 +0000 (11:40 +0200)]
Move bsd_getopt() from <bsd/getopt.h> to <bsd/unistd.h>
Deprecate <bsd/getopt.h>.
Guillem Jover [Sat, 28 May 2011 08:39:54 +0000 (10:39 +0200)]
Include the correct deprecated headeres when using the overlay
Guillem Jover [Sat, 28 May 2011 04:35:18 +0000 (06:35 +0200)]
Do not use the same header inclusion protector for <nlist.h> and <bsd/nlist.h>
Regression introduced in commit
f7caf2b30da93d46528ec706dffaf5cbde5266d9 .
Guillem Jover [Fri, 27 May 2011 19:58:20 +0000 (21:58 +0200)]
Add LIBBSD_DISABLE_DEPRECATED to deprecated headers
When enabled this will make the inclusion of deprecated headers a
fatal error so that it's easier to spot.
Guillem Jover [Fri, 27 May 2011 20:11:28 +0000 (22:11 +0200)]
Condense and clarify header deprecation warnings
Mention the possibility of using libbsd-overlay.pc.
Guillem Jover [Fri, 27 May 2011 19:39:14 +0000 (21:39 +0200)]
Rename LIBBSD_CLEAN_INCLUDES to LIBBSD_DISABLE_DEPRECATED
Guillem Jover [Fri, 27 May 2011 19:23:18 +0000 (21:23 +0200)]
Namespace header protector in <bsd/sys/cdefs.h> with LIBBSD_SYS_
Guillem Jover [Fri, 27 May 2011 19:13:18 +0000 (21:13 +0200)]
Add new <bsd/sys/poll.h> header
Guillem Jover [Fri, 27 May 2011 18:37:10 +0000 (20:37 +0200)]
Add new <bsd/sys/endian.h> header
Guillem Jover [Wed, 25 May 2011 19:27:58 +0000 (21:27 +0200)]
Add new __packed, __aligned and __nonnull attributes
Guillem Jover [Wed, 25 May 2011 19:27:12 +0000 (21:27 +0200)]
Define __dead2 and __pure2 to actual gcc attributes if possible
Guillem Jover [Wed, 25 May 2011 19:25:54 +0000 (21:25 +0200)]
Define <sys/cdefs.h> attributes conditional to the supported gcc version
Guillem Jover [Wed, 25 May 2011 19:02:40 +0000 (21:02 +0200)]
Define _SYS_CDEFS_H and _SYS_CDEFS_H after including <sys/cdefs.h>
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.
Guillem Jover [Wed, 25 May 2011 05:38:36 +0000 (07:38 +0200)]
Map getopt to bsd_getopt if we are using the overlay
This will ensure the code can safely and correctly use optreset
transparently.
Guillem Jover [Wed, 25 May 2011 05:36:19 +0000 (07:36 +0200)]
Rename transparent support to overlay
This affects the pkg-config file now named libbsd-overlay.pc, and the
macro to use the overlay LIBBSD_OVERLAY.
Guillem Jover [Sat, 14 May 2011 16:12:48 +0000 (18:12 +0200)]
Abort compilation if fgetln cannot be wrapped
Guillem Jover [Sat, 14 May 2011 15:58:08 +0000 (17:58 +0200)]
Add fpurge function
Guillem Jover [Wed, 23 Feb 2011 11:39:58 +0000 (12:39 +0100)]
Conditionalize <time.h> inclusion from <bsd/bsd.h>
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.
Guillem Jover [Wed, 23 Feb 2011 11:38:42 +0000 (12:38 +0100)]
Conditionalize temporary compatibility inclusions
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.
Guillem Jover [Sat, 14 May 2011 12:17:44 +0000 (14:17 +0200)]
Correct library name in man pages
Guillem Jover [Wed, 23 Feb 2011 12:14:22 +0000 (13:14 +0100)]
Update libbsd header references in man pages
Point to the namespaced path for libbsd specific headers.
Guillem Jover [Wed, 23 Feb 2011 10:07:30 +0000 (11:07 +0100)]
Move all header files to /usr/include/bsd/ and deprecate /usr/include/
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.
Guillem Jover [Wed, 23 Feb 2011 13:04:57 +0000 (14:04 +0100)]
Add support for transparent compilation
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.
Guillem Jover [Wed, 23 Feb 2011 13:15:43 +0000 (14:15 +0100)]
Move each version symbol declaration into its own line
Guillem Jover [Wed, 23 Feb 2011 13:01:06 +0000 (14:01 +0100)]
Generalize pkg-config file handling
Use a make pattern for the .pc rule to allow using more than one .pc
file. And generalize the .gitignore entry.
Guillem Jover [Fri, 25 Feb 2011 12:52:59 +0000 (13:52 +0100)]
Initialize __progname to program_invocation_short_name
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.
Kevin McCarthy [Tue, 22 Feb 2011 19:44:21 +0000 (20:44 +0100)]
Add missing prototypes for arc4random_buf and arc4random_uniform
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=34511
Guillem Jover [Tue, 22 Feb 2011 19:19:37 +0000 (20:19 +0100)]
Add new <bsd/sys/bitstring.h> header
Taken from FreeBSD.
Guillem Jover [Fri, 25 Feb 2011 17:48:10 +0000 (18:48 +0100)]
Add new radixsort and sradixsort functions
Taken from FreeBSD.
Guillem Jover [Fri, 25 Feb 2011 17:25:17 +0000 (18:25 +0100)]
Add man pages for heapsort and mergesort
Taken from FreeBSD, originally as qsort.3 but qsort references stripped.
Guillem Jover [Fri, 25 Feb 2011 17:17:16 +0000 (18:17 +0100)]
Add new mergesort function
Taken from FreeBSD.
Guillem Jover [Fri, 17 Dec 2010 09:50:56 +0000 (10:50 +0100)]
Add getpeereid function
Aurelien Jarno [Fri, 30 Jul 2010 06:00:41 +0000 (08:00 +0200)]
Add reallocf function
Guillem Jover [Sun, 31 Jan 2010 13:13:24 +0000 (14:13 +0100)]
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>
Guillem Jover [Sat, 30 Jan 2010 21:43:29 +0000 (22:43 +0100)]
build: Use new AR variable instead of hardcoded command
Guillem Jover [Sat, 30 Jan 2010 21:42:00 +0000 (22:42 +0100)]
build: Refactor COMPILER and LINK commands into new variables
Guillem Jover [Sat, 30 Jan 2010 21:40:01 +0000 (22:40 +0100)]
build: Use CCLD instead of hardcoded gcc for linking
Guillem Jover [Sat, 30 Jan 2010 21:39:18 +0000 (22:39 +0100)]
build: By default set CC to gcc
Eric Smith [Sat, 30 Jan 2010 21:13:18 +0000 (22:13 +0100)]
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.
Guillem Jover [Sat, 30 Jan 2010 21:00:18 +0000 (22:00 +0100)]
Fix setprogname to strip leading paths from progname
Guillem Jover [Thu, 21 Jan 2010 13:34:55 +0000 (14:34 +0100)]
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>
Guillem Jover [Sun, 10 Jan 2010 11:04:03 +0000 (12:04 +0100)]
Release libbsd 0.2.0
Guillem Jover [Sun, 10 Jan 2010 10:02:13 +0000 (11:02 +0100)]
Reformat code to KNF
Guillem Jover [Sun, 10 Jan 2010 00:41:27 +0000 (01:41 +0100)]
Add vis and unvis man pages
Taken from OpenBSD.
Guillem Jover [Sun, 10 Jan 2010 00:37:18 +0000 (01:37 +0100)]
Add dehumanize_number man page link
Guillem Jover [Sun, 10 Jan 2010 00:35:27 +0000 (01:35 +0100)]
Update vis and unvis modules from OpenBSD
Guillem Jover [Sun, 10 Jan 2010 00:33:07 +0000 (01:33 +0100)]
Update strlcat and strlcpy from OpenBSD
Guillem Jover [Sat, 9 Jan 2010 23:57:07 +0000 (00:57 +0100)]
Add arc4random_buf and arc4random_uniform functions
Update arc4random module from FreeBSD.
Guillem Jover [Sat, 9 Jan 2010 23:37:03 +0000 (00:37 +0100)]
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.
Guillem Jover [Sat, 9 Jan 2010 23:10:21 +0000 (00:10 +0100)]
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.
Guillem Jover [Sat, 9 Jan 2010 22:49:32 +0000 (23:49 +0100)]
Add flopen function
Taken from FreeBSD.
Guillem Jover [Sat, 9 Jan 2010 19:17:16 +0000 (20:17 +0100)]
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.
Guillem Jover [Sun, 13 Dec 2009 00:52:03 +0000 (01:52 +0100)]
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.
Guillem Jover [Sat, 12 Dec 2009 00:46:25 +0000 (01:46 +0100)]
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.
Guillem Jover [Sat, 9 Jan 2010 18:56:45 +0000 (19:56 +0100)]
build: Do not duplicate generated filenames in several variables
Guillem Jover [Fri, 11 Dec 2009 22:24:31 +0000 (23:24 +0100)]
Move fmtcheck and fgetln declarations to <bsd/stdio.h>
This is were they are located on the BSDs.
Guillem Jover [Fri, 11 Dec 2009 22:21:14 +0000 (23:21 +0100)]
Move setmode and getmode declarations to <bsd/unistd.h>
This is were they are located on the BSDs.
Guillem Jover [Fri, 11 Dec 2009 22:13:42 +0000 (23:13 +0100)]
Mark inclusion of <time.h> from <bsd/bsd.h> deprecated
This will be removed at some point in the future.
Guillem Jover [Fri, 11 Dec 2009 22:12:26 +0000 (23:12 +0100)]
Move arc4random declarations to <bsd/stdlib.h>
This is were they are located on the BSDs.