]> git.ipfire.org Git - thirdparty/libbsd.git/log
thirdparty/libbsd.git
11 years agoFix dehumanize_number() to correctly detect overflows
Guillem Jover [Sun, 14 Jul 2013 23:44:30 +0000 (01:44 +0200)] 
Fix dehumanize_number() to correctly detect overflows

Do not allow numbers greated than INT64_MAX and smaller than INT64_MIN.
Clarify the positive sign value by prefixing it with an explicit +.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=66909
12 years agoRelease libbsd 0.6.0 0.6.0
Guillem Jover [Sun, 14 Jul 2013 08:58:20 +0000 (10:58 +0200)] 
Release libbsd 0.6.0

12 years agoWarn when setproctitle() gets called before initialization
Guillem Jover [Sat, 13 Jul 2013 00:11:20 +0000 (02:11 +0200)] 
Warn when setproctitle() gets called before initialization

Try to give a helpful message in case the program is not initializing
the setproctitle() machinery.

12 years agoMove setproctitle() automatic initialization to its own library
Guillem Jover [Thu, 11 Jul 2013 10:25:54 +0000 (12:25 +0200)] 
Move setproctitle() automatic initialization to its own library

The automatic initialization cannot be part of the main shared library,
because there is no thread-safe way to change the environ global
variable. This is not a problem if the initializaion happens just at
program load time, but becomes one if the shared library is directly or
indirectly dlopen()ed during the execution of the program, which could
have either kept references to the old environ or could change it in
some other thread. This has been observed for example on systems using
Samba NSS modules.

To avoid any other possible fallout, the constructor is split into a
new static library that needs to be linked explicitly into programs
using setproctitle(). As an additional safety measure the pkg-config
linker flags will mark the program as not allowing to be dlopen()ed
so that we avoid the problem described above.

Reported-by: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=66679
12 years agobuild: Move version ABI from Makefile to configure.ac
Guillem Jover [Fri, 12 Jul 2013 20:15:58 +0000 (22:15 +0200)] 
build: Move version ABI from Makefile to configure.ac

It's easier to find there, and the value can be reused in case we have
to provide another shared library.

12 years agoRelease libbsd 0.5.2 0.5.2
Guillem Jover [Sat, 8 Jun 2013 15:43:42 +0000 (17:43 +0200)] 
Release libbsd 0.5.2

12 years agoCreate a shallow copy of environ before replacing it in setproctitle()
Guillem Jover [Fri, 7 Jun 2013 05:11:50 +0000 (07:11 +0200)] 
Create a shallow copy of environ before replacing it in setproctitle()

Because clearenv() or setenv() might free the environ array of pointers,
we should make sure to copy it so that we can access it later on when
doing the deep copy via setenv().

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=65470
12 years agoSpecify setproctitle_stub() signature manually if typeof is missing
Guillem Jover [Fri, 7 Jun 2013 02:46:29 +0000 (04:46 +0200)] 
Specify setproctitle_stub() signature manually if typeof is missing

Do not stop exporting the function in the version node even if typeof
is not available, as that would break ABI.

12 years agoTry to check if setproctitle() constructor got passed arguments
Guillem Jover [Sat, 8 Jun 2013 15:55:19 +0000 (17:55 +0200)] 
Try to check if setproctitle() constructor got passed arguments

12 years agoForce setproctitle() into .init_array section
Guillem Jover [Wed, 29 May 2013 00:23:56 +0000 (02:23 +0200)] 
Force setproctitle() into .init_array section

The GNU .init_array support is an extension over the standard System V
ABI .init_array support, which passes the main() arguments to the init
function.

This support comes in three parts. First the dynamic linker (from glibc)
needs to support it. Then function pointers need to be placed in the
section, for example by using __attribute__((constructor)), that the
compiler (gcc or clang for example) might place in section .ctors and
the linker (from binutils) will move to .init_array on the output
object, or by placing them directly into .init_array by the compiler
when compiling. If this does not happen and the function pointers end
up in .ctors, then they will not get passed the main() arguments, which
we do really need in this case.

But this relies on recent binutils or gcc having native .init_array
support, and not having it disabled through --disable-initfini-array.

To guarantee we get the correct behaviour, let's just place the function
pointer in the .init_array section directly, so we only require a recent
enough glibc.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=65029
12 years agotest: Try setting and getting an environment variable after setproctitle()
Guillem Jover [Sat, 8 Jun 2013 06:15:21 +0000 (08:15 +0200)] 
test: Try setting and getting an environment variable after setproctitle()

12 years agobuild: Ignore automake 1.13+ test suite generated files
Guillem Jover [Thu, 30 May 2013 02:09:25 +0000 (04:09 +0200)] 
build: Ignore automake 1.13+ test suite generated files

12 years agoRelease libbsd 0.5.1 0.5.1
Guillem Jover [Mon, 27 May 2013 04:52:05 +0000 (06:52 +0200)] 
Release libbsd 0.5.1

12 years agotest: Mark a literal integer as long long
Guillem Jover [Mon, 27 May 2013 04:49:57 +0000 (06:49 +0200)] 
test: Mark a literal integer as long long

This fixes build failures on 32-bit architectures.

12 years agoRelease libbsd 0.5.0 0.5.0
Guillem Jover [Tue, 21 May 2013 02:34:34 +0000 (04:34 +0200)] 
Release libbsd 0.5.0

12 years agobuild: Handle the ChangeLog as a distributed-only file
Guillem Jover [Mon, 27 May 2013 02:41:58 +0000 (04:41 +0200)] 
build: Handle the ChangeLog as a distributed-only file

The ChangeLog file is distributed, and cannot be regenerated outside
of the git repository, so do not remove it in DISTCLEANFILES, and move
the generation code into dist-hook, which also avoids unnecessary
computation during normal builds.

12 years agobuild: Use AM_V_at for mkdir
Guillem Jover [Sat, 25 May 2013 13:44:57 +0000 (15:44 +0200)] 
build: Use AM_V_at for mkdir

12 years agobuild: Compress the distribution tarball with xz instead of gzip
Guillem Jover [Tue, 21 May 2013 08:31:59 +0000 (10:31 +0200)] 
build: Compress the distribution tarball with xz instead of gzip

12 years agoFix comparison between signed and unsigned integer compiler warnings
Guillem Jover [Sat, 25 May 2013 13:36:11 +0000 (15:36 +0200)] 
Fix comparison between signed and unsigned integer compiler warnings

12 years agoUpdate radixsort module from NetBSD
Guillem Jover [Sat, 25 May 2013 13:35:39 +0000 (15:35 +0200)] 
Update radixsort module from NetBSD

Merge some interesting changes.

12 years agoUpdate setmode module from NetBSD
Guillem Jover [Sat, 25 May 2013 13:31:45 +0000 (15:31 +0200)] 
Update setmode module from NetBSD

Merge some interesting changes.

12 years agoFix getpeereid() compilation on Solaris
Casper Dik [Fri, 15 Mar 2013 00:13:58 +0000 (01:13 +0100)] 
Fix getpeereid() compilation on Solaris

The code in getpeereid() is unlikely to compile as ucred_t is an opaque
struct (ucred_t * works but ucred_t does not). Either you need to give
a pointer initialized to NULL and getpeerucred() allocates a new ucred
or you call it with an allocated ucred as in this patch.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
12 years agoSwitch dehumanize_number() to use expand_number()
Guillem Jover [Thu, 27 Dec 2012 10:19:20 +0000 (11:19 +0100)] 
Switch dehumanize_number() to use expand_number()

The function is a duplicate of expand_number(), but covering less
prefixes and with a slightly different function signature.

Spotted-by: Peter da Silva <resuna@gmail.com>
12 years agotest: Add new humanize unit test
Guillem Jover [Sun, 26 May 2013 02:34:57 +0000 (04:34 +0200)] 
test: Add new humanize unit test

12 years agotest: Add setproctitle() unit test
Guillem Jover [Tue, 27 Nov 2012 13:23:26 +0000 (14:23 +0100)] 
test: Add setproctitle() unit test

12 years agoMake setproctitle() available in 0.2 and 0.5 version nodes
Guillem Jover [Sat, 25 May 2013 15:11:53 +0000 (17:11 +0200)] 
Make setproctitle() available in 0.2 and 0.5 version nodes

Make the 0.5 version the default, so that code wanting the actual
implemented version can get a proper versioned depdendency. For code
linked against the old version, make it available as an alias.

12 years agoImplement sendmail semantics for setproctitle()
Guillem Jover [Tue, 27 Nov 2012 13:24:13 +0000 (14:24 +0100)] 
Implement sendmail semantics for setproctitle()

Prefix the title with "progname: ", and skip it if the format string
starts with '-' (which gets skipped on output too).

12 years agoModify setproctitle() to conform to project coding style
Guillem Jover [Sun, 25 Nov 2012 20:10:53 +0000 (21:10 +0100)] 
Modify setproctitle() to conform to project coding style

Use local getprogname()/setprogname() instead of reimplementing them
locally. Use clearenv() if available, not just on glibc. Use bool
instead of _Bool. Use paranthesis on sizeof. Fold the SPT_MIN macro
into spt_min(). Make spt_init() static. Avoid unnecessary gotos.

12 years agoAdd a setproctitle() implementation
William Ahern [Wed, 28 Nov 2012 10:09:02 +0000 (11:09 +0100)] 
Add a setproctitle() implementation

Taken from libnostd.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
12 years agoAdd x32 support to nlist()
Guillem Jover [Fri, 23 Nov 2012 17:33:23 +0000 (18:33 +0100)] 
Add x32 support to nlist()

12 years agoAdd arm64 (aka aarch64) to nlist()
Guillem Jover [Fri, 23 Nov 2012 17:32:35 +0000 (18:32 +0100)] 
Add arm64 (aka aarch64) to nlist()

12 years agotest: Add new fgetln() and fgetwln() unit test
Guillem Jover [Thu, 23 May 2013 00:05:19 +0000 (02:05 +0200)] 
test: Add new fgetln() and fgetwln() unit test

12 years agoAdd new fgetwln() function
Guillem Jover [Fri, 23 Nov 2012 20:19:45 +0000 (21:19 +0100)] 
Add new fgetwln() function

Man page taken from FreeBSD.

12 years agoAdd new fparseln() function
Strake [Tue, 7 Aug 2012 13:44:30 +0000 (08:44 -0500)] 
Add new fparseln() function

Taken from NetBSD.

[guillem@hadrons.org:
 - Import from NetBSD instead of FreeBSD to get a 3-clause BSD license,
   instead of a 4-clause one.
 - Define compatibility macros.
 - Change library from libc to libbsd and header in man page.
 - Add copyright information to COPYING.
 - Add symbol to map file. ]

Signed-off-by: Guillem Jover <guillem@hadrons.org>
12 years agoAdd file buffer pool support to fgetln()
Guillem Jover [Sun, 25 Nov 2012 21:09:43 +0000 (22:09 +0100)] 
Add file buffer pool support to fgetln()

This avoids buffer overwrites during concurrent or intermixed calls to
fgetln() when using more than one different stream (currently 32), which
the original interface supports natively by using an internal buffer
from the FILE structure. Although this workaround is rudimentary, it
should cover most of the theoretically problematic cases.

12 years agoAdd new strnstr() function
Guillem Jover [Sun, 25 Nov 2012 20:13:38 +0000 (21:13 +0100)] 
Add new strnstr() function

Taken from FreeBSD.

12 years agoAdd new wcslcat() and wcslcpy() functions
Guillem Jover [Fri, 23 Nov 2012 16:16:43 +0000 (17:16 +0100)] 
Add new wcslcat() and wcslcpy() functions

Taken from FreeBSD.

12 years agoCoalesce identical BSD-2-clause licenses
Guillem Jover [Tue, 21 May 2013 02:13:55 +0000 (04:13 +0200)] 
Coalesce identical BSD-2-clause licenses

13 years agoRelease libbsd 0.4.2 0.4.2
Guillem Jover [Wed, 27 Jun 2012 07:15:15 +0000 (09:15 +0200)] 
Release libbsd 0.4.2

13 years agoman: Use minus signs and hyphens consistently
Guillem Jover [Thu, 21 Jun 2012 08:16:14 +0000 (10:16 +0200)] 
man: Use minus signs and hyphens consistently

Any string that can be copy & pasted into a terminal, for example,
needs to correctly use minus signs (escaped dashes), instead of the
default hyphen.

13 years agoman: Recode flopen(3) to UTF-8
Guillem Jover [Mon, 4 Jun 2012 03:47:26 +0000 (05:47 +0200)] 
man: Recode flopen(3) to UTF-8

Spotted-by: Eric Smith <eric@brouhaha.com>
13 years agobuild: Set default compiler variables from configure
Guillem Jover [Sun, 3 Jun 2012 05:39:42 +0000 (07:39 +0200)] 
build: Set default compiler variables from configure

This centralizes the setting so there's no duplication anymore,
makes sure the user supplied variables are never overridden, and
are only set when using gcc.

Reported-by: Samuli Suominen <ssuominen@gentoo.org>
13 years agoRelease libbsd 0.4.1 0.4.1
Guillem Jover [Fri, 1 Jun 2012 06:20:37 +0000 (08:20 +0200)] 
Release libbsd 0.4.1

13 years agobuild: Set runtimelibdir to libdir
Guillem Jover [Fri, 1 Jun 2012 06:17:42 +0000 (08:17 +0200)] 
build: Set runtimelibdir to libdir

This makes sure the install-exec-hook under src works as expected even
when no runtimelibdir was specified, otherwise the symlinks end up
pointing to non-existing targets.

Reported-by: Ryan Mullen <rmmullen@gmail.com>
13 years agobuild: Use MKDIR_P variable instead of literal «mkdir -p»
Guillem Jover [Fri, 1 Jun 2012 06:15:00 +0000 (08:15 +0200)] 
build: Use MKDIR_P variable instead of literal Â«mkdir -p»

13 years agoRelease libbsd 0.4.0 0.4.0
Guillem Jover [Tue, 29 May 2012 02:38:07 +0000 (04:38 +0200)] 
Release libbsd 0.4.0

13 years agoUse implicit <md5.h> from overlay instead explicit <bsd/md5.h>
Guillem Jover [Tue, 29 May 2012 05:17:46 +0000 (07:17 +0200)] 
Use implicit <md5.h> from overlay instead explicit <bsd/md5.h>

This was assuming an installed <bsd/md5.h> on the system, due to the
build system not including -Iinclude/ anymore.

Regression introduced in commit 901ed630fc64fca828e031bc8fa6780db9f05db1.

13 years agoMove mdX.3 man page to section 3bsd
Guillem Jover [Tue, 24 Apr 2012 02:20:58 +0000 (04:20 +0200)] 
Move mdX.3 man page to section 3bsd

This makes sure there will be no collisions on systems where a mdX.3
provided by a third party is already present.

13 years agoDo not quote man page titles
Guillem Jover [Tue, 24 Apr 2012 02:05:48 +0000 (04:05 +0200)] 
Do not quote man page titles

13 years agoAdd email address to my name
Guillem Jover [Fri, 23 Mar 2012 09:31:42 +0000 (10:31 +0100)] 
Add email address to my name

13 years agoClarify that the 4-clause BSD licenses are only for man pages
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

13 years agoAdd new man page for tree(3)
Guillem Jover [Thu, 12 Jan 2012 18:13:16 +0000 (19:13 +0100)] 
Add new man page for tree(3)

Taken from FreeBSD.

13 years agoRemove UC Berkeley advertising clause
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>.

13 years agoAdd new man pages for bitstring(3) and queue(3)
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.

13 years agoAdd new man pages for getprogname(3) and setprogname(3)
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.

13 years agoAdd new man page for setproctitle(3)
Guillem Jover [Sat, 14 May 2011 12:18:57 +0000 (14:18 +0200)] 
Add new man page for setproctitle(3)

Taken from FreeBSD.

13 years agoAdd <bitstring.h> for compatibility with NetBSD and OpenBSD
Guillem Jover [Thu, 12 Jan 2012 17:16:55 +0000 (18:16 +0100)] 
Add <bitstring.h> for compatibility with NetBSD and OpenBSD

13 years agotest: Add a unit test for endian encoder/decoder
Guillem Jover [Fri, 23 Mar 2012 09:43:33 +0000 (10:43 +0100)] 
test: Add a unit test for endian encoder/decoder

13 years agoAdd inline endian encoding/decoding functions
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>
13 years agoBase getprogname() on program_invocation_short_name presence instead of glibc
Guillem Jover [Tue, 3 Jan 2012 07:58:01 +0000 (08:58 +0100)] 
Base getprogname() on program_invocation_short_name presence instead of glibc

13 years agoBase fpurge() implementation on __fpurge 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

13 years agoBase fgetln() implementation on getline 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

13 years agotest: Add new overlay unit test
Guillem Jover [Sat, 24 Mar 2012 19:37:55 +0000 (20:37 +0100)] 
test: Add new overlay unit test

13 years agoMove overlay inclusions outside of header protection
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>
13 years agoRemove bogus deprecation warning from <getopt.h>
Guillem Jover [Wed, 21 Mar 2012 03:10:37 +0000 (04:10 +0100)] 
Remove bogus deprecation warning from <getopt.h>

13 years agoRemove deprecated compatibility includes in headers
Guillem Jover [Tue, 3 Jan 2012 06:32:53 +0000 (07:32 +0100)] 
Remove deprecated compatibility includes in headers

13 years agoRemove deprecated headers
Guillem Jover [Tue, 3 Jan 2012 06:32:37 +0000 (07:32 +0100)] 
Remove deprecated headers

13 years agoAdd new expand_number() function
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>
13 years agoAdd new closefrom() function
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.

13 years agoBase errc() and warnc() on vwarnc() and verrc() respectively
Guillem Jover [Sat, 31 Dec 2011 05:01:27 +0000 (06:01 +0100)] 
Base errc() and warnc() on vwarnc() and verrc() respectively

13 years agoUse system __progname variable in progname module if available
Guillem Jover [Wed, 6 Jul 2011 14:29:26 +0000 (16:29 +0200)] 
Use system __progname variable in progname module if available

13 years agoUse getexecname() if available for getprogname()
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.

13 years agotest: Add new headers unit test
Guillem Jover [Sat, 24 Mar 2012 19:37:55 +0000 (20:37 +0100)] 
test: Add new headers unit test

13 years agobuild: Add a test suite infrastructure
Guillem Jover [Fri, 23 Mar 2012 09:43:33 +0000 (10:43 +0100)] 
build: Add a test suite infrastructure

13 years agobuild: Do not define already defined _GNU_SOURCE
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.

13 years agobuild: Include <config.h> through -include for 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

13 years agobuild: Set -Wno-unused-parameter to default CFLAGS
Guillem Jover [Sat, 31 Dec 2011 06:31:47 +0000 (07:31 +0100)] 
build: Set -Wno-unused-parameter to default CFLAGS

13 years agobuild: Switch to autotools
Guillem Jover [Fri, 17 Dec 2010 10:13:04 +0000 (11:13 +0100)] 
build: Switch to autotools

13 years agoMove .pc and .map files to src/
Guillem Jover [Sat, 31 Dec 2011 06:35:52 +0000 (07:35 +0100)] 
Move .pc and .map files to src/

13 years agoMove man pages to man/
Guillem Jover [Sat, 31 Dec 2011 05:50:40 +0000 (06:50 +0100)] 
Move man pages to man/

13 years agoRename version script from Versions to libbsd.map
Guillem Jover [Sun, 11 Dec 2011 06:57:05 +0000 (07:57 +0100)] 
Rename version script from Versions to libbsd.map

13 years agoFix typos in source comments
Guillem Jover [Sun, 23 Oct 2011 17:27:44 +0000 (19:27 +0200)] 
Fix typos in source comments

Found by codespell.

14 years agobuild: Use -isystem instead of -I
Guillem Jover [Tue, 5 Jul 2011 19:01:57 +0000 (21:01 +0200)] 
build: Use -isystem instead of -I

14 years agobuild: Do not add -Iinclude/ to MK_CPPFLAGS
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.

14 years agoAdd missing semicolon to bsd_getopt() declaration
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.

14 years agoConstify bsd_getopt(3) arguments
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).

14 years agoRelease libbsd 0.3.0 0.3.0
Guillem Jover [Thu, 2 Jun 2011 17:16:57 +0000 (19:16 +0200)] 
Release libbsd 0.3.0

14 years agoAdd a COPYING file to ease the distributors work
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.

14 years agoRemove blank lines at EOF
Guillem Jover [Sun, 29 May 2011 00:49:14 +0000 (02:49 +0200)] 
Remove blank lines at EOF

14 years agoMove bsd_getopt() from <bsd/getopt.h> to <bsd/unistd.h>
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>.

14 years agoInclude the correct deprecated headeres when using the overlay
Guillem Jover [Sat, 28 May 2011 08:39:54 +0000 (10:39 +0200)] 
Include the correct deprecated headeres when using the overlay

14 years agoDo not use the same header inclusion protector for <nlist.h> and <bsd/nlist.h>
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.

14 years agoAdd LIBBSD_DISABLE_DEPRECATED to deprecated headers
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.

14 years agoCondense and clarify header deprecation warnings
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.

14 years agoRename LIBBSD_CLEAN_INCLUDES to LIBBSD_DISABLE_DEPRECATED
Guillem Jover [Fri, 27 May 2011 19:39:14 +0000 (21:39 +0200)] 
Rename LIBBSD_CLEAN_INCLUDES to LIBBSD_DISABLE_DEPRECATED

14 years agoNamespace header protector in <bsd/sys/cdefs.h> with LIBBSD_SYS_
Guillem Jover [Fri, 27 May 2011 19:23:18 +0000 (21:23 +0200)] 
Namespace header protector in <bsd/sys/cdefs.h> with LIBBSD_SYS_

14 years agoAdd new <bsd/sys/poll.h> header
Guillem Jover [Fri, 27 May 2011 19:13:18 +0000 (21:13 +0200)] 
Add new <bsd/sys/poll.h> header

14 years agoAdd new <bsd/sys/endian.h> header
Guillem Jover [Fri, 27 May 2011 18:37:10 +0000 (20:37 +0200)] 
Add new <bsd/sys/endian.h> header

14 years agoAdd new __packed, __aligned and __nonnull attributes
Guillem Jover [Wed, 25 May 2011 19:27:58 +0000 (21:27 +0200)] 
Add new __packed, __aligned and __nonnull attributes

14 years agoDefine __dead2 and __pure2 to actual gcc attributes if possible
Guillem Jover [Wed, 25 May 2011 19:27:12 +0000 (21:27 +0200)] 
Define __dead2 and __pure2 to actual gcc attributes if possible