- 17 Jun, 2018 3 commits
-
-
Guillem Jover authored
The loop only executes while len > 0, and the trinary operator in the function argument is checking against len >= 1 which will always be true. Warned-by: coverity
-
Guillem Jover authored
The code uses an internal helper function to avoid code repetition. But to get there, the function takes a pointer to a pointer, so that the few functions that require returning an allocated buffer can get hold of it this way. The problem is that the user might pass a NULL pointer and trigger an internal allocation even if the functions are not expected to do so. Add a new internal helper for non-allocations, that will assert that condition, and make any other function that requires this behavior call this one instead. Warned-by: coverity
-
Baruch Siach authored
Commit 993828d8 (Add flopenat() function from FreeBSD) dropped the fcntl.h header. This breaks the build with musl libc: flopen.c: In function ‘vflopenat’: flopen.c:60:14: error: ‘O_CREAT’ undeclared (first use in this function) if (flags & O_CREAT) { ^~~~~~~ Restore the fcntl.h header include to fix the build. Fixes: commit 993828d8Submitted-also-by:
parazyd <parazyd@dyne.org> Signed-off-by:
Baruch Siach <baruch@tkos.co.il> Signed-off-by:
Guillem Jover <guillem@hadrons.org>
-
- 31 May, 2018 4 commits
-
-
Guillem Jover authored
Merge all stages so that we do not need to pass artifacts around. Quiesce «apt install».
-
Guillem Jover authored
-
Guillem Jover authored
Run «apt install» in non-interactive mode, and do not install Recommends. Replace build-essential, which is rather fat, with gcc and make. Execute autogen instead of autoreconf directly.
-
Guillem Jover authored
-
- 23 May, 2018 2 commits
-
-
Jakub Wilk authored
Signed-off-by:
Guillem Jover <guillem@hadrons.org>
-
Jakub Wilk authored
Signed-off-by:
Guillem Jover <guillem@hadrons.org>
-
- 22 May, 2018 4 commits
-
-
Guillem Jover authored
-
Guillem Jover authored
The NetBSD implementations have different prototypes to the ones coming from OpenBSD, which will break builds, and have caused segfaults at run-time. We provide now both interfaces with different prototypes as different version nodes allow selecting them at compile-time, defaulting for now to the OpenBSD one to avoid build-time breakage, while emitting a compile-time warning. Later on, in 0.10.0, we will be switching the compile-time default to the NetBSD version. Ref: http://gnats.netbsd.org/44977 Fixes: https://bugs.debian.org/899282
-
Guillem Jover authored
We need this to be able to select different version symbols at compile-time.
-
Guillem Jover authored
We cannot refer to a License short-name if that is not on its own License paragraph. Split several other common License fields into their own paragraphs to avoid this problem in the future.
-
- 21 May, 2018 17 commits
-
-
Guillem Jover authored
-
Guillem Jover authored
This function has the same problems as fgetln() which is already marked as deprecated.
-
Guillem Jover authored
-
Guillem Jover authored
Import from OpenBSD.
-
Guillem Jover authored
Import from NetBSD.
-
Guillem Jover authored
-
Guillem Jover authored
This will slightly reduce the delta, and makes it easier to compare the sources.
-
Guillem Jover authored
-
Guillem Jover authored
-
Guillem Jover authored
-
Guillem Jover authored
-
Guillem Jover authored
Implements HN_IEC_PREFIXES.
-
Guillem Jover authored
Use EINVAL instead of EDOOFUS. Add a missing synopsis for pidfile_fileno() in the man page. Move the definition of struct pidfh from libutil.h into pidfile.c following upstream change.
-
Guillem Jover authored
Split Linux support into its own header separate from the generic Unix to fix a Linux-specific issue with clone(). Reset rsp to NULL on failure.
-
Guillem Jover authored
Includes changes to handle the Linux syscall blocking when there is not enough entropy during boot, by switching it to non-blocking mode and falling back to the alternative implementations. Man page URL reference fixes. Build fixes for Mac OS X. Fixes: https://bugs.debian.org/898088
-
Guillem Jover authored
-
Guillem Jover authored
-
- 04 Apr, 2018 1 commit
-
-
Baruch Siach authored
uClibc defines EM_OR1K instead of EM_OPENRISC for the OpenRISC ELF e_machine ID. Use EM_OR1K when EM_OPENRISC is not defined. This fixes the following build failure: In file included from nlist.c:44:0: nlist.c: In function ‘__elf_is_okay__’: local-elf.h:224:23: error: ‘EM_OPENRISC’ undeclared (first use in this function) #define ELF_TARG_MACH EM_OPENRISC ^ nlist.c:77:26: note: in expansion of macro ‘ELF_TARG_MACH’ if (ehdr->e_machine == ELF_TARG_MACH && ^ Signed-off-by:
Guillem Jover <guillem@hadrons.org>
-
- 13 Mar, 2018 3 commits
-
-
Guillem Jover authored
On non-glibc based systems we cannot unconditionally use the __GLIBC_PREREQ macro as it gets expanded before evaluation. Instead, if it is undefined, define it to 0. We should also always declare these functions on non-glibc based systems. And on systems with a new enough glibc, which provides these functions, we should still provide the declarations if _GNU_SOURCE is *not* defined. Reported-by:
Jörg Krause <joerg.krause@embedded.rocks>
-
Guillem Jover authored
This is a non-portable header, and we should not assume it is present. Let the first system header pull it in if needed.
-
Guillem Jover authored
This is a non-portable header, and we cannot expect it to be provided by the system libc (e.g. musl). We just need and rely on declaration that we have defined ourselves in our own <bsd/sys/cdefs.h>. So we switch to only ever assume that. Fixes: https://bugs.freedesktop.org/105281
-
- 06 Mar, 2018 1 commit
-
-
Guillem Jover authored
Define the directory separator depending on the system targetted. Reported-by:
Progyan Bhattacharya <progyanb@acm.org>
-
- 04 Mar, 2018 2 commits
-
-
Guillem Jover authored
-
Jessica Clarke authored
32-bit SPARC on V8+ uses a different ELF machine type. Fixes: https://bugs.gentoo.org/634550Signed-off-by:
Guillem Jover <guillem@hadrons.org>
-
- 13 Jan, 2018 3 commits
-
-
Guillem Jover authored
-
Jason Duerstock authored
On IA64 this is only the case in the ELF binary, but it gets normalized when loaded at run-time. Fixes: https://bugs.debian.org/881611Signed-off-by:
Guillem Jover <guillem@hadrons.org>
-
Adam Lackorzynski authored
Fixes: https://bugs.freedesktop.org/103396Signed-off-by:
Guillem Jover <guillem@hadrons.org>
-