Commit Graph

577 Commits

Author SHA1 Message Date
Luca BRUNO b24265e1ab
Bump to 0.2.94
Changes:
 * Add kqueue1 to NetBSD
 * Add Android items from "sys/system_properties.h"
 * Add new header to the android header files list
 * Add dl_iterate_phdr to Android
 * Update dl_phdr_info definition to more closely match header files
 * linux: add syncfs(2)
 * Add macos clonefile functions
 * Add RLIM_NLIMITS constant as alias of RLIMIT_NLIMITS on linux_like
 * Add RLIM_NLIMITS on android
 * Unified Linux TCP socket options
2021-04-26 12:57:01 +00:00
Luca BRUNO 20543f3f24
linux: add syncfs(2)
This adds binding for `syncfs` on Linux, which is implemented by
all supported libraries.

Ref: https://man7.org/linux/man-pages/man2/syncfs.2.html
2021-04-23 09:40:14 +00:00
Nicolas Thery c8539f5bc6 Add macos clonefile functions 2021-04-17 12:58:32 +02:00
Benoît du Garreau 17464bee7c Add kqueue1 to NetBSD 2021-04-12 18:36:29 +02:00
K.J. Valencik ab1472eb08
Update dl_phdr_info definition to more closely match header files
Also, update tests to skip conflicts
2021-04-09 12:22:53 -04:00
K.J. Valencik 970fec9245
Add dl_iterate_phdr to Android 2021-04-08 17:41:36 -04:00
Guillaume Gomez 73200ceebd Add new header to the android header files list 2021-04-08 19:52:14 +02:00
Lu, Wangshan 4b9e959f96
Bump to 0.2.93 2021-04-06 17:53:34 +08:00
Yuki Okushi 3fae7e9ce7 Fix style 2021-04-06 10:10:29 +09:00
Sébastien Marie 08ec0d68e2 unbreak openbsd after #2109
several symbols added to semver regression tests in "unix" aren't defined on OpenBSD.
move these symbols in OS specific files.
2021-04-04 13:19:28 +00:00
bors 0a93b70496 Auto merge of #2109 - Thomasdezeeuw:issue_2104-regression_tests, r=JohnTitor
Add regression test infrastructure

Please the commit messages for details.

I still need to add lists for the following targets, but I got the major ones I think.

TODO:
* aarch64-unknown-hermit
* x86_64-unknown-hermit
* x86_64-pc-solaris
* x86_64-sun-solaris
* sparcv9-sun-solaris
* x86_64-fortanix-unknown-sgx
* x86_64-unknown-illumos
* asmjs-unknown-emscripten
* wasm32-unknown-emscripten
* wasm32-unknown-unknown
* wasm32-wasi
* Check symbols added after commit ed45c2649b.

TODO: add a bit to the contributing guide about adding to these lists.

Closes #2104.
2021-04-02 12:53:21 +00:00
Thomas de Zeeuw 418c48139b Output PASSED 1 tests in semver test
Testing on Android (in ci/runtest-android.rs) seems to depend on the
test outputting it was successful.
2021-04-02 13:24:28 +02:00
Thomas de Zeeuw ed1399a346 Fix semver test for x86_64-unknown-linux-gnux32 target 2021-04-02 12:33:28 +02:00
Thomas de Zeeuw 00f4b0fc37 Fix semver test for Linux mips musl targets
* mips-unknown-linux-musl
 * mipsel-unknown-linux-musl
2021-04-02 12:28:56 +02:00
Thomas de Zeeuw 321ac9d529 Fix semver test for Linux ARM targets
Fixes it for at least the following targets:
 * aarch64-unknown-linux-gnu
 * arm-linux-androideabi
 * arm-unknown-linux-gnueabihf
 * arm-unknown-linux-gnueabihf
 * arm-unknown-linux-musleabihf
2021-04-02 12:21:15 +02:00
Thomas de Zeeuw 9361be07d0 Fix semver test for asmjs-unknown-emscripten target 2021-04-02 12:20:50 +02:00
Guillaume Gomez 172771e8c6 Bump crate version to 0.2.92 2021-03-30 12:04:45 +02:00
Thomas de Zeeuw 8fb63e8c93 Fix semver lists for Linux using musl 2021-03-27 11:10:52 +01:00
Thomas de Zeeuw 60112163ce Support architecture environment specific semver lists
This allow lists like "linux-gnu-x86_64" which is only used for Linux,
using GNU libc on 64 bit x86.
2021-03-27 11:01:16 +01:00
Thomas de Zeeuw f8ba06be3a Add Fuchsia semver list 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw e0c8a6a69d Add OpenBSD semver list 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw dff7f65524 Add DragonFlyBSD semver list 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw 60b9fe9ff8 Fix NetBSD semver list for 32 bits 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw eb998bf44b Fix the semver list for 32 bit FreeBSD 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw aa1c8ea6ba Add Android semver lists
One would expect Android to include the Unix and Linux lists, as it's
Linux based. However because Android is missing too many definitions I
found it easier to create a fully separate list for Android
specifically.
2021-03-27 10:27:17 +01:00
Thomas de Zeeuw f18ba37144 Add Linux semver lists 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw 82f32fd447 Remove O_EXLOCK and O_SHLOCK from Unix semver list
Linux doesn't seem to have these.
2021-03-27 10:27:17 +01:00
Thomas de Zeeuw 016542e8db Create common Unix semver list
This currently includes are definitions available on Apple, FreeBSD,
NetBSD and Redox.
2021-03-27 10:27:17 +01:00
Thomas de Zeeuw 9e71659f57 Add README to semver directory 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw c36eff48ad Add NetBSD semver list 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw 2751674390 Add Redox semver list 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw 6384bbf48c Add FreeBSD semver list 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw 64950da005 Add semver list for Apple's iOS and macOS 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw c84bd4e915 Add Window semver list 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw c8d9470502 Add semver test infrastructure
This first step add the infrastructure to test if libc follows semantic
versioning.

In the build step it creates a test file which imports all functions,
constants, etc. that are expected to be public. This file is generated
from the files in the (not yet included) semver directory. These files
include the function and constants expected to be public per target
family, vendor, OS, etc.

See the do_semver function in the build file of libc-test for the
details.
2021-03-27 10:27:17 +01:00
Yuki Okushi 765cca1fe2 Bump to 0.2.91 2021-03-23 10:26:40 +09:00
Amanieu d'Antras c6e8f02a08 Bump to 0.2.90 2021-03-18 11:32:23 +00:00
Dominik Stolz 204fe259c6 Ignore syscalls added in Linux 5.9 or later in tests 2021-03-16 08:07:03 +01:00
Josh Triplett 0a9aec7baf CI: Add ARPHRD_ to kernel definitions 2021-03-15 16:33:35 -07:00
Josh Triplett 54e633ce8a CI: Consolidate and blanket-ignore kernel definitions on non-glibc
Skip definitions from the kernel on non-glibc Linux targets.
They're libc-independent, so we only need to check them on one
libc. We don't want to break CI if musl or another libc doesn't
have the definitions yet. (We do still want to check them on
every glibc target, though, as some of them can vary by
architecture.)
2021-03-15 16:33:35 -07:00
Josh Triplett 1a359cff89 Bump to 0.2.89 2021-03-15 11:52:17 -07:00
Dominik Stolz 3e0e58521a Ignore SYS_clone3 during musl tests 2021-03-15 00:22:44 +01:00
Noah 3f6b151eed
Skip uinput tests on musl+mips+ppc64+sparc64 2021-03-12 20:45:32 -06:00
Noah e45454f20d
Add structs from linux/uinput.h + a couple of input-related constants 2021-03-12 12:51:55 -06:00
Torbjørn Birch Moltu 3f62e51d24 Add cr_pid to FreeBSD xucred - an unreleased addition in FreeBSD 13
definition: https://svnweb.freebsd.org/base/head/sys/sys/ucred.h?view=markup#l85
manpage: https://www.freebsd.org/cgi/man.cgi?query=unix&sektion=0&manpath=FreeBSD+13-current&format=html

Continue comparing and hashing __cr_unused1 for backwards compatibility.
2021-03-08 19:37:01 +01:00
Yuki Okushi 9abcbd15de Bump up libc version to 0.2.88 2021-03-06 01:02:04 +09:00
Yuki Okushi b719be4150 Skip tests for `gettid` on musl
It requires musl 1.2.2 or later.
2021-03-05 01:45:03 +09:00
Yuki Okushi 1ebc29eb2e Add description metadata to libc-test 2021-03-02 19:22:52 +09:00
Yuki Okushi 5cfe0a237c Update some metadata on libc-test to publish 2021-03-02 15:16:12 +09:00
Dan Gohman 197d9227cb WASI: define `AT_FDCWD` and update to latest WASI libc
Update to the latest WASI libc, define `AT_FDCWD`, update the signature
for __wasilibc_find_relpath, and add declarations for various
`__wasilibc_` utility functions.
2021-02-18 14:07:17 -08:00