Commit graph

1398 commits

Author SHA1 Message Date
Geert Custers 5a8d23afac sysdeps/linux: implement proper signal support 2021-04-12 12:28:56 +02:00
Geert Custers 4eb7948388 sysdeps/linux: implement tgkill() and getpid() 2021-04-12 12:28:56 +02:00
Geert Custers 8302b3b930 options/posix: implement pthread_cancel() 2021-04-12 12:28:54 +02:00
Geert Custers 1b8f174435 sysdeps/linux: make several syscalls cancellable 2021-04-12 12:28:06 +02:00
Geert Custers a0f6b4b750 sysdeps/linux: add cancellable syscalls 2021-04-12 12:28:06 +02:00
Geert Custers 9cdc98ed56 options/posix: add SIGCANCEL signal handler 2021-04-12 12:28:06 +02:00
Geert Custers 60e5c75b7f options/posix: add ucontext.h and stub functions 2021-04-12 12:27:32 +02:00
Geert Custers 192a7e6563 options/posix: implement pthread_setcancel{type,state} 2021-04-12 12:27:30 +02:00
Geert Custers af2761a390 sysdeps/linux: implement threading support 2021-02-04 11:44:22 +01:00
Geert Custers 02f2a8ed17 options/rtdl: add GNU_PROPERTY PHDR 2021-02-04 11:41:57 +01:00
Alexander van der Grinten 2931688a94
Merge pull request #228 from Dennisbonke/signal-changes
sysdeps/managarm: Handle EINVAL in sigaction
2021-02-03 22:31:25 +01:00
Geert Custers c59273d409
Merge pull request #227 from Dennisbonke/strtol
options/ansi: handle strings starting with '+' in strtol
2021-02-03 20:53:03 +01:00
Dennis Bonke 31d799ce24
options/ansi: handle strings starting with '+' in strtol
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-02-03 20:28:04 +01:00
Geert Custers e24c78a26a
Merge pull request #225 from Dennisbonke/rindex
options/posix: Add rindex
2021-02-03 20:21:26 +01:00
Dennis Bonke fb7c033a37
tests: Add tests for strchr, strrchr, index and rindex
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-02-03 19:49:27 +01:00
Dennis Bonke 2b2e7b5bd0
options/posix: Add rindex
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-02-03 19:43:55 +01:00
Dennis Bonke 36c041f3c4
sysdeps/managarm: Handle EINVAL in sigaction
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-02-03 19:23:00 +01:00
Alexander van der Grinten 32a3864c6b
Merge pull request #216 from Dennisbonke/syslog
options/posix: syslog improvements
2021-02-03 17:07:54 +01:00
Dennis Bonke 7525fb7709
tests: add a test for strftime %e
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-02-03 15:32:57 +01:00
Dennis Bonke 2f11462fa7
options/posix: Implement syslog and vsyslog, using mlibc::infoLogger as a fallback when no syslog daemon is found / running
options/ansi: Implement %e in strftime

Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-02-03 15:32:57 +01:00
Geert Custers 3c5ec38fd4
Merge pull request #226 from Dennisbonke/cmatrix
options/linux: Add TIOCSTI
2021-02-02 22:09:56 +01:00
Dennis Bonke 945b00088e
options/linux: Add TIOCSTI
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-02-02 16:45:02 +01:00
Alexander van der Grinten d09f9f518b
Merge pull request #223 from Dennisbonke/libintl
meta: Split libintl functions to its own option
2021-01-31 16:26:13 +01:00
Alexander van der Grinten 923eec1984
Merge pull request #224 from Dennisbonke/pathresolver
sysdeps/managarm: Handle EINVAL in ioctl(TIOCGWINSZ)
2021-01-31 16:25:41 +01:00
Dennis Bonke e2c10dfd39
meta: Split out the libintl functions so they can be enabled with a function
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-01-31 15:46:21 +01:00
Dennis Bonke 199a30be62
sysdeps/managarm: Handle EINVAL in ioctl(TIOCGWINSZ)
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-01-31 15:24:50 +01:00
Alexander van der Grinten 7ac5bbea79
Merge pull request #215 from Dennisbonke/pathresolver
sysdeps/managarm: Fix sys_openat after the PathResolver refactor
2021-01-30 17:10:37 +01:00
Alexander van der Grinten 517dfc5e0e
Merge pull request #221 from Dennisbonke/managarm-entry
sysdeps/managarm: Change the startup code to use the generic version
2021-01-30 17:07:02 +01:00
Dennis Bonke 98cbfec564
sysdeps/managarm: Change the startup code to use the generic version
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-01-29 15:38:22 +01:00
Alexander van der Grinten 4e2eb0d036
Merge pull request #214 from Dennisbonke/util-linux
Various new stubs and defines
2021-01-28 19:40:29 +01:00
Dennis Bonke 262e70f4e1
tests: Add a test for strverscmp
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-01-28 16:58:09 +01:00
Geert Custers 0726f99c28
Merge pull request #219 from fido2020/master
options/linux: Add route.h, Add in_pktinfo to in.h
2021-01-25 12:54:17 +01:00
JJ 12ae2bd13d options/linux: Add route.h, Add in_pktinfo to in.h 2021-01-25 12:39:22 +11:00
Alexander van der Grinten d5fea3e9b1
Merge pull request #218 from no92/master
options/linux: Add changes needed for libinput 1.16.4 and wlroots
2021-01-24 20:32:35 +01:00
Dennis Bonke 827355d5bf
options/posix: Implement versionsort
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-01-24 16:42:03 +01:00
Dennis Bonke 16f21daad3
options/ansi: Add strverscmp
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-01-24 16:42:03 +01:00
no92 067dc5ff98
options/posix: add index 2021-01-24 16:04:11 +01:00
no92 d436a329b2
options/linux: Add changes needed for wlroots
This moves some #defines out of <linux/input.h> into
<linux/input-event-codes.h>, as wlroots expects them to be. The former
header now includes the new one. Additional defines have been added as
needed for libinput.

Also, <linux/major.h> gets a new #define as needed.
2021-01-24 16:04:11 +01:00
Dennis Bonke 0e98b63338
abis/mlibc: Define O_PATH
abis/linux: Add compatibility define for O_PATH
options/posix: Define O_PATH

Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-01-24 13:23:18 +01:00
Alexander van der Grinten 63e88b262d
Merge pull request #217 from fido2020/master
options/linux: Add more ioctls to sockios.h
2021-01-24 09:48:00 +01:00
JJ 5ab6826849 sysdeps/lemon: getsockopt and setsockopt sysdeps, use linux socket.h ABI 2021-01-24 19:27:22 +11:00
JJ 4c96b730bc abis/mlibc: Add IP_PKTINFO to in.h 2021-01-24 18:53:50 +11:00
JJ afd66e23bf options/linux: Add more ioctls to sockios.h 2021-01-24 12:38:31 +11:00
Dennis Bonke 666c09d1d5
options/posix: Add wait4 and daemon
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-01-23 11:59:10 +01:00
Dennis Bonke 6f5658f3c8
options/linux: Add a blkdev related define
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-01-23 00:40:38 +01:00
Dennis Bonke 62932be95a
abis/mlibc: Add ENOTBLK to errno
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-01-23 00:09:31 +01:00
Dennis Bonke e4506ff8b1
options/linux: Add umount and umount2
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-01-23 00:09:18 +01:00
Dennis Bonke 3a993357c6
options/linux: Add several blkdev related defines
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-01-23 00:09:03 +01:00
Dennis Bonke eb325a35aa
options/posix: Add versionsort
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-01-22 21:54:49 +01:00
Dennis Bonke cde3259868
options/ansi: Add wcswidth
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-01-22 21:54:49 +01:00