Commit graph

83 commits

Author SHA1 Message Date
Dennisbonke a566bf339e options/linux: Unified epoll_wait and epoll_pwait
Signed-off-by: Dennisbonke <admin@dennisbonke.com>
2020-05-27 15:25:59 +02:00
Dennisbonke b426fc9591 options/linux: Implement epoll_pwait
options/posix: Implement pselect
options/posix: Revert the change regarding FD_SETSIZE
sysdeps/managarm: Implement sys_epoll_pwait and sys_pselect

Signed-off-by: Dennisbonke <admin@dennisbonke.com>
2020-05-27 01:27:22 +02:00
Alexander van der Grinten bb0ac8d6f4 options/linux: Restore utmp.h fixed-width type 2020-05-23 09:18:15 +02:00
Dennisbonke 3f77089339 options/linux: Reverted the change to uint32_t in utmp.h
options/ansi: Properly alias __progname and __progname_full

Signed-off-by: Dennisbonke <admin@dennisbonke.com>
2020-05-22 20:05:32 +02:00
Dennisbonke 78f3898b1e options/ansi: Implemented setlinebuf
options/linux: Stubbed various utmp related functions
options/posix: Implement WCOREDUMP

Signed-off-by: Dennisbonke <admin@dennisbonke.com>
2020-05-20 09:47:04 +02:00
Dennisbonke 02d4e4099d abis/mlibc: Define more IP constants.
options/ansi: Define NGROUPS_MAX.
options/glibc: Define more constants related to resolving domain names.
options/linux: Define POLLWRNORM.
options/posix: Cleanup of netdb-stubs, define more IP related constants.

Signed-off-by: Dennisbonke <admin@dennisbonke.com>
2020-05-17 13:29:14 +02:00
Alexander van der Grinten ca3ebf4487 options/linux: Create new session in login_tty() 2020-05-16 17:37:04 +02:00
Dennisbonke 6b3e0ba6d6 options/ansi: Fixed definition of LONG_MAX.
options/linux: Fixed a typo in openpty.

Signed-off-by: Dennisbonke <admin@dennisbonke.com>
2020-04-30 21:17:32 +02:00
Dennisbonke 9e34112ecf abis/mlibc: matched struct in6_addr to musl and provide loopback initialization macro.
options/linux: Fixed indentation and instanciate in6addr_loopback

Signed-off-by: Dennisbonke <admin@dennisbonke.com>
2020-04-30 21:01:37 +02:00
Dennisbonke aa925d6f74 options/linux: Fixed a macro and fixed indentation.
Signed-off-by: Dennisbonke <admin@dennisbonke.com>
2020-04-30 21:01:37 +02:00
Dennisbonke 3b531bc344 options/linux: Stubbed more netlink and rtnetlink stuff.
Signed-off-by: Dennisbonke <admin@dennisbonke.com>
2020-04-30 21:01:09 +02:00
Dennisbonke e38eaa8f67 options/linux: Fixed a typo in inotify.h
Signed-off-by: Dennisbonke <admin@dennisbonke.com>
2020-04-28 19:31:01 +02:00
Dennisbonke 9c71d2af70 options/linux: Added generic mount options.
Signed-off-by: Dennisbonke <admin@dennisbonke.com>
2020-04-28 19:31:01 +02:00
Dennisbonke 18eab91dc4 options/linux: moved poll.h to sys/poll.h
Signed-off-by: Dennisbonke <admin@dennisbonke.com>
2020-04-28 19:31:01 +02:00
Alexander van der Grinten 6eae092103 options/linux: Add more filesystem magic constants 2020-04-19 19:41:22 +02:00
Arsen 663cbd5a44 options/linux: add sys/reboot.h 2020-04-08 23:09:06 +02:00
Geert Custers 05aaa486fe abis: add socket, netinet/in and fcntl abi to abi-bits 2020-03-30 13:52:52 +02:00
Geert Custers 974aff8530 sysdeps/linux: add sys_isatty() 2020-02-20 15:07:47 +01:00
Alexander van der Grinten 733ede6446 options/elf: Move elf.h here 2020-02-15 18:47:24 +01:00
Alexander van der Grinten 5baf8426b7 options/linux: Add SYN_DROPPED constant 2019-12-13 21:41:29 +01:00
Kacper Słomiński 3a8de44895 options/linux: add BTN_SIDE and BTN_EXTRA 2019-11-30 16:51:29 +01:00
Alexander van der Grinten 2044411eb8 options/rtdl: Support GNU-style hashes 2019-08-18 14:18:10 +02:00
Alexander van der Grinten bd2a78e4d8 options/rtdl: Support STB_GNU_UNIQUE 2019-08-11 13:51:21 +02:00
Alexander van der Grinten 66739a3add options/rtdl: Implement DT_RUNPATH 2019-08-11 12:35:20 +02:00
Alexander van der Grinten 0a20b6aef3 options/glibc: Fix ioctl() headers
Make sure that ioctl() headers in options/linux have the same
structure as in the Linux kernel.
2019-07-20 19:12:22 +02:00
qookie 20a58febb2 options/posix: implement some pseudoterminal functions 2019-06-28 19:22:50 +02:00
qookie d528f6c43e Implement eventfd functions and F_SETFL and F_GETFL 2019-06-27 18:33:55 +02:00
qookie 0772720241 options/linux: add struct vt_stat and some VT ioctls 2019-06-23 19:41:15 +02:00
qookie 4c8756d158 options/linux: add more keyboard related defines 2019-06-23 19:40:42 +02:00
qookie cfb58d1270 options/linux: add the TIOCSIG ioctl 2019-06-23 19:35:51 +02:00
qookie 4c3353828e options/linux: implement eventfd stubs 2019-06-23 19:25:13 +02:00
Alexander van der Grinten ca77e7adba meson: Add mlibc_no_headers option 2019-06-15 11:15:41 +02:00
Alexander van der Grinten c280e9aba1 options/rtdl: Ignore PT_NOTE segments 2019-05-31 19:19:17 +02:00
Alexander van der Grinten bf456313ad options/linux: Properly implement inotify functions 2019-05-17 20:03:23 +02:00
Alexander van der Grinten 13e9e477e2 options/posix: Make FS-related sysdeps optional 2019-05-13 19:59:42 +02:00
Alexander van der Grinten d784c5eba2 options/posix: Make signal/process sysdeps optional 2019-05-13 06:47:03 +02:00
Alexander van der Grinten 50f9be7ddd options/linux: Make sysdeps functions optional 2019-05-13 06:14:25 +02:00
mintsuki f97d917526 Move getopt from linux directory to glibc one 2019-05-06 21:37:31 +02:00
Alexander van der Grinten c6d478620f options/linux: Implement more constants in elf.h 2019-01-05 18:30:42 +01:00
Alexander van der Grinten c8e1ebf1d0 meson: Move include dirs to main meson.build 2018-12-28 00:25:24 +01:00
Alexander van der Grinten d9d6ac5bea internal: Report sysdeps errors in return value
Before this patch, sysdeps functions reported their errors in errno.
Now, the error is reported in the return value and updating errno is
done by the wrapper function that calls into sysdeps.

This approach has the advantage that mlibc can call sysdeps without
having to worry about clobbering errno. Previously, annoying
errno save/restore boilerplate would have been necessary.

Fixes #3.
2018-12-24 19:49:48 +01:00
Alexander van der Grinten ebb18e18a4 options/glibc: Move ioctl() here
This patch also provides sys_ioctl() on qword.
2018-12-08 11:24:50 +01:00
Alexander van der Grinten 290ff67ca7 options/glibc: Move stdio_ext.h here 2018-12-08 11:09:22 +01:00
Alexander van der Grinten 02df8cc38e sysdeps/qword: Add stubs for posix option 2018-11-21 20:10:39 +01:00
Alexander van der Grinten d2da3ca4bc build: Properly install all public headers 2018-11-21 06:34:45 +01:00
Alexander van der Grinten cde97721e3 build: Make options/posix, options/linux optional 2018-11-11 13:46:39 +01:00
Alexander van der Grinten 3d9d495bee build: Refactor meson build files 2018-11-10 09:41:08 +01:00
Alexander van der Grinten 7b7068ded7 rtdl: Use <elf.h> instead of frigg variant 2018-11-07 17:57:30 +01:00
Alexander van der Grinten b6265bcc5c libc: Replace frigg loggers by frg loggers 2018-10-16 18:38:10 +02:00
Alexander van der Grinten 6a90e33d6b sysdeps/managarm: Implement signal() and waitpid() 2018-05-28 23:39:30 +02:00