- 23 Sep, 2015 9 commits
-
-
Guillem Jover authored
-
Guillem Jover authored
-
Guillem Jover authored
-
Guillem Jover authored
-
Guillem Jover authored
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=85147
-
Guillem Jover authored
Import and adapt from FreeBSD.
-
Guillem Jover authored
Import from FreeBSD.
-
Guillem Jover authored
Import man page from OpenBSD. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=85622
-
Guillem Jover authored
-
- 12 Aug, 2014 1 commit
-
-
Callum Davies authored
These two functions accept no arguments. The prototypes should reflect this. This change lets the compiler warn about certain (admittedly silly) mistakes. Signed-off-by:
Guillem Jover <guillem@hadrons.org>
-
- 29 Jul, 2014 1 commit
-
-
Guillem Jover authored
-
- 20 Jul, 2014 1 commit
-
-
Guillem Jover authored
In case the support is not available, just stop building the libbsd-ctor.a library, which is a nice to have thing, but should not have been a hard requirement from the start. This should allow to build libbsd on non-glibc based systems using another libc.
-
- 17 Jul, 2014 2 commits
-
-
Benjamin Baier authored
Signed-off-by:
Guillem Jover <guillem@hadrons.org>
-
Guillem Jover authored
-
- 15 Jul, 2014 1 commit
-
-
Guillem Jover authored
Import code from DragonFlyBSD and man page from FreeBSD.
-
- 06 Mar, 2014 1 commit
-
-
Christian Svensson authored
Signed-off-by:
Guillem Jover <guillem@hadrons.org>
-
- 21 Oct, 2013 5 commits
-
-
Guillem Jover authored
Inline license information from FreeBSD root dir COPYRIGHT file.
-
Guillem Jover authored
This is a wrapper over the glibc fopencookie() function. We diverge from the FreeBSD, OpenBSD and DragonFlyBSD declarations, because seekfn() there wrongly uses fpos_t, assuming it's an integral type, and any code using that on a system where fpos_t is a struct (such as GNU-based systems or NetBSD) will fail to build. In which case, as the code has to be modified anyway, we might just as well use the correct declaration.
-
Guillem Jover authored
The glibc headers use selective inclusions through the __need_NAME mechanism to avoid circular dependencies. The problem is that if we are being overlaid, and have been requested a partial inclusion, when we pass control to the system header, then we might miss definitions needed by our own header, resulting in build failures. Workaround that by catching current partial requests, and skip the current inclusion.
-
Guillem Jover authored
Bump automake minimal version to 1.9.
-
Guillem Jover authored
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
-
- 14 Jul, 2013 4 commits
-
-
Guillem Jover authored
-
Guillem Jover authored
Try to give a helpful message in case the program is not initializing the setproctitle() machinery.
-
Guillem Jover authored
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
-
Guillem Jover authored
It's easier to find there, and the value can be reused in case we have to provide another shared library.
-
- 08 Jun, 2013 6 commits
-
-
Guillem Jover authored
-
Guillem Jover authored
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
-
Guillem Jover authored
Do not stop exporting the function in the version node even if typeof is not available, as that would break ABI.
-
Guillem Jover authored
-
Guillem Jover authored
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
-
Guillem Jover authored
-
- 30 May, 2013 1 commit
-
-
Guillem Jover authored
-
- 27 May, 2013 8 commits
-
-
Guillem Jover authored
-
Guillem Jover authored
This fixes build failures on 32-bit architectures.
-
Guillem Jover authored
-
Guillem Jover authored
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.
-
Guillem Jover authored
-
Guillem Jover authored
-
Guillem Jover authored
-
Guillem Jover authored
Merge some interesting changes.
-