Age | Commit message (Collapse) | Author | Files | Lines |
|
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.
|
|
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.
|
|
|
|
Use a make pattern for the .pc rule to allow using more than one .pc
file. And generalize the .gitignore entry.
|
|
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.
|
|
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=34511
|
|
Taken from FreeBSD.
|
|
Taken from FreeBSD.
|
|
Taken from FreeBSD, originally as qsort.3 but qsort references stripped.
|
|
Taken from FreeBSD.
|
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
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>
|
|
|
|
|
|
Taken from OpenBSD.
|
|
|
|
|
|
|
|
Update arc4random module from FreeBSD.
|
|
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.
|
|
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.
|
|
Taken from FreeBSD.
|
|
This matches BSD style source tree, and makes it easier to see what's
missing.
|
|
Add a new script to generate the package version from git. Use that for
the pkg-config file and the tarball name.
|
|
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.
|
|
|
|
This is were they are located on the BSDs.
|
|
This is were they are located on the BSDs.
|
|
This will be removed at some point in the future.
|
|
This is were they are located on the BSDs.
|
|
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.
|
|
This function was exposed in the header file and the versioning symbol
file, but the actual code was never here.
|
|
This is a temporary workaround, the proper fix is to get groff to know
newest BSD versions.
|
|
|
|
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>
|
|
This was breaking code actually using those macros.
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
|
|
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
|
|
Taken from OpenBSD.
|
|
Taken from NetBSD.
|
|
Taken from OpenBSD.
|
|
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>.
|
|
|