Commit Graph

19 Commits

Author SHA1 Message Date
Yuki Okushi 3fae7e9ce7 Fix style 2021-04-06 10:10:29 +09:00
Dominik Stolz a9c4446eeb Add more syscall constansts 2021-03-16 07:57:34 +01:00
Torbjørn Birch Moltu fe4be350a8 Add SO_PEERSEC and SO_PASSSEC for all linux archs and android
SO_PASSSEC and SO_PEERSEC were already added for the most common archs
such as x86_64 and aarch64, but were missing on for example x86.

Sources:
* linux mips: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/mips/include/uapi/asm/socket.h
* linux sparc: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/sparc/include/uapi/asm/socket.h
* other linux: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/asm-generic/socket.h
* android: https://android.googlesource.com/platform/bionic.git/+/refs/heads/master/libc/kernel/uapi/asm-generic/socket.h
2021-03-08 00:10:10 +01:00
Josh Triplett 6859d47e78 Remove link directives for libutil on linux-gnu targets
These are all handled in src/unix/mod.rs now, which also addresses the
crt-static case; no linux-gnu target should have any link directives in
any other module.

This fixes static linking with glibc for various architectures.
2021-01-28 00:21:42 -08:00
Aaron Hill 8e58e82c02
Add SYS_pidfd_open and SYS_clone3
These syscalls were added recently, and therefore have consistent
numbers across different architetures (other than the weird offsetting
on some platforms).
2020-09-17 06:05:23 -04:00
Bryant Mairs 524ec8f2f5 Add TIOCSBRK/TIOCCBRK to more supported platforms
Reorganized some constants as well so they're grouped a bit better.
2020-05-07 10:56:44 -07:00
Andre Nathan c18ab84108 Add F_OFD_* constants 2020-03-10 13:27:38 -03:00
bors 7f33bcb399 Auto merge of #1561 - elichai:2019-10-flock64, r=gnzlbg
Add flock64 to linux_like platforms

Hi,
I'm not sure about what to make of the ifdef in glibc `__USE_LARGEFILE64` that covers it.
but I copied the impl from glibc's headers.
everything is the same except for sparc which has a reserved short int.
and in musl it's just `#define flock64 flock`
2019-11-25 09:55:59 +00:00
oxalica ea00e8b911
Provide SYS_statx for more arch 2019-11-22 13:46:40 +08:00
Elichai Turkel c70634e486
Add flock64 to linux_like platforms 2019-11-21 12:43:13 +02:00
gnzlbg 939a2e5a3a Formatting 2019-09-12 15:12:33 +02:00
Torbjørn Birch Moltu 2c10c4c887 Add FIONCLEX for Linux 2019-06-07 20:00:55 +02:00
gnzlbg 46dbf2d2e3 Fix siginfo_t in s390x 2019-06-06 16:29:44 +02:00
gnzlbg 5e37553c4f Fix statfs 2019-06-06 16:29:44 +02:00
gnzlbg 1c97b77cb3 Correct bugs in mips, mips64 and s390x 2019-06-06 14:35:44 +02:00
gnzlbg d36963a0b8 Remove duplicated constants from s390x 2019-06-05 11:30:10 +02:00
gnzlbg bf92b760cf Remove duplicated flock type in s390x 2019-06-04 18:35:07 +02:00
gnzlbg 4bd419ebec Move the mips module into the gnu module 2019-06-04 18:17:19 +02:00
gnzlbg 65f23e6aca Move s390x into the gnu module 2019-06-04 16:23:47 +02:00