aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdeps
Commit message (Collapse)AuthorAgeFilesLines
* Deprioritize getexecname(), it's badLaurent Bercot2025-04-031-0/+4
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add dladdr sysdepLaurent Bercot2025-04-021-0/+33
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add sagetexecname() and all the necessary infrastructureLaurent Bercot2025-04-025-0/+68
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add sysdep for CLONE_NEWPID and fork_newpid functionLaurent Bercot2024-09-121-0/+36
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* More support for old MacOS fossilsLaurent Bercot2024-04-161-0/+22
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Tentative support for old MacOS with no O_CLOEXECLaurent Bercot2024-04-161-0/+5
| | | | | | Also add a prototype for gol, not finished yet. Signed-off-by: Laurent Bercot <ska@appnovation.com>
* ok, AIX can *still* fuck offLaurent Bercot2023-12-131-7/+0
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* hahaha noLaurent Bercot2023-12-131-2/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* maybe maybe maybeLaurent Bercot2023-12-131-0/+8
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Fix trypthread.c to work with old compilersLaurent Bercot2023-11-181-1/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Try another workaround for bad struct statLaurent Bercot2023-09-121-0/+3
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* New sysdeps for st.st_atim etc., timespec_cmpLaurent Bercot2023-09-122-0/+18
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add waitid() sysdep, and fuck OpenBSDLaurent Bercot2023-09-121-0/+12
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add POSIX_SPAWN_SETSID_NP supportLaurent Bercot2023-09-111-0/+30
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add posix_spawn_file_actions_addchdir() supportLaurent Bercot2023-09-112-0/+62
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add a pthread sysdepLaurent Bercot2023-09-111-0/+24
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add POSIX_SPAWN_SETSID support to cspawnLaurent Bercot2023-09-101-0/+30
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* posix_spawn workaround fixesLaurent Bercot2023-06-291-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add workaround for bad QoI posix_spawn()Laurent Bercot2023-06-281-0/+24
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add sysdep for GRND_INSECURELaurent Bercot2022-03-271-0/+16
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add chroot sysdep, fix endianness sysdep string in .hLaurent Bercot2020-12-141-0/+20
|
* Switch getrandom sysdep back to choose clLaurent Bercot2019-10-261-0/+6
|
* THAT'S IT WE HAVE EASY CROSS-COMPILATION FOLKSLaurent Bercot2019-09-201-43/+0
|
* We're down to ONE rogue sysdep, boys. ONE.Laurent Bercot2019-09-203-53/+0
|
* sysdeps redesign: first part: minimize clr testsLaurent Bercot2019-09-205-33/+30
| | | | | | | | Remaining clr: emptyregex: can be safely guessed to no nullispointer: can't be safely guessed, but do we need the test? devurandom: can't be safely guessed malloc0: can more or less be safely guessed to no
* Big wallclock/stopwatch refactor. It was long overdue.Laurent Bercot2019-09-031-0/+10
| | | | | | | | | | | | | * --enable-clock and --enable-monotonic are gone * tain_sysclock() has been renamed tain_wallclock_read() * tain_wallclock_read() reads from CLOCK_REALTIME (or gettimeofday()) * tain_clockmon[_init]() have been renamed to tain_stopwatch_[read|init]() and now accept a monotonic clock name as an extra argument * tain_now() points to the system (wall) clock by default * tain_now_set_[stopwatch|wallclock]() can be used to switch Now to make a pass on all skarnet.org programs and add a tain_now_set_stopwatch() call everywhere needed... >.>
* Add tryemptyregex/skalibs_regcomp, prepare for 2.8.1.0Laurent Bercot2019-05-111-0/+16
|
* Add skalibs/posixishard.hLaurent Bercot2019-02-191-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | This will break things. It's a known issue. Patches to other packages will come later, to adapt them to the new API. To work around brokenness, there needs to be *two* different headers: 1. one to be used before including system headers, that maximizes visibility by enabling system-dependent feature test macros (that will be tested by system headers) 2. one to be used after including system headers, that performs preprocessor tests and defines. skalibs/nonposix.h is the first one. Previously, there was no second one, and the tests were scattered all over. There was a strnlen declaration in skalibs/posixplz.h (which serves a totally different function: declaring things that should be in POSIX, but *are not*, i.e. working around problems in the standard, instead of problems in systems failing to respect the standard), a build-time sysdep for error.h, #defines for MSG_NOSIGNAL, etc. etc. skalibs/posixishard.h now is the second one, and centralizes all the tests. As a result, the eproto sysdep is unnecessary and has been removed. skalibs/error.h is now a static header, it is not built anymore.
* Add DragonFly macro; remove nbwaitall and ancilautocloseLaurent Bercot2019-02-192-133/+0
|
* Get rid of tryancilautoclose testLaurent Bercot2019-02-181-108/+6
|
* Add nullispointer sysdepLaurent Bercot2018-05-031-0/+12
|
* Add byte_zzero, openb_readLaurent Bercot2018-03-011-0/+30
|
* Try strnlen() portability with _POSIX_C_SOURCE...Laurent Bercot2018-01-131-3/+0
|
* GNU manages to botch dirfd() too. POSIX is hard!Laurent Bercot2017-12-211-0/+3
|
* Add dirfd sysdep, because Solaris sucksLaurent Bercot2017-12-211-0/+19
|
* Big 2.6.3.0 reorganizationLaurent Bercot2017-12-217-2/+102
| | | | | | | - Add libposixplz, update headers - Add memmem and friends - Add textmessage to libunixonacid - Update some sysdeps tests
* Add O_DIRECTORY sysdepLaurent Bercot2017-11-221-0/+5
|
* Add nsgetparent sysdepLaurent Bercot2017-08-281-0/+12
|
* Change xexecvep exit codes ; add namespaces sysdepLaurent Bercot2017-08-231-0/+12
|
* Change setgroups() management, in particular add skalibs_setgroups()Laurent Bercot2017-07-161-39/+0
|
* Add egidingroups sysdeps, change fd_close() to void and saving errno, ↵Laurent Bercot2017-07-161-0/+39
| | | | propagate changes
* Accommodate some broken GNU toolchains by including sys/types.h in sysdeps ↵Laurent Bercot2017-05-162-0/+2
| | | | tests
* bugfixes: invalid clockmon detection and futimens detectionLaurent Bercot2017-05-151-0/+3
|
* Adjust ftms for trysetgroups.c (glibc changed APIs without major version ↵Laurent Bercot2017-04-301-0/+8
| | | | bump -_-)
* Fix getrandom() detection: need to run the test, not only link!Laurent Bercot2017-04-261-1/+2
|
* Align ancillary buffers on struct cmsghdr and int boundariesLaurent Bercot2017-04-232-4/+12
|
* More arc4random_addrandom fixes, how can clang be such a PITA ?Laurent Bercot2017-03-161-1/+1
|
* Fix arc4random_addrandom detection for -Werror=pointer-signLaurent Bercot2017-03-161-1/+2
|
* Better pipe2 detection on BSD systemsLaurent Bercot2017-03-151-2/+14
|
* Fix trydevurandom testLaurent Bercot2017-03-151-1/+1
|