Commit Graph

510 Commits

Author SHA1 Message Date
bors
6deb8a935a Auto merge of #2020 - joshtriplett:ifla, r=JohnTitor
Add more IFLA_ values
2021-01-05 19:40:36 +00:00
Josh Triplett
2076d1cd3f Add more IFLA_ values 2021-01-05 11:39:47 -08:00
Benedikt Steinbusch
d57347aee3 ignore changed constants in test for now 2021-01-01 03:33:45 +01:00
Benedikt Steinbusch
a7fd8a7a6b ignore __v field of __darwin_arm_neon_state64 in tests 2021-01-01 01:49:49 +01:00
Jack Lloyd
71bfcb8c9c Add missing comma 2020-12-08 10:15:48 -05:00
Jack Lloyd
64d9b001de List Android headers needed for getauxval in libc-test/build.rs 2020-12-08 10:10:02 -05:00
bors
8e62c98274 Auto merge of #1982 - Thomasdezeeuw:freebsd-getrandom, r=JohnTitor
Add getrandom to FreeBSD

Introduced in FreeBSD 12.0.

Manual page: https://www.freebsd.org/cgi/man.cgi?query=getrandom.

Not sure if the constants should be `c_int`, just matching the `flags` argument in the function, in c they're macros.
2020-11-27 07:30:39 +00:00
Joshua M. Clulow
297c00203a tests should ignore setservent() and endservent() on illumos
Depending on the compilation environment (e.g., whether the 3XNET or
3SOCKET version of these functions is in play, whether EXTENSIONS has
been defined, etc) these functions may be declared to return either void
or int.  The return value is hard coded as zero, and can be ignored to
better align with other platforms where these functions are always void.
2020-11-25 16:34:51 -08:00
Thomas de Zeeuw
99b3635079 Add getrandom to FreeBSD
Introduced in FreeBSD 12.0.

Manual page: https://www.freebsd.org/cgi/man.cgi?query=getrandom.
2020-11-24 11:08:27 +01:00
Yuki Okushi
b9bf6d1faa Skip test for ELAST on FreeBSD 12 2020-10-31 12:54:12 +09:00
Lzu Tao
be37f011e6 Make tests for bsd passed
* Include some header files
* Ingore tests for p_type field of `Elf*_Phdr` because of
  conflicting with p_type macro from resolve.h
2020-10-27 18:03:33 +07:00
bors
e0a4fb0397 Auto merge of #1902 - george-hopkins:mptcp, r=JohnTitor
linux: Add definitions for Multipath TCP

The Linux kernel recently gained support for [Multipath TCP](https://en.wikipedia.org/wiki/Multipath_TCP), a protocol which builds upon TCP. This patch adds `IPPROTO_MPTCP` to open new sockets and `TCP_ULP` to query the upper layer protocol of traditional TCP sockets (which is set to `mptcp` for all underlying connections)

Source: [tcp: Define IPPROTO_MPTCP](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=faf391c3826cd29feae02078ca2022d2f912f7cc)

cc #1896
2020-10-24 23:20:17 +00:00
Yuki Okushi
b4f8191689 Unpin the cc crate version 2020-10-24 02:35:55 +09:00
George Hopkins
2a212c84fb linux: Add definitions for Multipath TCP
We leave IPPROTO_MAX as is for the time being. However, in recent
kernel releases IPPROTO_MAX is actually higher and reflects the
addition of IPPROTO_MPTCP.
2020-10-21 07:22:41 +02:00
bors
35ee6ed0be Auto merge of #1934 - JohnTitor:redox, r=JohnTitor
Run build test for `x86_64-unknown-redox`

Fix #1457
2020-10-19 19:48:34 +00:00
Yuki Okushi
f57b285c5e Skip MINCORE_SUPER on FreeBSD 13 2020-10-17 23:42:25 +09:00
Yuki Okushi
f0a1bdf06c Exclude redox from cmsg test 2020-10-17 12:43:58 +09:00
Yuki Okushi
ec0eec26c5 Remove some header files from test_redox 2020-10-17 12:43:58 +09:00
Yuki Okushi
e228df915d Pin cc crate to fix AArch64-Android CI 2020-10-17 04:41:00 +09:00
Yuki Okushi
c1b25a564a Unignore tests for some functions on AArch64-Android 2020-10-17 04:38:29 +09:00
rupansh-arch
0121c5c019 libc-test: add process_vm* to exceptions for android 2020-10-16 05:25:41 +05:30
Andrew Walbran
4f40b35cca Android: Add VMADDR_ constants. 2020-10-07 11:56:56 +01:00
Josh Triplett
3e9945eb04
Merge pull request #1897 from Aaron1011/feature/sys-pidfd-open-clone3
Add SYS_pidfd_open and SYS_clone3
2020-09-30 20:14:47 -07:00
Andrew Walbran
37357abbfc Android: Add vsock constants and struct. 2020-09-29 13:41:00 +01: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
Daniil Bondarev
ce5cb03544 Added clock_getcpuclockid to more targets
Previously clock_getcpuclockid was enabled only on linux, with this
change it is enabled on all linux_like and freebsdlike.
2020-08-21 22:12:48 -07:00
Jed Brown
3f9f49aacd add fmemopen, open_memstream, and open_wmemstream for POSIX.1-2008
Skip test on aarch64 due to https://github.com/rust-lang/libc/issues/1765
2020-08-19 19:08:00 -06:00
Yuki Okushi
b1793090f4
Merge pull request #1861 from joshtriplett/p_pidfd 2020-08-19 07:45:41 +09:00
Josh Triplett
e709b3f78a Define P_PIDFD, used with waitid
Linux defines a waitid type `P_PIDFD`, for use with process file
descriptors (`pidfd`). Add that constant.

In libc-test, add linux/wait.h to the Linux-specific and
Android-specific headers, to get the definition. Exclude it on Android
and musl for now, though, as the versions in CI don't have it yet.
2020-08-18 14:11:08 -07:00
Fredrik Fornwall
a848efd351 Add regex.h to libc-test for Android 2020-08-16 11:36:10 +02:00
Joshua M. Clulow
1f0ea0da73 add openpty and forkpty implementation for illumos systems
At time of writing, illumos systems do not provide an implementation of
the openpty() and forkpty() wrappers provided on some other UNIX
systems.  While we expect to grow an implementation, it seems prudent to
provide a compatibility routine here first to unblock illumos support in
the popular nix crate.
2020-08-05 20:39:45 -07:00
Alan Somers
554ea4b8bd Deprecate CTL_P1003_1B_MAXID
It's been removed in FreeBSD 13 (svn r363622), and never had any
legitimate use outside of the base system anyway.
2020-07-27 14:59:32 -06:00
Yuki Okushi
53f569989b
Run rustfmt 2020-07-27 03:27:52 +09:00
Yuki Okushi
65be52f339
Merge pull request #1830 from JohnTitor/utmpx
Declare `utmpx` on musl
2020-07-24 04:45:34 +09:00
Yuki Okushi
05c4574f3a
Declare utmpx on musl 2020-07-22 09:51:21 +09:00
Stefano Garzarella
45db822a18 Skip test for "VMADDR_CID_RESERVED" and "VMADDR_CID_LOCAL"
VMADDR_CID_RESERVED is NOT available from Linux v5.6.
VMADDR_CID_LOCAL is available only on Linux >= v5.6.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
2020-07-20 21:33:02 +02:00
Simonas Kazlauskas
91fee24f12
Move the SEAL constants to freebsd12 module 2020-07-20 01:16:47 +09:00
Simonas Kazlauskas
6b14cfbf93
Add some missing fcntl flags for freebsd 2020-07-20 01:14:26 +09:00
Patrick Mooney
e1b9757128 Expose EPOLLEXCLUSIVE on illumos platform
Initially the EPOLLEXCLUSIVE definition was hidden on the illumos
platform as it lacked explicit support.  After further review, it was
concluded that EPOLLEXCLUSIVE can safely be considered a no-op, when not
fully implemented by the OS, making it safe for use on illumos.
2020-07-17 18:28:33 +00:00
Yuki Okushi
0c2027f05a
Merge pull request #1811 from sunfishcode/wasi-more
Add more WASI libc definitions.
2020-07-07 07:04:08 +09:00
Dan Gohman
753ad8205f Add more WASI libc definitions.
This adds various WASI libc definitions to the Rust libc bindings that I
needed while porting some applications to WASI.

It also removes the `pause` binding since newer versions of WASI libc
have removed this function as well. (WASI currently has no syscall with
this functionality.)
2020-07-06 05:50:17 -07:00
Greg V
9fc2574548 FreeBSD: chase CTL_UNSPEC to CTL_SYSCTL, IPPROTO_SEP to IPPROTO_DCCP renames
Plus, add new constants for sysctls that give names to existing magic numbers.

https://reviews.freebsd.org/rS350749
https://reviews.freebsd.org/rS352486
2020-07-06 15:31:37 +03:00
Greg V
1e66be9c45 FreeBSD: add ucontext.h to libc-test
It was picked up transitively on >10, but tests failed on 10
2020-07-06 15:31:37 +03:00
Andrew Walbran
51acd7f488 Android: Add various constants and functions.
In particular:
Add timerfd constants and functions, from sys/timerfd.h.
Add EFD_SEMAPHORE and group all EFD_ constants together.
Add sigtimedwait function, from signal.h.
Add missing fallocate constants and functions, from linux/falloc.h and fcntl.h.
Add xattr functions, from sys/xattr.h.
Add SCHED_ and SEEK_ constants, from linux/sched.h and bits/seek_constants.h.
Add rlimit functions, from sys/resource.h.
Add RENAME_ constants, from stdio.h.
Add ino64_t type, from sys/types.h.
2020-06-30 17:56:11 +01:00
Yuki Okushi
b6396caf31
Merge pull request #1792 from jasonbking/cmsg 2020-06-27 19:17:32 +09:00
Jason King
40c46f4306 Add ancillary socket data accessor functions for solarish OSes 2020-06-26 20:58:43 +00:00
Simon Wörner
4a9413ba54 added freebsd register structs 2020-06-22 17:33:09 +02:00
Patrick Mooney
b53ccb8740 illumos: Add eventfd support 2020-06-09 20:57:33 +00:00
Yuki Okushi
c6fb0f37ad
Run rustfmt 2020-06-02 20:37:34 +09:00
Yuki Okushi
a6920f9a5a
Use ctest2 to drop old dependencies 2020-06-02 01:10:08 +09:00