Guillem Jover
6bcb1312f4
Relicense my contribution to BSD-2-clause
...
This avoids having two licenses on the same file.
2015-12-07 03:24:47 +01:00
Guillem Jover
c7e01e9884
Sync queue(3) from FreeBSD
...
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=85147
2015-09-23 07:59:34 +02:00
Guillem Jover
3267114483
Add __offsetof, __rangeof and __containerof to sys/cdefs.h
...
Import and adapt from FreeBSD.
2015-09-23 07:59:27 +02:00
Guillem Jover
0e4e3ab269
Add __DECONST, __DEVOLATILE and __DEQUALIFY macros to sys/cdefs.h
...
Import from FreeBSD.
2015-09-23 07:59:24 +02:00
Guillem Jover
e7f3976088
Add email address to my name
2012-05-29 04:51:45 +02:00
Robert Millan
4eab0cc351
Add inline endian encoding/decoding functions
...
Taken from FreeBSD.
Signed-off-by: Guillem Jover <guillem@hadrons.org>
2012-05-29 04:51:09 +02:00
Guillem Jover
866f73af91
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>
2012-05-29 04:51:04 +02:00
Guillem Jover
cd4996cebe
Namespace header protector in <bsd/sys/cdefs.h> with LIBBSD_SYS_
2011-05-28 10:58:26 +02:00
Guillem Jover
a7dd4457f5
Add new <bsd/sys/poll.h> header
2011-05-28 10:58:26 +02:00
Guillem Jover
8be40010ce
Add new <bsd/sys/endian.h> header
2011-05-28 10:58:26 +02:00
Guillem Jover
e1f2a6f869
Add new __packed, __aligned and __nonnull attributes
2011-05-28 10:56:03 +02:00
Guillem Jover
87dd203c26
Define __dead2 and __pure2 to actual gcc attributes if possible
2011-05-28 10:31:07 +02:00
Guillem Jover
de2062873f
Define <sys/cdefs.h> attributes conditional to the supported gcc version
2011-05-28 10:31:06 +02:00
Guillem Jover
71e5db4cde
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.
2011-05-28 10:31:06 +02:00
Guillem Jover
17a9a8472e
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.
2011-05-27 22:45:26 +02:00
Guillem Jover
520682e596
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.
2011-05-14 13:43:49 +02:00
Guillem Jover
9baf9640b9
Add new <bsd/sys/bitstring.h> header
...
Taken from FreeBSD.
2011-05-14 13:43:49 +02: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
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
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