repo
stringclasses
1 value
pull_number
int64
237
4.09k
instance_id
stringlengths
19
20
issue_numbers
listlengths
1
2
base_commit
stringlengths
40
40
patch
stringlengths
290
47.4k
test_patch
stringlengths
196
263k
problem_statement
stringlengths
18
8.89k
hints_text
stringlengths
0
6.05k
created_at
stringlengths
20
20
version
stringclasses
2 values
environment_setup_commit
stringclasses
2 values
rust-lang/libc
4,091
rust-lang__libc-4091
[ "3689" ]
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
diff --git a/src/fuchsia/mod.rs b/src/fuchsia/mod.rs index c4c7e6544b21b..ce274f2261279 100644 --- a/src/fuchsia/mod.rs +++ b/src/fuchsia/mod.rs @@ -382,7 +382,7 @@ s! { } pub struct fd_set { - fds_bits: [::c_ulong; FD_SETSIZE / ULONG_SIZE], + fds_bits: [::c_ulong; FD_SETSIZE as usize / ULONG_...
diff --git a/libc-test/build.rs b/libc-test/build.rs index c4b344f41b028..6b3e6abb166c3 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2075,7 +2075,7 @@ fn test_android(target: &str) { "__system_property_wait" => true, // Added in API level 30, but tests use level 28. - ...
Missing function: aligned_alloc This function is part of the [C standard](https://en.cppreference.com/w/c/memory/aligned_alloc). I don't know the full set of targets that support it. - Linux: [glibc has it](https://www.gnu.org/software/libc/manual/html_node/Aligned-Memory-Blocks.html), and I found it in [musl](https:/...
2024-11-18T09:42:55Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
4,086
rust-lang__libc-4086
[ "3190", "3641" ]
7c64d5d10c86bb1b19edf2c02bd3965bb4c80343
diff --git a/build.rs b/build.rs index c8ffb7bf92ad2..e1c9b23c4617f 100644 --- a/build.rs +++ b/build.rs @@ -132,7 +132,7 @@ fn rustc_version_cmd(is_clippy_driver: bool) -> Output { cmd.arg("--version"); - let output = cmd.output().ok().expect("Failed to get rustc version"); + let output = cmd.output().e...
diff --git a/libc-test/build.rs b/libc-test/build.rs index ce2f75eb312aa..511e166d364ce 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -232,6 +232,7 @@ fn test_apple(target: &str) { "netinet/ip.h", "netinet/tcp.h", "netinet/udp.h", + "netinet6/in6_var.h", "os/cloc...
utmp function family missing on musl Hello, functions like getutxent, setutxent, endutxent, struct utmpx, etc. are missing from the musl implementation ( src/unix/linux_like/linux/musl/mod.rs ), even though those functions are implemented in musl (see https://git.musl-libc.org/cgit/musl/tree/include/utmpx.h ). As r...
Why is this trying to change O_LARGEFILE? @joshtriplett did you mean to ask this in the pull-request? @Ecordonnier Yes, thank you. These changes have been merged in, but have not been included in any subsequent releases: ``` diff --git a/src/unix/linux_like/linux/musl/mod.rs b/src/unix/linux_like/linux/musl/mod.rs...
2024-11-17T07:53:53Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
4,033
rust-lang__libc-4033
[ "4031" ]
3a0b0444d7206aa3feb30297c005597a960d0b33
diff --git a/src/unix/solarish/illumos.rs b/src/unix/solarish/illumos.rs index 121b5fa06fe7b..62a07f6279030 100644 --- a/src/unix/solarish/illumos.rs +++ b/src/unix/solarish/illumos.rs @@ -10,6 +10,19 @@ pub type lgrp_rsrc_t = ::c_int; pub type lgrp_affinity_t = ::c_int; s! { + pub struct aiocb { + pub ai...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 48f952f9f7c83..29763626b34d3 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -786,6 +786,7 @@ fn test_solarish(target: &str) { headers! { cfg: + "aio.h", "ctype.h", "dirent.h", "dlfcn.h", @@ -948,6 +...
API request: AIO methods for illumos & solaris I would like: * aiocb * aio_read * aio_write * aio_fsync * aio_error * aio_return * aio_cancel * SIGEV_PORT ... for illumos & solaris.
2024-11-13T13:00:37Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,966
rust-lang__libc-3966
[ "3688" ]
42d1000bc82fc608749f9df19f3d699d2b548ed6
diff --git a/README.md b/README.md index 395b94ce0c8f3..3d5b5ec583457 100644 --- a/README.md +++ b/README.md @@ -11,10 +11,14 @@ This crate exports all underlying platform types, functions, and constants under the crate root, so all items are accessible as `libc::foo`. The types and values of all the exported APIs ma...
diff --git a/libc-test/build.rs b/libc-test/build.rs index ca1301320b211..fb779daecc123 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -3746,6 +3746,9 @@ fn test_linux(target: &str) { if musl && ty == "fanout_args" { return true; } + if sparc64 && ty == "fanotify_event...
Add struct `fanotify_event_info_fid` Host triplet: `x86_64-unknown-linux-gnu` API struct is as follows: ```c struct fanotify_event_info_fid { struct fanotify_event_info_header hdr; __kernel_fsid_t fsid; unsigned char file_handle[0]; }; ``` Man page for more info: https://man7.org/linux/man-pages/man7...
2024-10-15T01:50:55Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,952
rust-lang__libc-3952
[ "3947" ]
b9e8477fa7c71408bdbc1eed9821af0783f97bdb
diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index 47b4bd36e6d02..3224ac8fef6e9 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -3843,6 +3843,7 @@ pub const TCP_INFO: ::c_int = 32; pub const TCP_CONGESTION: ::c_int ...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 75dcd14fc83be..b6472b4ea56a8 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2338,6 +2338,9 @@ fn test_freebsd(target: &str) { // base system anyway. "CTL_MAXID" | "KERN_MAXID" | "HW_MAXID" | "USER_MAXID" => true, + ...
CI fails on FreeBSD 15 for TCP_MAXPEAKRATE CI is currently failing on FreeBSD 15 because TCP_MAXPEAKRATE is unknown. That's because it was recently removed by this commit: https://github.com/freebsd/freebsd-src/commit/87fbd9fc7fc5f8d79fe5e3dcd13ad02b11a67ef0 . That, and other constants removed by the same commit, sho...
2024-09-29T19:56:41Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,950
rust-lang__libc-3950
[ "3947" ]
09d7aa0d84f9b87d1a8bcb96dc5727282084397d
diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index 3cf1fc1aeeef3..e7239fd965e07 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -3779,7 +3779,6 @@ pub const TCP_INFO: ::c_int = 32; pub const TCP_CONGESTION: ::c_int ...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 938294717eee3..743f9f28404db 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2306,6 +2306,10 @@ fn test_freebsd(target: &str) { | "PWAIT" | "PLOCK" | "PPAUSE" | "PRI_MIN_TIMESHARE" | "PUSER" | "PI_AV" | "PI_NET" | "PI_DISK...
CI fails on FreeBSD 15 for TCP_MAXPEAKRATE CI is currently failing on FreeBSD 15 because TCP_MAXPEAKRATE is unknown. That's because it was recently removed by this commit: https://github.com/freebsd/freebsd-src/commit/87fbd9fc7fc5f8d79fe5e3dcd13ad02b11a67ef0 . That, and other constants removed by the same commit, sho...
2024-09-29T18:50:20Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,934
rust-lang__libc-3934
[ "3748" ]
ffb7f0c05718643d06bc20b971cedf20d6928d93
diff --git a/src/unix/newlib/espidf/mod.rs b/src/unix/newlib/espidf/mod.rs index a73e85315971f..3a4ce49c5c217 100644 --- a/src/unix/newlib/espidf/mod.rs +++ b/src/unix/newlib/espidf/mod.rs @@ -109,6 +109,8 @@ extern "C" { pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t; + ...
diff --git a/libc-test/semver/espidf.txt b/libc-test/semver/espidf.txt new file mode 100644 index 0000000000000..74f0d0cb5266d --- /dev/null +++ b/libc-test/semver/espidf.txt @@ -0,0 +1,49 @@ +AF_INET6 +AF_UNIX +FIONBIO +MSG_CTRUNC +MSG_DONTROUTE +MSG_DONTWAIT +MSG_EOR +MSG_MORE +MSG_NOSIGNAL +MSG_OOB +MSG_PEEK +MSG_TR...
Hostname on xtensa esp-idf esp32s3 Hi, I need to use hostname_max and the function gethostname for xtensa-esp32s3-espidf but they're not supported for this target. Can anyone give me any suggestion or help? Thanks
PRs are welcome here! Take a look at https://github.com/rust-lang/libc/blob/1ffe0bde929a43ce3d25a8f08b9f95bde8d3e5d8/CONTRIBUTING.md, it should be pretty easy to add the API on those platforms. I'm interested in picking this up. As far as I can tell, `libc` doesn't currently support that target - support for it in rust...
2024-09-18T22:55:32Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,885
rust-lang__libc-3885
[ "3760" ]
5431bdb756c560b21bce18ea7dff72a2aad9975c
diff --git a/src/unix/linux_like/linux/musl/mod.rs b/src/unix/linux_like/linux/musl/mod.rs index 1a93c39fd3a0a..c99ac476e5c82 100644 --- a/src/unix/linux_like/linux/musl/mod.rs +++ b/src/unix/linux_like/linux/musl/mod.rs @@ -667,6 +667,12 @@ pub const PTRACE_PEEKSIGINFO: ::c_int = 0x4209; pub const PTRACE_GETSIGMASK: ...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 9560e07c8cf7e..b9df07b523aed 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -4311,6 +4311,9 @@ fn test_linux(target: &str) { // FIXME: function pointers changed since Ubuntu 23.10 "strtol" | "strtoll" | "strtoul" | "strtou...
preadv2 is not supported on musl libc The preadv2 function is present on -gnu target, however when compiling on -musl target, which is surprising. The jobserver-rs would like to use it to optimize it's performance rust-lang/jobserver-rs#90 (the try_acquire optimization has shipped once but reverted, so I opened anot...
2024-08-29T10:34:24Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,882
rust-lang__libc-3882
[ "3704" ]
5431bdb756c560b21bce18ea7dff72a2aad9975c
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 84e725a91cb9d..cf71443d84ddb 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -4147,7 +4147,6 @@ pub const IPV6_RECVHOPLIMIT: ::c_int = 37; pub const IPV6_PKTINFO: ::c_int = 46; pub const IPV6_HOPLIMIT: ::c_int = 47; pu...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 9560e07c8cf7e..d5f753c0d0d8f 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -3839,6 +3839,10 @@ fn test_linux(target: &str) { if name.starts_with("NI_IDN") { return true; } + // FIXME: Requires ...
Add IPV6_DONTFRAG socket option on OpenBSD * target triple: x86_64-unknown-openbsd * Header file: https://github.com/openbsd/src/blob/35659bf2453d7eeb12fd24089cf668ca13361c18/sys/netinet6/in6.h#L330C9-L330C24 According to the git history this symbol has been there for a very long time, so there is probably no need ...
2024-08-29T09:31:41Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,848
rust-lang__libc-3848
[ "3217" ]
0e6afd534ed7a0406e9dfc9242c2c9370a5b8d05
diff --git a/src/unix/bsd/freebsdlike/freebsd/arm.rs b/src/unix/bsd/freebsdlike/freebsd/arm.rs index af3c8a7cf6f6c..eb90f3f9030e7 100644 --- a/src/unix/bsd/freebsdlike/freebsd/arm.rs +++ b/src/unix/bsd/freebsdlike/freebsd/arm.rs @@ -5,6 +5,8 @@ pub type wchar_t = u32; pub type time_t = i64; pub type suseconds_t = i32...
diff --git a/libc-test/semver/freebsd-x86_64.txt b/libc-test/semver/freebsd-x86_64.txt index be73d1f7290fe..14ddc25a1b254 100644 --- a/libc-test/semver/freebsd-x86_64.txt +++ b/libc-test/semver/freebsd-x86_64.txt @@ -13,8 +13,6 @@ _MC_HASSEGS fpreg fpreg32 max_align_t -mcontext_t reg reg32 -ucontext_t xmmreg diff...
ucontext_t is missing on aarch64-unknown-freebsd 2e3999ddf0fa added `mcontext_t` but not `ucontext_t`. FreeBSD `ucontext_t` is machine-independent but libc crate limits it by `target_arch`. See [ucontext_t definition](https://github.com/freebsd/freebsd-src/blob/releng/13.2/sys/sys/_ucontext.h) vs. [mcontext_t defini...
Thanks for the report, feel free to put up a PR for this!
2024-08-17T18:04:05Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,846
rust-lang__libc-3846
[ "1618" ]
d8ff07b336fd28c58088b718fee4f0f350b0f733
diff --git a/src/unix/bsd/apple/b32/mod.rs b/src/unix/bsd/apple/b32/mod.rs index 4707fa4c99991..c28ad931b4c3c 100644 --- a/src/unix/bsd/apple/b32/mod.rs +++ b/src/unix/bsd/apple/b32/mod.rs @@ -54,6 +54,11 @@ s_no_extra_traits! { __sig: c_long, __opaque: [::c_char; 36] } + + pub struct pthread_...
diff --git a/libc-test/semver/apple.txt b/libc-test/semver/apple.txt index 1b548b594a2cb..ec3791acbfa99 100644 --- a/libc-test/semver/apple.txt +++ b/libc-test/semver/apple.txt @@ -1117,16 +1117,29 @@ PROC_CSM_TECS PROC_PIDTASKALLINFO PROC_PIDTASKINFO PROC_PIDTHREADINFO +PTHREAD_CANCEL_ASYNCHRONOUS +PTHREAD_CANCEL_D...
Add posix threads support for macOS Can we add a possibility to use POSIX threads for the macOS? It seems to be not straightforward to do myself - all the code is mixed across many files. Thanks! P.S. Maybe it is even better if we share all the POSIX-code among several targets which support it. Right now, for exampl...
PRs welcome.
2024-08-17T08:24:54Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,844
rust-lang__libc-3844
[ "3566" ]
6eddffbaf0de2ade96f780d940c18168bd281bc6
diff --git a/src/unix/linux_like/android/mod.rs b/src/unix/linux_like/android/mod.rs index 97791e6b5a72e..fa291a3694adb 100644 --- a/src/unix/linux_like/android/mod.rs +++ b/src/unix/linux_like/android/mod.rs @@ -2558,6 +2558,14 @@ pub const NFT_CT_PROTO_DST: ::c_int = 12; pub const NFT_CT_LABELS: ::c_int = 13; pub c...
diff --git a/libc-test/semver/android.txt b/libc-test/semver/android.txt index f2f41be9e83d3..c46c11d75cd9f 100644 --- a/libc-test/semver/android.txt +++ b/libc-test/semver/android.txt @@ -1500,11 +1500,16 @@ NFT_CMP_LT NFT_CMP_LTE NFT_CMP_NEQ NFT_CONTINUE +NFT_CT_AVGPKT NFT_CT_BYTES NFT_CT_DIRECTION NFT_CT_DST +...
Add missing definitions from linux/include/uapi/linux/netfilter/nf_tables.h <!-- Please provide the below information: * the target triple * link to the documentation of the API showing the type signatures, how to use it, etc. In general, just please consider that the people who can help you are all very bu...
Feel free I would say !
2024-08-16T21:09:24Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,843
rust-lang__libc-3843
[ "3689" ]
fc282833449475d9e7a4a56b9caa1f3e938435b5
diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 8984e097b968c..7b39e4784f96d 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -896,6 +896,7 @@ extern "C" { pub fn pathconf(path: *const c_char, name: ::c_int) -> c_long; pub fn pipe(fds: *mut ::c_int) -> ::c_int; pub fn posix_memalign(memptr: *mu...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 16964b75e1d62..26b1c550de22c 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -1936,6 +1936,9 @@ fn test_android(target: &str) { // Added in API level 28, but some tests use level 24. "fread_unlocked" | "fwrite_unlocked" | "...
Missing function: aligned_alloc This function is part of the [C standard](https://en.cppreference.com/w/c/memory/aligned_alloc). I don't know the full set of targets that support it. - Linux: [glibc has it](https://www.gnu.org/software/libc/manual/html_node/Aligned-Memory-Blocks.html), and I found it in [musl](https:/...
2024-08-16T20:39:05Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,831
rust-lang__libc-3831
[ "3696" ]
bc3c8cb3d32a1df087311ab23af6287098d5fc11
diff --git a/src/unix/bsd/netbsdlike/mod.rs b/src/unix/bsd/netbsdlike/mod.rs index 35a8c0255be69..29f54b92cd48b 100644 --- a/src/unix/bsd/netbsdlike/mod.rs +++ b/src/unix/bsd/netbsdlike/mod.rs @@ -92,6 +92,11 @@ s! { pub piod_addr: *mut ::c_void, pub piod_len: ::size_t, } + + pub struct mmsghd...
diff --git a/libc-test/semver/openbsd.txt b/libc-test/semver/openbsd.txt index afb8afa7f50f0..3833884c855c5 100644 --- a/libc-test/semver/openbsd.txt +++ b/libc-test/semver/openbsd.txt @@ -1131,6 +1131,7 @@ mknodat mkostemp mkostemps mkstemps +mmsghdr mount_info mrand48 msdosfs_args @@ -1210,6 +1211,7 @@ readlink...
Add `recvmmsg` and `sendmmsg` on OpenBSD (*-unknown-openbsd) `recvmmsg` is supported on OpenBSD since OpenBSD 7.2: https://www.openbsd.org/72.html Same for `sendmmsg`. Documentation is here: - https://man.openbsd.org/OpenBSD-7.2/recvmmsg - https://man.openbsd.org/OpenBSD-7.2/sendmmsg Related PR made at the tim...
2024-08-15T21:29:19Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,771
rust-lang__libc-3771
[ "3767" ]
ce2ccd5c624eaf2aa05a1f692a167cf4a7def0f3
diff --git a/src/unix/linux_like/linux/gnu/mod.rs b/src/unix/linux_like/linux/gnu/mod.rs index 4d235ba0ad951..6d5deb6b24abd 100644 --- a/src/unix/linux_like/linux/gnu/mod.rs +++ b/src/unix/linux_like/linux/gnu/mod.rs @@ -826,6 +826,9 @@ pub const TMP_MAX: ::c_uint = 238328; pub const FOPEN_MAX: ::c_uint = 16; pub con...
diff --git a/libc-test/semver/linux-gnu.txt b/libc-test/semver/linux-gnu.txt index 0c0d77888e4d5..79c051f4c7c50 100644 --- a/libc-test/semver/linux-gnu.txt +++ b/libc-test/semver/linux-gnu.txt @@ -511,6 +511,9 @@ XSK_UNALIGNED_BUF_ADDR_MASK XDP_PKT_CONTD XENFS_SUPER_MAGIC XFS_SUPER_MAGIC +_CS_GNU_LIBC_VERSION +_CS_G...
Missing POSIX confstr and _CS_* symbols on Linux. Apple Darwin provides the POSIX standard `confstr(3)` function and associated `_CS_*` symbols. Tested on Darwin and is working. Requesting the same for Linux. Quoting src/unix/bsd/apple/mod.rs: ``` // `confstr` keys (only the values guaranteed by `man confstr`)...
Would you be pleased to create a PR ? @devnexen I gave it a shot with #3771, but I do not understand why the arm test is failing, so I'm a bit stuck.
2024-07-11T00:25:54Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,762
rust-lang__libc-3762
[ "3760" ]
251a968b712a2c274f66605095d5ee820f4243c2
diff --git a/src/unix/linux_like/linux/musl/mod.rs b/src/unix/linux_like/linux/musl/mod.rs index 36d8c20381432..699c8181f8466 100644 --- a/src/unix/linux_like/linux/musl/mod.rs +++ b/src/unix/linux_like/linux/musl/mod.rs @@ -671,6 +671,12 @@ pub const PTRACE_PEEKSIGINFO: ::c_int = 0x4209; pub const PTRACE_GETSIGMASK: ...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 30af90fc8844c..a847f46448938 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -4307,6 +4307,9 @@ fn test_linux(target: &str) { // FIXME: function pointers changed since Ubuntu 23.10 "strtol" | "strtoll" | "strtoul" | "strtou...
preadv2 is not supported on musl libc The preadv2 function is present on -gnu target, however when compiling on -musl target, which is surprising. The jobserver-rs would like to use it to optimize it's performance rust-lang/jobserver-rs#90 (the try_acquire optimization has shipped once but reverted, so I opened anot...
2024-06-28T19:20:10Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,745
rust-lang__libc-3745
[ "3730" ]
e209061f6eaf5a3aa6af70d247c76b16462f27f6
diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index a2942913b95d1..53f1f7adcaffd 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -5534,6 +5534,12 @@ extern "C" { idx1: ::c_ulong, idx2: ::c_ulong, ...
diff --git a/libc-test/build.rs b/libc-test/build.rs index f2c6c3ccddf5a..09dc440400590 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2489,6 +2489,8 @@ fn test_freebsd(target: &str) { cfg.skip_fn(move |name| { // skip those that are manually verified match name { + // Th...
Missing execvpe on FreeBSD >= 14.1 Target: `x86_64-unknown-freebsd` API: [GNU-compatible](https://github.com/freebsd/freebsd-src/commit/0667d0e0e365) Test case: [nix](https://github.com/nix-rust/nix/blob/1939f922431c2009cc726a9ff260e978a2b15fd7/src/unistd.rs#L885), [pager](https://gitlab.com/imp/pager-rs/-/commit/6e...
2024-06-09T09:46:40Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,716
rust-lang__libc-3716
[ "3704" ]
1333dcfd8df024a16b9309748d3fc4b8bc83b666
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 9a672fae7ee68..84143e1986bfb 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -4153,7 +4153,6 @@ pub const IPV6_RECVHOPLIMIT: ::c_int = 37; pub const IPV6_PKTINFO: ::c_int = 46; pub const IPV6_HOPLIMIT: ::c_int = 47; pu...
diff --git a/libc-test/semver/netbsd.txt b/libc-test/semver/netbsd.txt index 353b1e7356ff5..35d64153f2650 100644 --- a/libc-test/semver/netbsd.txt +++ b/libc-test/semver/netbsd.txt @@ -468,6 +468,7 @@ IPTOS_ECN_ECT0 IPTOS_ECN_ECT1 IPTOS_ECN_MASK IPTOS_ECN_NOTECT +IPV6_DONTFRAG IPV6_JOIN_GROUP IPV6_LEAVE_GROUP IPV...
Add IPV6_DONTFRAG socket option on OpenBSD * target triple: x86_64-unknown-openbsd * Header file: https://github.com/openbsd/src/blob/35659bf2453d7eeb12fd24089cf668ca13361c18/sys/netinet6/in6.h#L330C9-L330C24 According to the git history this symbol has been there for a very long time, so there is probably no need ...
You re in the luck, seems [it is already there](https://github.com/rust-lang/libc/blob/libc-0.2/src/unix/bsd/netbsdlike/mod.rs#L504). Huh, totally true. I'm afraid I mixed up the symbol, I am looking for IPV6_DONTFRAG: https://github.com/openbsd/src/blob/35659bf2453d7eeb12fd24089cf668ca13361c18/sys/netinet6/in6.h#L...
2024-05-21T19:23:49Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,714
rust-lang__libc-3714
[ "3711" ]
113efbf2f2c01bfc125807e85608ae1d9b6b6865
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 54735b3f9801b..9c12439e54cbd 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -4914,22 +4914,11 @@ pub const XATTR_SHOWCOMPRESSION: ::c_int = 0x0020; pub const NET_RT_IFLIST2: ::c_int = 0x0006; // net/route.h -pub cons...
diff --git a/libc-test/semver/dragonfly.txt b/libc-test/semver/dragonfly.txt index b9ccffb681ad3..e01fe55d72ff3 100644 --- a/libc-test/semver/dragonfly.txt +++ b/libc-test/semver/dragonfly.txt @@ -873,6 +873,31 @@ RLIMIT_STACK RLIMIT_VMEM RLIM_INFINITY RLIM_NLIMITS +RTF_XRESOLVE +RTF_LLINFO +RTF_PROTO3 +RTF_PINNED +...
Missing RTF_*, RTA_*, RTAX_*, RTM_* definitions on BSDs Target: `x86_64-unknown-dragonfly`, `x86_64-unknown-freebsd`, `x86_64-unknown-netbsd`, `x86_64-unknown-openbsd` API: [BSD 4.3 Reno](https://github.com/dspinellis/unix-history-repo/blob/BSD-4_3_Reno/usr/src/sys/net/route.h) (historic), [DragonFly](https://github.c...
2024-05-19T16:09:04Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,695
rust-lang__libc-3695
[ "3688" ]
2899529e27b303af0029624813823fd89a7ba605
diff --git a/src/unix/linux_like/linux/gnu/mod.rs b/src/unix/linux_like/linux/gnu/mod.rs index a7dd919399fd9..5a350b7a57d84 100644 --- a/src/unix/linux_like/linux/gnu/mod.rs +++ b/src/unix/linux_like/linux/gnu/mod.rs @@ -491,6 +491,17 @@ s! { pub tcpi_rcv_space: u32, pub tcpi_total_retrans: u32, ...
diff --git a/libc-test/build.rs b/libc-test/build.rs index eeb119e9549a9..da12acade8f00 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -3700,6 +3700,9 @@ fn test_linux(target: &str) { if musl && ty == "fanout_args" { return true; } + if sparc64 && ty == "fanotify_event...
Add struct `fanotify_event_info_fid` Host triplet: `x86_64-unknown-linux-gnu` API struct is as follows: ```c struct fanotify_event_info_fid { struct fanotify_event_info_header hdr; __kernel_fsid_t fsid; unsigned char file_handle[0]; }; ``` Man page for more info: https://man7.org/linux/man-pages/man7...
2024-05-11T13:19:32Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,690
rust-lang__libc-3690
[ "3608", "3677" ]
76462771b6f8a6889ba6becadb53418df5515370
diff --git a/src/unix/linux_like/android/mod.rs b/src/unix/linux_like/android/mod.rs index ce8e9782c49a0..fb0b06701507c 100644 --- a/src/unix/linux_like/android/mod.rs +++ b/src/unix/linux_like/android/mod.rs @@ -48,6 +48,10 @@ pub type Elf64_Xword = u64; pub type eventfd_t = u64; +// these structs sit behind a he...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 2b15c958d2d51..f8d797f126736 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -1613,6 +1613,7 @@ fn test_android(target: &str) { "sched.h", "semaphore.h", "signal.h", + "spawn.h", ...
[libc-0.2] `posix_spawn_file_actions_t` cannot be used on Linux after #3602 We found an issue when updating ferrocene's libc submodule (ferrocene/ferrocene#356) to revision 947a1855124bdd13029d322ae6ab2b4f0451db9b . the only change included in our libc update was PR #3602 . when building stage 2 of libstd to x86_64-...
@JohnTitor: This is blocking [updating `libc` in the standard library](https://github.com/rust-lang/rust/pull/124560), specifically because Cargo build scripts seem to break. The problematic PR has been reverted in https://github.com/rust-lang/libc/pull/3678. Note that #3608 exists since 0.2.153, #3678 just fixes #3677...
2024-05-09T14:02:03Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,617
rust-lang__libc-3617
[ "3611" ]
7d7151c51285bf238d2d02dc736c64b3c6dfbcc8
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index ea19b71366cf8..d19c0e9dd9cea 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -37,6 +37,8 @@ pub type rusage_info_t = *mut ::c_void; pub type vm_offset_t = ::uintptr_t; pub type vm_size_t = ::uintptr_t; pub type vm_addr...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 29636554bd5e3..126fd3bd763bc 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -213,6 +213,7 @@ fn test_apple(target: &str) { "netinet/ip.h", "netinet/tcp.h", "netinet/udp.h", + "netinet6/in6_var.h", "os/lock...
Why in6_ifreq does not exist on macOS <!-- Please provide the below information: * the target triple * link to the documentation of the API showing the type signatures, how to use it, etc. In general, just please consider that the people who can help you are all very busy, they will be helping you in their ...
2024-03-10T23:14:34Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,604
rust-lang__libc-3604
[ "3598" ]
6f47f51387d88d8f394d2a4ca9f1d1bbe1f9d91c
diff --git a/src/unix/linux_like/android/b32/mod.rs b/src/unix/linux_like/android/b32/mod.rs index 1f4f796f2a94a..aa29267f9db50 100644 --- a/src/unix/linux_like/android/b32/mod.rs +++ b/src/unix/linux_like/android/b32/mod.rs @@ -9,6 +9,7 @@ pub type sigset_t = ::c_ulong; pub type socklen_t = i32; pub type time64_t = ...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 1a72e195f23c4..7b3aa70a406d9 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -1913,7 +1913,7 @@ fn test_android(target: &str) { "__system_property_wait" => true, // Added in API level 30, but tests use level 28. - ...
memfd_create on android api level 30 and above <!-- Please provide the below information: * the target triple * link to the documentation of the API showing the type signatures, how to use it, etc. In general, just please consider that the people who can help you are all very busy, they will be helping you ...
2024-02-29T20:06:40Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,583
rust-lang__libc-3583
[ "3577" ]
3d0b15bbcc21d13219124cd74e2ff2d652f2f392
diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index eea0fed6a08b5..125a4129ef61f 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -27,6 +27,8 @@ pub type Elf32_Half = u16; pub type Elf32_Word = u32; pub type Elf32_Off = u32; pub type Elf32_Add...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 7d3dfb88e1221..33c9dd59cf911 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -3532,6 +3532,13 @@ fn test_linux(target: &str) { }); cfg.skip_type(move |ty| { + // FIXME: very recent additions to musl, not yet released. + if ...
Missing Elf64_Rela type <!-- Please provide the below information: * the target triple * link to the documentation of the API showing the type signatures, how to use it, etc. In general, just please consider that the people who can help you are all very busy, they will be helping you in their free time, the...
2024-02-13T19:53:29Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,526
rust-lang__libc-3526
[ "3097" ]
b55a097c9354b043df6c5e93ceb11491f479ed3f
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 2e7827231e65f..d4d39b9419ece 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -6492,22 +6492,6 @@ cfg_if! { } } -// These require a dependency on `libiconv`, and including this when built as -// part of `std` means...
diff --git a/libc-test/semver/apple.txt b/libc-test/semver/apple.txt index ce9c6097bbb88..e33b84e746769 100644 --- a/libc-test/semver/apple.txt +++ b/libc-test/semver/apple.txt @@ -1951,9 +1951,6 @@ getxattr glob glob_t globfree -iconv -iconv_close -iconv_open iconv_t id_t idtype_t
Hide `iconv` functions on Apple devices behind a feature flag See #2870 and #2944 for context. I believe the comment in the code explains the changes well enough, but if you'd like me to add a description to the commit as well (or adjust any wording etc.), let me know.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @JohnTitor (or someone else) soon. Please see [the contribution instructions](https://github.com/rust-lang/libc/blob/master/CONTRIBUTING.md) for more information. What would be the best path forward for ...
2024-01-07T19:37:07Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,489
rust-lang__libc-3489
[ "1592" ]
bb4eae618a73787c6208dd7c714ea0505f1195d0
diff --git a/.github/workflows/bors.yml b/.github/workflows/bors.yml index 77f236c033e07..6ecf7c83ffe74 100644 --- a/.github/workflows/bors.yml +++ b/.github/workflows/bors.yml @@ -73,12 +73,10 @@ jobs: ARCH_BITS: 64 ARCH: x86_64 - target: x86_64-pc-windows-msvc - # Dis...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 3b50438c6c672..7f4778ee1f113 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -618,6 +618,7 @@ fn test_openbsd(target: &str) { fn test_windows(target: &str) { assert!(target.contains("windows")); let gnu = target.contains("gnu"); + let ...
i686-pc-windows-gnu broken on CI The i686-pc-windows-gnu target has been disabled on CI because it fails with the following segmentation fault: ``` error: test failed, to rerun pass '--test main' Caused by: process didn't exit successfully: `D:\a\1\s\target\i686-pc-windows-gnu\debug\deps\main-65866843958a68e...
<del>Latest nightly has fix for i686 miscompilation: https://github.com/rust-lang/rust/pull/66318 Can you retry the build?</del> It doesn't help. Hopefully useful: ``` (lldb) r Process 11012 launched: 'D:\msys64\tmp\libc\target\i686-pc-windows-gnu\debug\deps\main-fc7d8e49f1073eac.exe' (i686) RUNNING ALL TESTS Pr...
2023-12-19T12:42:19Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,486
rust-lang__libc-3486
[ "3485" ]
05d807fa5b997ed3bf67e0519f5d60f27d6175e2
diff --git a/src/unix/linux_like/linux/gnu/mod.rs b/src/unix/linux_like/linux/gnu/mod.rs index 3ee3d62667956..9af519e9077df 100644 --- a/src/unix/linux_like/linux/gnu/mod.rs +++ b/src/unix/linux_like/linux/gnu/mod.rs @@ -3,6 +3,7 @@ pub type __priority_which_t = ::c_uint; pub type __rlimit_resource_t = ::c_uint; pub ...
diff --git a/libc-test/build.rs b/libc-test/build.rs index a9d04ca81cc15..3b50438c6c672 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -3406,6 +3406,7 @@ fn test_linux(target: &str) { headers! { cfg: "asm/mman.h", + [gnu]: "linux/aio_abi.h", "linux/can.h", "l...
request impl the `io_submit` binding. <!-- Please provide the below information: * the target triple * link to the documentation of the API showing the type signatures, how to use it, etc. In general, just please consider that the people who can help you are all very busy, they will be helping you in their ...
2023-12-18T13:45:39Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,483
rust-lang__libc-3483
[ "3459" ]
ccdae50206ce9c64c308200c9976fd7b470e6ede
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index c7169a2274769..7d27777232842 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -5604,12 +5604,6 @@ extern "C" { pub fn asctime(tm: *const ::tm) -> *mut ::c_char; pub fn ctime(clock: *const time_t) -> *mut ::c_char...
diff --git a/libc-test/semver/apple.txt b/libc-test/semver/apple.txt index a3e2161ab9ee1..5a34303a157fc 100644 --- a/libc-test/semver/apple.txt +++ b/libc-test/semver/apple.txt @@ -2225,6 +2225,7 @@ statfs strcasecmp strcasestr strftime +strftime_l strncasecmp strndup strptime diff --git a/libc-test/semver/dragon...
Missing strftime on BSDs Target: `x86_64-unknown-dragonfly`, `x86_64-unknown-freebsd`, `x86_64-unknown-netbsd`, `x86_64-unknown-openbsd` API: [DragonFly](https://man.dragonflybsd.org/?command=strftime&section=3), [FreeBSD](https://man.netbsd.org/strftime.3), [NetBSD](https://man.freebsd.org/strftime/3), [OpenBSD](http...
2023-12-16T06:27:26Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,478
rust-lang__libc-3478
[ "3460" ]
fe5fe49b7d6d62ea5e7a4170d1a602c443cd6f07
diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index b763ab6261bb9..4e513364a1a1a 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -509,7 +509,8 @@ s! { pub svm_reserved1: ::c_ushort, pub svm_port: ::c_uint, pub svm_cid:...
diff --git a/libc-test/build.rs b/libc-test/build.rs index cb28758ad507f..0a1ae705e5863 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -4237,6 +4237,8 @@ fn test_linux(target: &str) { // Linux >= 5.11 tweaked the `svm_zero` field of the `sockaddr_vm` struct. // https://github.com/torvalds...
Missing support for `sockaddr_vm`'s `svm_flags` <!-- Please provide the below information: * the target triple * link to the documentation of the API showing the type signatures, how to use it, etc. In general, just please consider that the people who can help you are all very busy, they will be helping you...
2023-12-13T20:06:29Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,426
rust-lang__libc-3426
[ "3403" ]
bbd3e20e45efe402de818256fe781121ffe3a3c3
diff --git a/src/unix/bsd/netbsdlike/mod.rs b/src/unix/bsd/netbsdlike/mod.rs index a787ac6db8553..07dc39be54e36 100644 --- a/src/unix/bsd/netbsdlike/mod.rs +++ b/src/unix/bsd/netbsdlike/mod.rs @@ -646,6 +646,10 @@ pub const TIOCM_RI: ::c_int = TIOCM_RNG; pub const TIMER_ABSTIME: ::c_int = 1; +// sys/reboot.h + +pu...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 05ec059bc94c4..32867523aa883 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -518,6 +518,7 @@ fn test_openbsd(target: &str) { "util.h", "ufs/ufs/quota.h", "pthread_np.h", + "sys/reboot.h", "sys/syscall.h", ...
reboot api for openbsd on openbsd 7.4 trying to build the `nix` crate reboot feature. missing a bunch of stuff from libc. https://man.openbsd.org/reboot.2 can it be added please for amd64? ``` error[E0425]: cannot find value `RB_HALT_SYSTEM` in crate `libc` --> /nix/src/sys/reboot.rs:17:9 | 17 | ...
Would you like to file a PR for these missing symbols? Then after a version of libc with these symbols included is released, we can add it to Nix :) @SteveLauC yes but i wouldnt know where to start with it. so open the issue in case someone does and wants to help in the meantime Feel free to open a PR, it s mostly a ca...
2023-11-07T21:31:40Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,404
rust-lang__libc-3404
[ "3329" ]
77a5c7e160ccfb0b6a64ecd80522d5949fed1951
diff --git a/src/unix/linux_like/android/mod.rs b/src/unix/linux_like/android/mod.rs index beffc8c0969d0..98a9d9b2b8448 100644 --- a/src/unix/linux_like/android/mod.rs +++ b/src/unix/linux_like/android/mod.rs @@ -2745,6 +2745,7 @@ pub const ALG_SET_IV: ::c_int = 2; pub const ALG_SET_OP: ::c_int = 3; pub const ALG_SET...
diff --git a/libc-test/build.rs b/libc-test/build.rs index d2b2a4d587de5..cd1750d118ec0 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -1863,7 +1863,8 @@ fn test_android(target: &str) { | "NDA_NDM_FLAGS_MASK" | "NDTPA_INTERVAL_PROBE_TIME_MS" | "NFQA_UNSPEC" - ...
Support for ALG_SET_KEY_BY_KEY_SERIAL for af_alg sockets For Linux platforms, support for using the Kernel keyring as a key source for `af_alg` calls to the crypto API was added in v6.1: https://lkml.org/lkml/2022/10/4/1014 https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/if_alg.h#L55 https://docs...
2023-10-24T18:13:20Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,400
rust-lang__libc-3400
[ "3397" ]
df3f7c1fa899839d4cbd4e969ce9b4d508e6d4d0
diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs index de5ec3863e717..ac79b9f45ac4e 100644 --- a/src/unix/bsd/netbsdlike/netbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs @@ -60,6 +60,39 @@ impl siginfo_t { self.si_addr } + pub unsafe fn si_code(&self...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 2f993486ef311..59d32513dc0e7 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -638,7 +638,7 @@ fn test_windows(target: &str) { // Windows uppercase structs don't have `struct` in front: t if is_struct => { - ...
siginfo_t: si_pid, si_status on OpenBSD/NetBSD POSIX defines the following fields on `siginfo_t` [link](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html): ``` int si_signo Signal number. int si_code Signal code. int si_errno If non-zero, an errno value as...
2023-10-21T19:49:49Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,394
rust-lang__libc-3394
[ "3392" ]
df3f7c1fa899839d4cbd4e969ce9b4d508e6d4d0
diff --git a/src/unix/bsd/freebsdlike/dragonfly/mod.rs b/src/unix/bsd/freebsdlike/dragonfly/mod.rs index b3a5be4494543..6ade7949afb0f 100644 --- a/src/unix/bsd/freebsdlike/dragonfly/mod.rs +++ b/src/unix/bsd/freebsdlike/dragonfly/mod.rs @@ -1678,6 +1678,12 @@ extern "C" { pub fn dirname(path: *mut ::c_char) -> *...
diff --git a/libc-test/semver/dragonfly.txt b/libc-test/semver/dragonfly.txt index 08d7124c16f3f..f63e2bf9112b8 100644 --- a/libc-test/semver/dragonfly.txt +++ b/libc-test/semver/dragonfly.txt @@ -1320,6 +1320,8 @@ getitimer getlastlogx getline getloadavg +getmntinfo +getmntvinfo getnameinfo getopt_long getpeerei...
Missing getmnt*info on DragonFly - Target: `x86_64-unknown-dragonfly` - API: [getmntinfo(3)](https://man.dragonflybsd.org/?command=getmntinfo&section=3) (same API as [FreeBSD](https://man.freebsd.org/getmntinfo/3) and [OpenBSD](https://man.openbsd.org/getmntinfo.3)) and [getmntvinfo(3)](https://man.dragonflybsd.org/?c...
2023-10-18T18:28:38Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,391
rust-lang__libc-3391
[ "3387" ]
df3f7c1fa899839d4cbd4e969ce9b4d508e6d4d0
diff --git a/src/unix/linux_like/linux/gnu/mod.rs b/src/unix/linux_like/linux/gnu/mod.rs index 175a49cd6696c..5cb8eec4bebec 100644 --- a/src/unix/linux_like/linux/gnu/mod.rs +++ b/src/unix/linux_like/linux/gnu/mod.rs @@ -1029,7 +1029,17 @@ pub const STATX_ATTR_DAX: ::c_int = 0x00200000; pub const SOMAXCONN: ::c_int ...
diff --git a/libc-test/build.rs b/libc-test/build.rs index ffb972cb4145e..2f9d894b19318 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -3862,6 +3862,9 @@ fn test_linux(target: &str) { // FIXME: Requires more recent kernel headers "HWTSTAMP_TX_ONESTEP_P2P" if musl => true, // linux...
SYS_move_mount was added but MOVE_MOUNT_* constants for the flags are missing With https://github.com/rust-lang/libc/pull/2114 the syscall for move_mount was added, as it seems it didn't include the constants for the flags.
2023-10-17T17:56:31Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,376
rust-lang__libc-3376
[ "3157" ]
422616bbeb29da7b043e881e080bd7ceb0ea6c95
diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index 067fe07c71f2f..da499c54d174a 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -14,6 +14,7 @@ pub type nl_item = ::c_int; pub type idtype_t = ::c_uint; pub type loff_t = ::c_longlong; pub type...
diff --git a/libc-test/semver/linux.txt b/libc-test/semver/linux.txt index b4091a707047d..8a6351401e8be 100644 --- a/libc-test/semver/linux.txt +++ b/libc-test/semver/linux.txt @@ -1926,6 +1926,7 @@ PTHREAD_PRIO_PROTECT PTHREAD_PROCESS_PRIVATE PTHREAD_PROCESS_SHARED PTHREAD_STACK_MIN +PTHREAD_ONCE_INIT PTRACE_ATTAC...
Add pthread_once
2023-10-07T14:29:04Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,375
rust-lang__libc-3375
[ "3371" ]
017bf5f6b30abcdf59fc2a09997da79cb5a1cd29
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index b22b40ef9b374..ecd434175c03b 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -797,7 +797,7 @@ s! { pub struct sockaddr_ndrv { pub snd_len: ::c_uchar, pub snd_family: ::c_uchar, - pub snd_name...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 48fb4df08e8e9..2f7c469d7cf6a 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -299,6 +299,9 @@ fn test_apple(target: &str) { } cfg.skip_struct(move |ty| { + if ty.starts_with("__c_anonymous_") { + return true; + }...
Lack of `ifreq` in macOS platform The documentation says ifreq https://docs.rs/libc/0.2.148/libc/struct.ifreq.html but can not find. ![image](https://github.com/rust-lang/libc/assets/30760636/c95253a3-65c3-41cc-8657-198611bc7583)
2023-10-06T20:53:32Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,343
rust-lang__libc-3343
[ "3342" ]
f5172d29959326a45bd6cef88c38896bf3aeb479
diff --git a/src/unix/linux_like/linux/gnu/b32/arm/mod.rs b/src/unix/linux_like/linux/gnu/b32/arm/mod.rs index 9b3a2ff861731..89c93aba8818e 100644 --- a/src/unix/linux_like/linux/gnu/b32/arm/mod.rs +++ b/src/unix/linux_like/linux/gnu/b32/arm/mod.rs @@ -162,12 +162,6 @@ s! { pub ss_size: ::size_t } - ...
diff --git a/libc-test/build.rs b/libc-test/build.rs index e9178a0a41499..bddeb132fb15a 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -3520,6 +3520,19 @@ fn test_linux(target: &str) { if musl && ty.starts_with("uinput_") { return true; } + if musl && ty == "seccomp_no...
Fix seccomp constants on musl/all linux platforms on x86_64-unknown-linux-gnu, some of the seccomp-related constants are provided but they are not on all platforms. These constants live inside <linux/seccomp.h> and it appears that some of them exist in rust's libc linux/mod.rs Linux: https://github.com/torvalds/lin...
2023-09-07T06:12:49Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,341
rust-lang__libc-3341
[ "3339" ]
835661543db1ec42a6d9a809d69c3c5b5b978b81
diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index 4138af576e936..f2236a034e06d 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -4693,6 +4693,11 @@ pub const RB_POWERCYCLE: ::c_int = 0x400000; pub const RB_PROBE: ::...
diff --git a/libc-test/build.rs b/libc-test/build.rs index bfe1ed16f3951..c79682d1e895c 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2343,6 +2343,9 @@ fn test_freebsd(target: &str) { // Added in FreeBSD 13.2 "AT_USRSTACKBASE" | "AT_USRSTACKLIM" if Some(13) > freebsd_ver => true...
timerfd on FreeBSD >= 14.0 Same API as Linux. See [timerfd(2)](https://man.freebsd.org/cgi/man.cgi?query=timerfd&sektion=2&manpath=FreeBSD+15.0-CURRENT) and [`<sys/timerfd.h>`](https://github.com/freebsd/freebsd-src/blob/main/sys/sys/timerfd.h) for details. Similar to `eventfd` the ABI is new, so no need to gate by ...
2023-09-06T21:25:03Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,337
rust-lang__libc-3337
[ "3336" ]
6f31de33032bf37b5735357320feedb84bb44478
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index bf571aeb738ff..e53cf3f197537 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -378,6 +378,13 @@ s! { pub fst_bytesalloc: ::off_t, } + pub struct fpunchhole_t { + pub fp_flags: ::c_uint, /* unused ...
diff --git a/libc-test/semver/apple.txt b/libc-test/semver/apple.txt index 10e505ed46dd0..64d0269d45eb9 100644 --- a/libc-test/semver/apple.txt +++ b/libc-test/semver/apple.txt @@ -193,10 +193,10 @@ BUFSIZ BUS_ADRALN BUS_ADRERR BUS_OBJERR -CCStatus CCCryptorStatus -CCRandomGenerateBytes CCRNGStatus +CCRandomGenera...
F_PUNCHHOLE Apple has F_PUNCHHOLE for punching file system holes. aarch64-apple-darwin fcntl.h: ``` #define F_PUNCHHOLE 99 /* Deallocate a range of the file */ /* fpunchhole_t used by F_PUNCHHOLE */ typedef struct fpunchhole { unsigned int fp_flags; /* unused */ unsigned int reserved; /* ...
2023-09-04T02:27:02Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,332
rust-lang__libc-3332
[ "3331" ]
835661543db1ec42a6d9a809d69c3c5b5b978b81
diff --git a/src/fuchsia/mod.rs b/src/fuchsia/mod.rs index 3e922e766cba4..b791b0c61cdfb 100644 --- a/src/fuchsia/mod.rs +++ b/src/fuchsia/mod.rs @@ -2679,7 +2679,87 @@ pub const PT_GNU_STACK: u32 = 0x6474e551; pub const PT_GNU_RELRO: u32 = 0x6474e552; // Ethernet protocol IDs. +pub const ETH_P_LOOP: ::c_int = 0x006...
diff --git a/libc-test/semver/fuchsia.txt b/libc-test/semver/fuchsia.txt index 5e7213c0bea25..f4dcc149e6f44 100644 --- a/libc-test/semver/fuchsia.txt +++ b/libc-test/semver/fuchsia.txt @@ -256,7 +256,85 @@ ERFKILL ESOCKTNOSUPPORT ESRMNT ESTRPIPE +ETH_P_LOOP +ETH_P_PUP +ETH_P_PUPAT ETH_P_IP +ETH_P_X25 +ETH_P_ARP +ET...
Define all the `ETH_P_*` constants on fuchsia Currently, `libc` only [defines](https://github.com/rust-lang/libc/blob/835661543db1ec42a6d9a809d69c3c5b5b978b81/src/fuchsia/mod.rs#L2682) `ETH_P_IP` on Fuchsia. We should define all of the `ETH_P_*` constants that fuchsia supports per https://cs.opensource.google/fuchsia/f...
2023-08-31T23:10:56Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,266
rust-lang__libc-3266
[ "3265" ]
a6c94f4c02f597e1db4f4dd23c1ad7f6072fd8ac
diff --git a/Cargo.toml b/Cargo.toml index 42d3376e084d2..c2c51b300c126 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libc" -version = "0.2.145" +version = "0.2.146" authors = ["The Rust Project Developers"] license = "MIT OR Apache-2.0" readme = "README.md"
diff --git a/libc-test/Cargo.toml b/libc-test/Cargo.toml index 3a133ec1c7c4f..3779d99d2bf7e 100644 --- a/libc-test/Cargo.toml +++ b/libc-test/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libc-test" -version = "0.2.145" +version = "0.2.146" authors = ["The Rust Project Developers"] license = "MIT OR Apache-2.0" bui...
Use `use` to alias open/openat in lfs64.rs Proposed workaround for #3264 (see that issue for details).
r? @JohnTitor (rustbot has picked a reviewer for you, use r? to override) @bors r+ :pushpin: Commit 52badc617f71831b3e7addc1c0827c4395d09678 has been approved by `Amanieu` It is now in the [queue](https://bors.rust-lang.org/homu/queue/libc) for this repository. <!-- @bors r=Amanieu 52badc617f71831b3e7addc1c0827c4395...
2023-06-06T11:25:32Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,236
rust-lang__libc-3236
[ "3234" ]
0b758afcdc34c9a72508a481ba151857d0b469de
diff --git a/Cargo.toml b/Cargo.toml index dd7c11a1102e4..326310c934926 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libc" -version = "0.2.142" +version = "0.2.143" authors = ["The Rust Project Developers"] license = "MIT OR Apache-2.0" readme = "README.md"
diff --git a/libc-test/Cargo.toml b/libc-test/Cargo.toml index 83bfcba9c6b1e..f9540b4f5cf91 100644 --- a/libc-test/Cargo.toml +++ b/libc-test/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libc-test" -version = "0.2.142" +version = "0.2.143" authors = ["The Rust Project Developers"] license = "MIT OR Apache-2.0" bui...
libc test builds two different versions of libc ``` cd /Development/source/libc/libc-test cargo test ``` In output: ``` Compiling libc v0.2.142 ... Compiling libc v0.2.142 (/Development/source/rust/libc) ``` At least on Haiku, this causes a linking error as the current libc on crates.io hasn't been update...
2023-05-06T00:14:56Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,213
rust-lang__libc-3213
[ "3190" ]
f05d6a35b25288b143241ebb6b4b071618945431
diff --git a/src/unix/linux_like/linux/musl/mod.rs b/src/unix/linux_like/linux/musl/mod.rs index a4c1f708afd50..d8b2767669309 100644 --- a/src/unix/linux_like/linux/musl/mod.rs +++ b/src/unix/linux_like/linux/musl/mod.rs @@ -900,6 +900,13 @@ extern "C" { pub fn dirname(path: *mut ::c_char) -> *mut ::c_char; ...
diff --git a/libc-test/semver/linux-gnu.txt b/libc-test/semver/linux-gnu.txt index 9bbdee0771b60..d39726f4260a7 100644 --- a/libc-test/semver/linux-gnu.txt +++ b/libc-test/semver/linux-gnu.txt @@ -617,12 +617,12 @@ dlinfo dlmopen endutxent explicit_bzero +fgetgrent_r fgetspent_r futimes getauxval getentropy get...
utmp function family missing on musl Hello, functions like getutxent, setutxent, endutxent, struct utmpx, etc. are missing from the musl implementation ( src/unix/linux_like/linux/musl/mod.rs ), even though those functions are implemented in musl (see https://git.musl-libc.org/cgit/musl/tree/include/utmpx.h ). As r...
2023-04-21T19:27:17Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,136
rust-lang__libc-3136
[ "3132" ]
973c3e1fb8acd198f197fa2a25d99184fa1f5f4b
diff --git a/src/unix/linux_like/linux/gnu/mod.rs b/src/unix/linux_like/linux/gnu/mod.rs index 2d84ec662d58c..1ee1ec70d044e 100644 --- a/src/unix/linux_like/linux/gnu/mod.rs +++ b/src/unix/linux_like/linux/gnu/mod.rs @@ -730,27 +730,6 @@ pub const PF_NFC: ::c_int = AF_NFC; pub const PF_VSOCK: ::c_int = AF_VSOCK; pub ...
diff --git a/libc-test/semver/linux-gnu.txt b/libc-test/semver/linux-gnu.txt index f34e0681c398a..1f2721fa0fc04 100644 --- a/libc-test/semver/linux-gnu.txt +++ b/libc-test/semver/linux-gnu.txt @@ -33,23 +33,6 @@ CGROUP2_SUPER_MAGIC CGROUP_SUPER_MAGIC CODA_SUPER_MAGIC CRAMFS_MAGIC -DCCP_SERVICE_LIST_MAX_LEN -DCCP_SOC...
dccp exports are tied to glibc on linux the various DCCP_ exports such as `DCCP_SOCKOPT_SERVICE` are tied to `linux/gnu` (or android). that means they are not present on linux/musl. however, these defines don't come from the libc. for instance: ```c #include <sys/socket.h> #include <stdio.h> int main(void)...
(apologies i didn't provide a rust example, but this is reasonably obvious given the linked downstream issue) Maybe it's as simple as move the constant from the GNU (and Android) locations: * https://github.com/rust-lang/libc/blob/5e98ea33195cc867faad2355f16c9bef1dad6a47/src/unix/linux_like/linux/gnu/mod.rs#L733-L749 ...
2023-03-03T22:26:55Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,086
rust-lang__libc-3086
[ "3085" ]
f4d5a669c44fa302cdf7c047ae1923c0f19b861e
diff --git a/src/fuchsia/mod.rs b/src/fuchsia/mod.rs index 5c6aebde23b01..ea1ae466b2df6 100644 --- a/src/fuchsia/mod.rs +++ b/src/fuchsia/mod.rs @@ -2602,6 +2602,7 @@ pub const PR_SET_MM_MAP: ::c_int = 14; pub const PR_SET_MM_MAP_SIZE: ::c_int = 15; pub const PR_SET_PTRACER: ::c_int = 0x59616d61; +pub const PR_SET_...
diff --git a/libc-test/semver/fuchsia.txt b/libc-test/semver/fuchsia.txt index 804b27093095a..5e7213c0bea25 100644 --- a/libc-test/semver/fuchsia.txt +++ b/libc-test/semver/fuchsia.txt @@ -671,6 +671,7 @@ PR_SET_NAME PR_SET_NO_NEW_PRIVS PR_SET_PDEATHSIG PR_SET_PTRACER +PR_SET_PTRACER_ANY PR_SET_SECCOMP PR_SET_SECU...
Missing `PR_SET_PTRACER_ANY` [`PR_SET_PTRACER`](https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/prctl.h#L155) is present (https://docs.rs/libc/latest/libc/constant.PR_SET_PTRACER.html) but [`PR_SET_PTRACER_ANY`](https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/prctl.h#L156) is missing...
2023-01-23T03:37:22Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,034
rust-lang__libc-3034
[ "3033" ]
c059d435347adb30d9ffc2c79d844756dd576443
diff --git a/src/unix/linux_like/linux/gnu/mod.rs b/src/unix/linux_like/linux/gnu/mod.rs index f31f341e2e54d..175a49cd6696c 100644 --- a/src/unix/linux_like/linux/gnu/mod.rs +++ b/src/unix/linux_like/linux/gnu/mod.rs @@ -946,6 +946,8 @@ pub const ELFOSABI_ARM_AEABI: u8 = 64; // linux/sched.h pub const CLONE_NEWTIME...
diff --git a/libc-test/build.rs b/libc-test/build.rs index eb0dcb89a58c5..8edb020b6b70f 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -3841,6 +3841,7 @@ fn test_linux(target: &str) { | "MADV_POPULATE_READ" | "MADV_POPULATE_WRITE" if musl => true, + "CLONE_...
Various Linux CLONE_* flags are missing The complete list of the flags can be seen e.g. here: https://elixir.bootlin.com/linux/v6.0.12/source/include/uapi/linux/sched.h#L11 The ones that are missing from libc at the moment seem to be: ```rust pub const CLONE_PIDFD: ::c_int = 0x1000; pub const CLONE_CLEAR_SIG...
2022-12-10T21:57:24Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
3,003
rust-lang__libc-3003
[ "3002" ]
73c25f4e9d66054d1496c693b72d60caea00c4a9
diff --git a/src/unix/linux_like/linux/musl/mod.rs b/src/unix/linux_like/linux/musl/mod.rs index 25291c2306115..2a894a602502e 100644 --- a/src/unix/linux_like/linux/musl/mod.rs +++ b/src/unix/linux_like/linux/musl/mod.rs @@ -590,6 +590,8 @@ pub const EFD_NONBLOCK: ::c_int = ::O_NONBLOCK; pub const SFD_NONBLOCK: ::c_...
diff --git a/libc-test/semver/linux-musl.txt b/libc-test/semver/linux-musl.txt index 7af14189312d1..9fbb9032c31bf 100644 --- a/libc-test/semver/linux-musl.txt +++ b/libc-test/semver/linux-musl.txt @@ -20,6 +20,7 @@ LIO_WRITE PF_IB PF_MPLS PF_XDP +PIDFD_NONBLOCK PR_SET_VMA PR_SET_VMA_ANON_NAME adjtimex @@ -54,4 +5...
`PIDFD_NONBLOCK` missing from Linux musl toolchains `PIDFD_NONBLOCK` is an alias for `O_NONBLOCK` used with [`pidfd_open`](https://man7.org/linux/man-pages/man2/pidfd_open.2.html). It is missing from all the `musl` toolchains. These toolchains do however have `SYS_pidfd_open` which would suggest they should have ...
2022-11-17T18:49:00Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,967
rust-lang__libc-2967
[ "2909" ]
998e88630ebbdceda33774cd6531335254f9769b
diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index 4421906a4b77d..15174bc306419 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -2621,6 +2621,24 @@ pub const SIOCGIFSLAVE: ::c_ulong = 0x00008929; pub const SIOCSIFSLAVE: ::c_ulong = 0x00008930;...
diff --git a/libc-test/semver/linux.txt b/libc-test/semver/linux.txt index 96be968d8b6c8..d8fa593c67795 100644 --- a/libc-test/semver/linux.txt +++ b/libc-test/semver/linux.txt @@ -2168,38 +2168,56 @@ SIOCADDRT SIOCDARP SIOCDELMULTI SIOCDELRT +SIOCDIFADDR SIOCDRARP +SIOCETHTOOL SIOCGARP SIOCGIFADDR +SIOCGIFBR SI...
missing some SIOC defines from the linux header the socket ioctl() flags SIOCGIFINDEX SIOCSIFPFLAGS SIOCGIFPFLAGS SIOCDIFADDR SIOCSIFHWBROADCAST ... SIOCOUTQNSD are missing basically those covering the value range 0x8933 to 0x894B according to include/uapi/linux/sockios.h since kernel 4.9
2022-10-17T20:21:34Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,964
rust-lang__libc-2964
[ "2926" ]
e4e865d1c3bd3b7741fa408da8e145e7dd8724b3
diff --git a/src/windows/mod.rs b/src/windows/mod.rs index acb0de9895170..916019b1f211b 100644 --- a/src/windows/mod.rs +++ b/src/windows/mod.rs @@ -509,6 +509,14 @@ extern "C" { pub fn aligned_malloc(size: size_t, alignment: size_t) -> *mut c_void; #[link_name = "_aligned_free"] pub fn aligned_free(ptr:...
diff --git a/libc-test/semver/windows.txt b/libc-test/semver/windows.txt index ddb97a8d8ea43..1ddf031b1440f 100644 --- a/libc-test/semver/windows.txt +++ b/libc-test/semver/windows.txt @@ -261,6 +261,8 @@ popen printf ptrdiff_t putchar +putenv +putenv_s puts raise rand @@ -340,6 +342,8 @@ wexecve wexecvp wexecv...
putenv and friends are missing on Windows <!-- Please provide the below information: * the target triple * link to the documentation of the API showing the type signatures, how to use it, etc. In general, just please consider that the people who can help you are all very busy, they will be helping you in th...
More generally, it seems that most of the functions from [Process and Environment Control ](https://learn.microsoft.com/en-us/cpp/c-runtime-library/process-and-environment-control?view=msvc-170) page are currently missing.
2022-10-16T11:05:09Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,940
rust-lang__libc-2940
[ "2917", "2918" ]
dc3084a1a375411fb09be303b80a28f0fa6e3986
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index cee87ffbfc490..a9438ef57a3c2 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -121,6 +121,9 @@ pub type pthread_introspection_hook_t = extern "C" fn(event: ::c_uint, thread: ::pthread_t, addr: *mut ::c_void, size: ::s...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 0e56050b008de..5376c46860d6d 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -231,6 +231,7 @@ fn test_apple(target: &str) { "netinet/ip.h", "netinet/tcp.h", "netinet/udp.h", + "os/lock.h", "poll.h", ...
os_unfair_lock_t on macOS It'd be nice to include the [os_unfair_lock API](https://developer.apple.com/documentation/os/synchronization?language=objc) on macOS: - [os_unfair_lock](https://developer.apple.com/documentation/os/os_unfair_lock?language=objc) - [os_unfair_lock_t](https://developer.apple.com/documentati...
2022-10-05T01:43:33Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,897
rust-lang__libc-2897
[ "1876" ]
aec8514342e2b03924f4d17198ce77eb0a12fda5
diff --git a/src/unix/linux_like/linux/gnu/mod.rs b/src/unix/linux_like/linux/gnu/mod.rs index 88bc935f632b3..6b86dea32b746 100644 --- a/src/unix/linux_like/linux/gnu/mod.rs +++ b/src/unix/linux_like/linux/gnu/mod.rs @@ -954,6 +954,8 @@ pub const NT_LWPSTATUS: ::c_int = 16; pub const NT_LWPSINFO: ::c_int = 17; pub co...
diff --git a/libc-test/semver/linux-gnu.txt b/libc-test/semver/linux-gnu.txt index 14c4ab9cfe488..27bd593843951 100644 --- a/libc-test/semver/linux-gnu.txt +++ b/libc-test/semver/linux-gnu.txt @@ -55,6 +55,7 @@ DEBUGFS_MAGIC DEVPTS_SUPER_MAGIC ECRYPTFS_SUPER_MAGIC EFS_SUPER_MAGIC +ELFOSABI_ARM_AEABI EMPTY EXT2_SUP...
libc should expose program header flag constants It'd be useful if `libc` exposed `PF_X`, `PF_R`, `PF_W` and `PF_MASKPROC`. You can currently get `PF_{R,W,X}` from the `elf` crate, but arguably `libc` is a more appropriate home for them and `PF_MASKPROC` should also be included.
Given that these flags exist in glibc's `elf.h`, these seem completely reasonable to add to the libc crate. Could you send a pull request adding them?
2022-09-03T13:30:47Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,828
rust-lang__libc-2828
[ "2091" ]
a318a94adff0182bd35f32c170e530a8ebb6f6dd
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5be6eb9be4a22..3315ed3e84f7e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -72,6 +72,10 @@ after a certain period. The steps are: If you're using it, please comment on #XXX"). 2. If we don't see any concerns for a while, do the change actually. +## Su...
diff --git a/libc-test/build.rs b/libc-test/build.rs index a3f940a3e823e..26f746b01f154 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -969,7 +969,6 @@ fn test_solarish(target: &str) { fn test_netbsd(target: &str) { assert!(target.contains("netbsd")); - let rumprun = target.contains("rumprun"); ...
Drop support for Rumprun rustc dropped the support for Rumprun in https://github.com/rust-lang/rust/pull/82594. We could drop the support on libc as we did for CloudABI. cc #2090
:+1: to removing this support, since Rust did. We may want to establish a policy here. Under what circumstances can we remove support for a target? Can we always do so when Rust does, or do we have any special considerations to take into account if the target was previously tier 1/2 and available in stable? Can we c...
2022-06-19T02:41:44Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,801
rust-lang__libc-2801
[ "2793" ]
13afe8ac5322c400218e4df077a81462c04573e0
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index c59a360729361..da75b97a70008 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -3561,6 +3561,7 @@ pub const IP_ADD_SOURCE_MEMBERSHIP: ::c_int = 70; pub const IP_DROP_SOURCE_MEMBERSHIP: ::c_int = 71; pub const IP_BLOCK_SOU...
diff --git a/libc-test/semver/apple.txt b/libc-test/semver/apple.txt index f9fd7692d31cf..61f820d701631 100644 --- a/libc-test/semver/apple.txt +++ b/libc-test/semver/apple.txt @@ -525,6 +525,7 @@ IPTOS_ECN_ECT0 IPTOS_ECN_ECT1 IPTOS_ECN_MASK IPTOS_ECN_NOTECT +IPV6_BOUND_IF IPV6_CHECKSUM IPV6_HOPLIMIT IPV6_JOIN_GR...
Consider adding socketopt const "IPV6_BOUND_IF" as we need to set/get bound interface on macOS Consider add this to `bsd/apple/mod.rs`: ```rust pub const IPV6_BOUND_IF: ::c_int = 125; ``` We really need this constant to perform modification on socket options(to bind socket to an interface, more specifically). Thoug...
5 days passed. Any feedback? If it's in the headers I don't see a reason why a PR wouldn't be accepted.
2022-05-26T17:17:40Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,757
rust-lang__libc-2757
[ "2755" ]
dff5aca2a10d886b13b66b92b959e769b74a0fb7
diff --git a/Cargo.toml b/Cargo.toml index cc579890acbd2..a8b6559afd1ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libc" -version = "0.2.123" +version = "0.2.124" authors = ["The Rust Project Developers"] license = "MIT OR Apache-2.0" readme = "README.md"
diff --git a/libc-test/Cargo.toml b/libc-test/Cargo.toml index 5771f2a2dfc25..50021678ee0f1 100644 --- a/libc-test/Cargo.toml +++ b/libc-test/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libc-test" -version = "0.2.123" +version = "0.2.124" authors = ["The Rust Project Developers"] license = "MIT OR Apache-2.0" bui...
Release 0.2.124 Even though it's only been one day since the last release, would you consider making a new release? rust-lang/rust is currently broken for uclibc targets, and needs a new release of libc to fix them. That new release should include PR #2750 . https://github.com/rust-lang/rust/issues/95866
2022-04-13T17:05:12Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,719
rust-lang__libc-2719
[ "2524" ]
c8f31c96bba3b8850c8a2f1f61c5bffff697cbb4
diff --git a/build.rs b/build.rs index 61acba646dca0..47eef2f802633 100644 --- a/build.rs +++ b/build.rs @@ -60,6 +60,11 @@ fn main() { println!("cargo:rustc-cfg=libc_align"); } + // Rust >= 1.26 supports i128 and u128: + if rustc_minor_ver >= 26 || rustc_dep_of_std { + println!("cargo:rust...
diff --git a/libc-test/semver/android-aarch64.txt b/libc-test/semver/android-aarch64.txt index 0036c2d743906..7a8868aa2c5de 100644 --- a/libc-test/semver/android-aarch64.txt +++ b/libc-test/semver/android-aarch64.txt @@ -12,3 +12,4 @@ SYS_syscalls SYS_fcntl __system_property_wait user_regs_struct +user_fpsimd_struct...
`user_fpsimd_struct` on aarch64 On aarch64, `user_fpsimd_struct` includes a `__uint128_t` type: https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/aarch64/sys/user.h;h=9927b3ac3c43096d85f65421c89c8bef5e0bbce9;hb=a85c93c42433aa52d4c5bc18e1dff038a82415bf#l32 There is a known issue regarding `__u...
PSA: rustc actually correctly aligns u128/i128 on aarch64 linux (android) and macos and it's totally sound to use it for FFI on those platforms! So we can actually properly add these types and unblock everything that wants to use them. https://github.com/rust-lang/rust/issues/54341#issuecomment-1062498329
2022-03-09T06:43:40Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,622
rust-lang__libc-2622
[ "2621" ]
c1b386055f3595186c30e28a60f8fc36aae7cfff
diff --git a/src/unix/linux_like/linux/gnu/mod.rs b/src/unix/linux_like/linux/gnu/mod.rs index da7e9e4e9fcb0..a0dfb4722680e 100644 --- a/src/unix/linux_like/linux/gnu/mod.rs +++ b/src/unix/linux_like/linux/gnu/mod.rs @@ -867,6 +867,7 @@ cfg_if! { pub const EXT3_SUPER_MAGIC: ::c_long = 0x0000ef53; pub ...
diff --git a/libc-test/build.rs b/libc-test/build.rs index fb008faeaeb62..d9965d39f80db 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -3182,6 +3182,9 @@ fn test_linux(target: &str) { // headers conflicts with linux/pidfd.h "PIDFD_NONBLOCK" => true, + // is a private ...
Define FUSE_SUPER_MAGIC for Linux The definition of `FUSE_SUPER_MAGIC` is missing from file src/libc/unix/linux_like/linux/gnu/mod.rs . According to https://man7.org/linux/man-pages/man2/fstatfs64.2.html, FUSE_SUPER_MAGIC should be "0x65735546".
2022-01-11T18:33:33Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,606
rust-lang__libc-2606
[ "1920" ]
52382d65fb03836a5ce2efefbbee8e774e36084d
diff --git a/src/unix/linux_like/linux/gnu/b32/mod.rs b/src/unix/linux_like/linux/gnu/b32/mod.rs index 418c638063466..5b68cdb8d0349 100644 --- a/src/unix/linux_like/linux/gnu/b32/mod.rs +++ b/src/unix/linux_like/linux/gnu/b32/mod.rs @@ -11,6 +11,7 @@ pub type msgqnum_t = ::c_ulong; pub type msglen_t = ::c_ulong; pub ...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 8276b335fbf34..fb008faeaeb62 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -3325,7 +3325,9 @@ fn test_linux(target: &str) { // FIXME: It now takes mode_t since glibc 2.31 on some targets. (struct_ == "ipc_perm" && field == "mode"...
Add PTRACE_GET_SYSCALL_INFO target triple: unknown-linux-* docs: https://man7.org/linux/man-pages/man2/ptrace.2.html PTRACE_GET_SYSCALL_INFO is a linux-specific api (added fairly recently in Linux 5.3) that gives the consumer information about ptrace syscall stops, like if it was syscall entry or exit. Adding suppo...
2021-12-30T01:17:23Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,548
rust-lang__libc-2548
[ "2500" ]
7f8d24422390eeafe1eb905f9704e139d20ce4d9
diff --git a/src/unix/linux_like/linux/arch/generic/mod.rs b/src/unix/linux_like/linux/arch/generic/mod.rs index f3bed42b51164..399e78b8b67d9 100644 --- a/src/unix/linux_like/linux/arch/generic/mod.rs +++ b/src/unix/linux_like/linux/arch/generic/mod.rs @@ -135,3 +135,6 @@ pub const TIOCM_DSR: ::c_int = 0x100; pub co...
diff --git a/libc-test/semver/linux.txt b/libc-test/semver/linux.txt index 4972bc7d571d5..822405ab841bc 100644 --- a/libc-test/semver/linux.txt +++ b/libc-test/semver/linux.txt @@ -189,6 +189,8 @@ B460800 B500000 B576000 B921600 +BLKPBSZGET +BLKSSZGET BOTHER BS0 BS1
Add `BLKSSZGET` and `BLKPBSZGET` ioctl arguments Linux-only ioctl arguments that provide the virtual or physical block size of a block device. Unfortunately, despite being present since kernel [2.6.13 BLKSSZGET](https://github.com/torvalds/linux/blob/6fc32179de9e14c542e0b1760e412bc670611c53/include/linux/fs.h#L182) an...
2021-11-17T10:00:21Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,533
rust-lang__libc-2533
[ "2241" ]
8c6b63463f02d7fa6f410ded2bf600329053796e
diff --git a/src/windows/mod.rs b/src/windows/mod.rs index 8ecff3ca7ef99..08cba4edd094b 100644 --- a/src/windows/mod.rs +++ b/src/windows/mod.rs @@ -319,6 +319,8 @@ extern "C" { pub fn feof(stream: *mut FILE) -> c_int; pub fn ferror(stream: *mut FILE) -> c_int; pub fn perror(s: *const c_char); + pub f...
diff --git a/libc-test/semver/windows.txt b/libc-test/semver/windows.txt index ade72529e28e4..ddb97a8d8ea43 100644 --- a/libc-test/semver/windows.txt +++ b/libc-test/semver/windows.txt @@ -199,6 +199,7 @@ fgets fileno fopen fpos_t +fprintf fputc fputs fread @@ -257,6 +258,7 @@ pclose perror pipe popen +printf ...
printf is missing on Windows targets I'm not sure why, but it seems `printf` is missing on windows targets, is there particular history behind or can we just enable it in?
Turns out that by default you do not have `printf` symbol on Windows. It is only available via separate legacy lib so I had to link it like that: ```rust #[cfg_attr(all(windows, target_env="msvc"), link(name="legacy_stdio_definitions", kind="dylib"))] extern "C" { pub fn printf(format: *const i8,...
2021-11-13T11:20:04Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,532
rust-lang__libc-2532
[ "1928" ]
8c6b63463f02d7fa6f410ded2bf600329053796e
diff --git a/src/unix/linux_like/linux/gnu/mod.rs b/src/unix/linux_like/linux/gnu/mod.rs index 598bf465b40f3..a804ddb94a7f3 100644 --- a/src/unix/linux_like/linux/gnu/mod.rs +++ b/src/unix/linux_like/linux/gnu/mod.rs @@ -1274,6 +1274,8 @@ extern "C" { pub fn explicit_bzero(s: *mut ::c_void, len: ::size_t); //...
diff --git a/libc-test/semver/linux-gnu.txt b/libc-test/semver/linux-gnu.txt index 440863c248ea2..fe19b6cd37643 100644 --- a/libc-test/semver/linux-gnu.txt +++ b/libc-test/semver/linux-gnu.txt @@ -567,6 +567,7 @@ aiocb backtrace clock_adjtime copy_file_range +ctermid dlinfo dlmopen endutxent diff --git a/libc-tes...
Add ctermid ctermid gets the path of the controlling terminal, see [ctermid](https://pubs.opengroup.org/onlinepubs/9699919799/functions/ctermid.html): ```rust pub fn ctermid(c: *mut libc::c_char) -> *mut libc::c_char; ``` This is POSIX API; it definitely exists on Linux, and I presume on all other Unix systems ...
2021-11-13T11:03:57Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,509
rust-lang__libc-2509
[ "2269" ]
312447584ca33913d95ea5616e5c2f67ec77dd68
diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index a465c48bc468e..2bb032dd3721d 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -1330,6 +1330,7 @@ pub const POSIX_MADV_NORMAL: ::c_int = 0; pub const POSIX_MADV_RANDOM: ::c_int = 1; pub const P...
diff --git a/libc-test/semver/linux.txt b/libc-test/semver/linux.txt index beb9d0765698d..42dde130ae861 100644 --- a/libc-test/semver/linux.txt +++ b/libc-test/semver/linux.txt @@ -1529,6 +1529,7 @@ POSIX_SPAWN_SETSCHEDPARAM POSIX_SPAWN_SETSCHEDULER POSIX_SPAWN_SETSIGDEF POSIX_SPAWN_SETSIGMASK +POSIX_SPAWN_USEVFORK ...
support for POSIX_SPAWN_USEVFORK On Linux, certain GNU extensions are available if the `_GNU_SOURCE` feature test macro is set. For instance, in order to use `POSIX_SPAWN_USEVFORK` in `posix_spawn` this feature test macro must be set, see [posix_spawn(3)](https://man7.org/linux/man-pages/man3/posix_spawn.3.html). Ho...
@godmar libc is happy to expose any and all target-specific features on the targets that have them. And we already define `_GNU_SOURCE`. In this case, I think it's just that nobody has added `POSIX_SPAWN_USEVFORK`. I'd be happy to review a PR adding it.
2021-11-03T19:34:24Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,366
rust-lang__libc-2366
[ "2365" ]
2cffe84529fb86a150c6848409d75aa96d237944
diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index 3e57966c411e9..0b79a0285fadd 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -1598,6 +1598,7 @@ cfg_if! { pub const MREMAP_MAYMOVE: ::c_int = 1; pub const MREMAP_FIXED: ::c_int = 2; +pub co...
diff --git a/libc-test/build.rs b/libc-test/build.rs index dec4a81233328..08ddcd3539650 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2795,6 +2795,9 @@ fn test_linux(target: &str) { // Require Linux kernel 5.6: "VMADDR_CID_LOCAL" => true, + // Requires Linux kernel ...
Add MREMAP_DONTUNMAP flag mremap has a new flag in Linux as of kernel 5.7 [MREMAP_DONTUNMAP](https://man7.org/linux/man-pages/man2/mremap.2.html) Its value is 4
2021-08-25T17:53:05Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,304
rust-lang__libc-2304
[ "1883", "2195" ]
b2c99fa36963861136edca0eadbece44e9daab54
diff --git a/src/unix/linux_like/mod.rs b/src/unix/linux_like/mod.rs index 7f6afd5f2af64..a8b0332065429 100644 --- a/src/unix/linux_like/mod.rs +++ b/src/unix/linux_like/mod.rs @@ -1418,6 +1418,14 @@ f! { } safe_f! { + pub fn SIGRTMAX() -> ::c_int { + unsafe { __libc_current_sigrtmax() } + } + + pub...
diff --git a/libc-test/Cargo.toml b/libc-test/Cargo.toml index 233c7a5efd3c9..3adbbc7fdd839 100644 --- a/libc-test/Cargo.toml +++ b/libc-test/Cargo.toml @@ -71,6 +71,11 @@ name = "errqueue" path = "test/errqueue.rs" harness = true +[[test]] +name = "sigrt" +path = "test/sigrt.rs" +harness = true + [[test]] name =...
libc expose SIGRTMIN and SIGRTMAX Exposing SIGRTMIN and SIGRTMAX might be problematic as they dynamically change and will therefore be hard to encode as constants. Perhaps exposing them in the form of functions is the best solution? I have very little experience porting from C to Rust so I am not sure what the best way...
I think it would be reasonable to expose a function `libc::sigrtmin()` that calls `__libc_current_sigrtmin()`. Hi @joshtriplett, I'll gladly make this change but I'm wondering how one exposes the function with the name `libc::sigrtmin()` as far as I can see in the linux module all of the functions are exposed by their ...
2021-07-28T21:21:46Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,277
rust-lang__libc-2277
[ "2275" ]
f3b7e0ec2e05f45e03a5eec76265cd340675a179
diff --git a/Cargo.toml b/Cargo.toml index 66ced3c6b0bd5..905c610e7543a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libc" -version = "0.2.97" +version = "0.2.98" authors = ["The Rust Project Developers"] license = "MIT OR Apache-2.0" readme = "README.md"
diff --git a/libc-test/Cargo.toml b/libc-test/Cargo.toml index 34a06c6849b84..233c7a5efd3c9 100644 --- a/libc-test/Cargo.toml +++ b/libc-test/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libc-test" -version = "0.2.97" +version = "0.2.98" authors = ["The Rust Project Developers"] license = "MIT OR Apache-2.0" build...
Release 0.2.98 Could we have a new release for https://github.com/rust-lang/libc/pull/2237 please? The nix crate uses it and thus currently use libc as a git dependency, I would like to change that.
Sure! I'll handle it later.
2021-07-07T03:54:40Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,252
rust-lang__libc-2252
[ "2002" ]
4fcfa55fbbd40e8471865203fcdb52cfac1ec2a7
diff --git a/src/unix/linux_like/linux/gnu/b32/mod.rs b/src/unix/linux_like/linux/gnu/b32/mod.rs index 239492b1c94db..418c638063466 100644 --- a/src/unix/linux_like/linux/gnu/b32/mod.rs +++ b/src/unix/linux_like/linux/gnu/b32/mod.rs @@ -14,6 +14,7 @@ pub type __u64 = ::c_ulonglong; pub type __fsword_t = i32; pub type...
diff --git a/libc-test/semver/linux-gnu.txt b/libc-test/semver/linux-gnu.txt index fb3256086cb6c..58a7396733ba7 100644 --- a/libc-test/semver/linux-gnu.txt +++ b/libc-test/semver/linux-gnu.txt @@ -566,6 +566,8 @@ pthread_setname_np pututxline pwritev2 qsort_r +semid_ds +seminfo setutxent setxattr sgetspent_r
Provide definition of struct semid_ds for Linux Target triplet: x86_64-unknown-linux-gnu Documentation for `struct semid_ds`: https://man7.org/linux/man-pages/man2/semctl.2.html ```c The semid_ds data structure is defined in <sys/sem.h> as follows: struct semid_ds { struct ip...
2021-06-20T10:02:13Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,248
rust-lang__libc-2248
[ "2243" ]
9fee1d0014acfbe8c49cc5b260fabb5e3978f17b
diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs index 0aee1ec515d17..f0a0dbfa6215f 100644 --- a/src/unix/bsd/netbsdlike/netbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs @@ -2081,6 +2081,13 @@ extern "C" { timeout: *const ::timespec, ) -> ::c_int; pu...
diff --git a/libc-test/semver/netbsd.txt b/libc-test/semver/netbsd.txt index 384f6cad3787f..32bba252722b6 100644 --- a/libc-test/semver/netbsd.txt +++ b/libc-test/semver/netbsd.txt @@ -1290,3 +1290,4 @@ utmpxname utpname vm_size_t wait4 +waitid
waitid() not defined for NetBSD I see that `waitid()` is not defined for NetBSD targets (`*-*-netbsd`), although it is supported. As it's defined by POSIX, the current definition for FreeBSD should be able to be adopted quite easily. Documentation links: * [NetBSD](https://man.netbsd.org/wait.2) wait(2) manual page...
2021-06-18T14:51:58Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,240
rust-lang__libc-2240
[ "2229" ]
b456f76825268ce4d4c9227b393b9e63b7f07d2f
diff --git a/src/unix/linux_like/android/b32/mod.rs b/src/unix/linux_like/android/b32/mod.rs index 1d5a6d06de5b4..d0c83bf50e63d 100644 --- a/src/unix/linux_like/android/b32/mod.rs +++ b/src/unix/linux_like/android/b32/mod.rs @@ -120,6 +120,10 @@ s! { __reserved: [::c_char; 12], } + pub struct pthread...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 8275ebf582ed4..98fd9ea56619c 100755 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2600,6 +2600,8 @@ fn test_linux(target: &str) { // (`c_uint`) and this clashes with the type of the `rlimit` APIs // which expect a `c_int` even ...
Why not support pthread_spin_lock <!-- Please provide the below information: * the target triple * link to the documentation of the API showing the type signatures, how to use it, etc. In general, just please consider that the people who can help you are all very busy, they will be helping you in their free...
We usually add the items by request, feel free to open a PR if you want.
2021-06-14T18:58:31Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,234
rust-lang__libc-2234
[ "1877" ]
da79cd0e32b15f7b9f900411a4e7c86ca0de5fa4
diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index f4bed8eb1909b..6a5590acba2b6 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -1766,6 +1766,9 @@ pub const PT_LOOS: u32 = 0x60000000; pub const PT_GNU_EH_FRAME: u32 = 0x6474e550; pub const PT_...
diff --git a/libc-test/semver/linux.txt b/libc-test/semver/linux.txt index 76de49a8ceb27..bf21030fa8e4f 100644 --- a/libc-test/semver/linux.txt +++ b/libc-test/semver/linux.txt @@ -1671,6 +1671,9 @@ PTRACE_SETSIGINFO PTRACE_SINGLESTEP PTRACE_SYSCALL PTRACE_TRACEME +PT_HIOS +PT_LOPROC +PT_HIPROC PT_DYNAMIC PT_GNU_E...
libc is missing some program header type constants The following program header type constants are missing from libc: - `PT_HIOS` - `PT_LOPROC` - `PT_HIPROC` Thanks
Given that these flags exist in glibc's elf.h, these seem completely reasonable to add to the libc crate. Could you send a pull request adding them? (Please add the whole contiguous block of related constants that contain these, not just those three constants.)
2021-06-12T12:48:24Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,215
rust-lang__libc-2215
[ "2077" ]
28650774def78a6821171fd1c24d6f6913b66f23
diff --git a/src/unix/linux_like/mod.rs b/src/unix/linux_like/mod.rs index 954e87320bb7a..96545037537a2 100644 --- a/src/unix/linux_like/mod.rs +++ b/src/unix/linux_like/mod.rs @@ -1306,6 +1306,7 @@ pub const ARPHRD_ADAPT: u16 = 264; pub const ARPHRD_ROSE: u16 = 270; pub const ARPHRD_X25: u16 = 271; pub const ARPHRD...
diff --git a/libc-test/Cargo.toml b/libc-test/Cargo.toml index 7b8bae6efd082..2eb5a0870d3a9 100644 --- a/libc-test/Cargo.toml +++ b/libc-test/Cargo.toml @@ -36,6 +36,11 @@ name = "linux-fcntl" path = "test/linux_fcntl.rs" harness = false +[[test]] +name = "linux-if-arp" +path = "test/linux_if_arp.rs" +harness = fal...
Added Linux ARPHRD_CAN constant The Linux ARPHRD_CAN constant (280) for CANbus appears to be missing.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @JohnTitor (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the c...
2021-06-03T06:42:35Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,208
rust-lang__libc-2208
[ "2181" ]
af64038eb6dc8c5d60a9af1e893241c5f1e65179
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index aba356c93b382..d8a503e97db91 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -4095,6 +4095,19 @@ extern "C" { pub fn proc_libversion(major: *mut ::c_int, mintor: *mut ::c_int) -> ::c_int; } +cfg_if! { + if #[cf...
diff --git a/libc-test/semver/macos.txt b/libc-test/semver/macos.txt new file mode 100644 index 0000000000000..d6a91320b85e1 --- /dev/null +++ b/libc-test/semver/macos.txt @@ -0,0 +1,1 @@ +memmem
memmem not available on macos It is available in macos like most FreeBSD functions however it does not seem to be avAilable on ios, see https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/
You might as well also spam in all the missing neon intrinsics you want :) #[cfg( not(target_os = "ios"))] enough? How many places does it need spammed? https://github.com/rust-lang/libc/search?q=memmove @chadbrewbaker I don't understand what you mean. Architecture-specific intrinsics are accessible in `stdarch` an...
2021-06-01T15:01:28Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,207
rust-lang__libc-2207
[ "2197" ]
fa1b66c15cc3742d5b75c6d9952b50dd72855f31
diff --git a/src/unix/bsd/freebsdlike/dragonfly/mod.rs b/src/unix/bsd/freebsdlike/dragonfly/mod.rs index 71529421ea7cb..acaf13fe4e57b 100644 --- a/src/unix/bsd/freebsdlike/dragonfly/mod.rs +++ b/src/unix/bsd/freebsdlike/dragonfly/mod.rs @@ -1131,6 +1131,7 @@ extern "C" { pub fn sched_getaffinity(pid: ::pid_t, cpus...
diff --git a/libc-test/semver/dragonfly.txt b/libc-test/semver/dragonfly.txt index 5f3e688e226fb..aa429bd107742 100644 --- a/libc-test/semver/dragonfly.txt +++ b/libc-test/semver/dragonfly.txt @@ -1344,6 +1344,7 @@ setgroups sethostname setitimer setpriority +setproctitle setprogname setpwent setresgid diff --git...
Add setproctitle FreeBSD: ``` #include <sys/types.h> #include <unistd.h> void setproctitle(const char *fmt, ...); void setproctitle_fast(const char *fmt, ...); ``` Certain BSD's have setproctitle to change the process title, and other unices have different ways of changing the process title (as show...
2021-05-31T19:25:46Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,201
rust-lang__libc-2201
[ "1600" ]
86dff58336e037b88ae8279326960cca99f9ea4b
diff --git a/src/windows/mod.rs b/src/windows/mod.rs index 377a6c75f961e..ad0dc77d23193 100644 --- a/src/windows/mod.rs +++ b/src/windows/mod.rs @@ -244,7 +244,13 @@ pub const SIGSEGV: ::c_int = 11; pub const SIGTERM: ::c_int = 15; pub const SIGABRT: ::c_int = 22; pub const NSIG: ::c_int = 23; + pub const SIG_ERR: ...
diff --git a/libc-test/build.rs b/libc-test/build.rs index b0f7c0bebad9b..0c62045407647 100755 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -583,7 +583,9 @@ fn test_windows(target: &str) { match name { // FIXME: API error: // SIG_ERR type is "void (*)(int)", not "int" - ...
SIG_DFL and SIG_IGN on windows <!-- **Help us help you.** If you are reporting a bug, include: * a Minimum Working Example without any dependencies (except libc) that shows the issue and ideally reproduces in the Rust playground * the target triple - libc supports many targets and many APIs * instructions ...
From `ucrt\signal.h` ```C #define SIG_DFL ((_crt_signal_t)0) // default signal action #define SIG_IGN ((_crt_signal_t)1) // ignore signal #define SIG_GET ((_crt_signal_t)2) // return current value #define SIG_SGE ((_crt_signal_t)3) // signal gets error #define SIG_ACK ((_crt_signal_t)4) // ack...
2021-05-27T15:58:05Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,172
rust-lang__libc-2172
[ "2171" ]
d02ce7f18953c23dc85e85382900eb8e2dd18e8d
diff --git a/src/unix/linux_like/linux/musl/b64/aarch64/mod.rs b/src/unix/linux_like/linux/musl/b64/aarch64/mod.rs index 6e8fee41b12e7..73162c94ad9f3 100644 --- a/src/unix/linux_like/linux/musl/b64/aarch64/mod.rs +++ b/src/unix/linux_like/linux/musl/b64/aarch64/mod.rs @@ -160,6 +160,40 @@ pub const ENOTRECOVERABLE: ::c...
diff --git a/libc-test/semver/TODO-linux.txt b/libc-test/semver/TODO-linux.txt index 6396cf4684a1d..aefe205853fa4 100644 --- a/libc-test/semver/TODO-linux.txt +++ b/libc-test/semver/TODO-linux.txt @@ -1,38 +1,6 @@ # The following symbols are not not available in some combinations of # musl/gnu/android and/or architec...
musl: HWCAP_* consts missing on aarch64 targets It looks like #1638 added these constants, but for glibc only. #2109 added a [`TODO-linux.txt`](https://github.com/rust-lang/libc/blob/ed1399a/libc-test/semver/TODO-linux.txt) which made a note of this. I just received an in-the-wild report about this (https://github.c...
2021-05-13T15:57:04Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,156
rust-lang__libc-2156
[ "2009" ]
66d82737f3d256b30fc0461fb44514a3a03db09e
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 3955354ff28d8..791f35d58c313 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -3843,6 +3843,10 @@ extern "C" { dst: *const ::c_char, flags: u32, ) -> ::c_int; + + // Added in macOS 10.13 + // I...
diff --git a/libc-test/semver/apple.txt b/libc-test/semver/apple.txt index d860f57d735b2..b54f46088d493 100644 --- a/libc-test/semver/apple.txt +++ b/libc-test/semver/apple.txt @@ -1619,6 +1619,7 @@ mach_timebase_info_data_t madvise max_align_t mcontext_t +memset_s mincore mkdirat mkstemps diff --git a/libc-test/...
Add `memset_s` and/or `explicit_bzero` for platforms that support it target platforms: linux, BSD I would be interested in adding `memset_s` and `explicit_bzero` from `string.h`. These functions allow securely erasing memory. If a PR would be accepted, I can make one. One question I would have for linux is: What is...
These functions typically have extra annotations to ensure that compiler optimizations will never remove them. Rust doesn't currently have a means of providing those annotations. Thus, I think we shouldn't add these (and give a false impression of their functionality) until the compiler has a means of doing explicit no...
2021-05-02T10:16:41Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,109
rust-lang__libc-2109
[ "2104" ]
10d99b96e041448a45cb1464f8ff1f67bd43ce00
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5d52cad7fc6b9..5be6eb9be4a22 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,14 +28,24 @@ at, fear not! This crate has CI support which tests any binding against all platforms supported, so you'll see failures if an API is added at the wrong level or has ...
diff --git a/libc-test/Cargo.toml b/libc-test/Cargo.toml index 0fc35762068d2..d6c9aeef86d23 100644 --- a/libc-test/Cargo.toml +++ b/libc-test/Cargo.toml @@ -65,3 +65,8 @@ harness = true name = "errqueue" path = "test/errqueue.rs" harness = true + +[[test]] +name = "semver" +path = "test/semver.rs" +harness = false d...
Idea for regression test for accidental removal of definitions I've been thinking about how to add regression tests for issues like #2101, wherein between versions 0.2.86 and 0.2.87 a system call was accidentally removed for a specific target. The structure for libc is quite complex with many `#[cfg]`s throughout the c...
This sounds like a great idea! We use `rusr-semverver` for this purpose but it doesn't make much sense currently. We, for example, sometimes move a declaration to the parent module but semverver complains about it (it's not a _breaking change_ for us), that's why we ignore its check on bors. But this approach doesn't h...
2021-03-13T17:24:00Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,100
rust-lang__libc-2100
[ "2076" ]
ec86e5fb3258a844ece771d2c6f0fbf152086eab
diff --git a/src/unix/linux_like/android/mod.rs b/src/unix/linux_like/android/mod.rs index a005ee632f61a..f1d6ef4b2baf2 100644 --- a/src/unix/linux_like/android/mod.rs +++ b/src/unix/linux_like/android/mod.rs @@ -2809,6 +2809,8 @@ extern "C" { pub fn regfree(preg: *mut ::regex_t); pub fn android_set_abort_m...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 71b70632829e6..99763e29aa824 100755 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2737,6 +2737,9 @@ fn test_linux(target: &str) { // assume it's a int instead. "getnameinfo" if uclibc => true, + // FIXME: This need...
Add gettid() for Linux I'm using x86_64-unknown-linux-gnu. I need to use `gettid()` in Rust, and it's not in this crate yet. It's got a simple signature: https://man7.org/linux/man-pages/man2/gettid.2.html It is Linux-specific. I could probably add it if it would help, but I'm not positive where to add it. From s...
You can go ahead with `linux_like/mod.rs` and check if CI complains about it. > And it seems like the tests are automatic so they wouldn't need changed? Yep, you're right.
2021-03-04T14:47:27Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
2,092
rust-lang__libc-2092
[ "2065" ]
a6dc5bc088cb4a222e9847dc4232ac744d6e28b9
diff --git a/Cargo.toml b/Cargo.toml index 65749ad55df01..63c045b8f3933 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libc" -version = "0.2.86" +version = "0.2.87" authors = ["The Rust Project Developers"] license = "MIT OR Apache-2.0" readme = "README.md"
diff --git a/libc-test/Cargo.toml b/libc-test/Cargo.toml index 0b23422f891ad..2c96556337dbd 100644 --- a/libc-test/Cargo.toml +++ b/libc-test/Cargo.toml @@ -1,11 +1,15 @@ [package] name = "libc-test" -version = "0.1.0" -authors = ["Alex Crichton <alex@alexcrichton.com>"] +version = "0.2.87" +authors = ["The Rust Proj...
Publish `libc-test` on crates.io Right now, `libc-test` only exists as a subdirectory of this repository. In Android, we've been using crates.io as our primary source of third party packages, and it would be nice for `libc-test` to not be an exception. This would make it easier for us to enable CI of the libc crate wit...
You should use `ctest2` for that case. `libc-test` isn't for external use and it has many tests for other platforms that are redundant for your case. > You should use `ctest2` for that case. `libc-test` isn't for external use and it has many tests for other platforms that are redundant for your case. I'm not sure wh...
2021-03-02T06:17:10Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
1,991
rust-lang__libc-1991
[ "1987" ]
70962e3943d22d94141954db18eb7295b5edec5d
diff --git a/src/unix/linux_like/android/b64/aarch64/mod.rs b/src/unix/linux_like/android/b64/aarch64/mod.rs index b7a21e1539238..5acb328be9aec 100644 --- a/src/unix/linux_like/android/b64/aarch64/mod.rs +++ b/src/unix/linux_like/android/b64/aarch64/mod.rs @@ -57,6 +57,49 @@ pub const O_LARGEFILE: ::c_int = 0o400000; ...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 433d0a86e4b3e..d5dc0ef1ea84d 100755 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -1422,6 +1422,7 @@ fn test_android(target: &str) { "stdio.h", "stdlib.h", "string.h", + "sys/auxv.h", ...
Add getauxval for Android `getauxval` is useful for detecting CPU specific features such as availability of the ARMv8 AES instructions. Currently in this crate, `getauxval` is available on Linux but not on Android. This function was added to Android in API Level 18 (https://developer.android.com/ndk/guides/cpu-featu...
Hey, thanks for the issue! > Happy to contribute a patch, just wanted to check if enabling `getauxval` only for `aarch64-linux-android` and `x86_64-linux-android` was ok or if you had suggestions on how to handle the possibility of it not being included when built for an old Android. It's totally okay to add it f...
2020-12-07T19:04:27Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
1,954
rust-lang__libc-1954
[ "1933" ]
f18c583f19e22d6e497b5b33b45925862e318d51
diff --git a/ci/docker/aarch64-linux-android/Dockerfile b/ci/docker/aarch64-linux-android/Dockerfile index 56685c5478231..0aa99eeea10ae 100644 --- a/ci/docker/aarch64-linux-android/Dockerfile +++ b/ci/docker/aarch64-linux-android/Dockerfile @@ -30,6 +30,7 @@ RUN chmod 755 /android/sdk/cmdline-tools/tools/* /android/sdk...
diff --git a/libc-test/Cargo.toml b/libc-test/Cargo.toml index ae5bfe39330a7..75ae60466dd1a 100644 --- a/libc-test/Cargo.toml +++ b/libc-test/Cargo.toml @@ -9,7 +9,7 @@ path = ".." default-features = false [build-dependencies] -cc = "=1.0.52" +cc = "1.0.61" # FIXME: Use fork ctest until the maintainer gets back. ...
Unpin `cc` crate version on `libc-test` Previously, our Android jobs fail due to mismatching of API level somehow. After some debugging, it seems like alexcrichton/cc-rs#495 is the cause. I pinned the `cc` crate version to `1.0.52` then the test passes as expected. For context: https://github.com/rust-lang/libc/issues/...
2020-10-23T17:06:28Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
1,934
rust-lang__libc-1934
[ "1457" ]
0062f2b95e6c4a1b5a094f56dfa91df04d1669dc
diff --git a/.github/workflows/bors.yml b/.github/workflows/bors.yml index ffbef975afca8..2201899e479a9 100644 --- a/.github/workflows/bors.yml +++ b/.github/workflows/bors.yml @@ -132,6 +132,9 @@ jobs: x86_64-linux-android, x86_64-unknown-linux-gnux32, x86_64-unknown-linux-musl, + ...
diff --git a/libc-test/build.rs b/libc-test/build.rs index b9120809b8ae3..a696a1b58b560 100755 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -8,7 +8,7 @@ use std::env; fn do_cc() { let target = env::var("TARGET").unwrap(); if cfg!(unix) { - let exclude = ["wasi"]; + let exclude = ["redox...
Temporarily disable redox target (tracking issue) cc @jackpot51 I'm disabling the build tests for the redox target as part of the migration to Azure. It should be re-enabled in the redox PRs that migrate to the unix target.
2020-10-17T01:44:59Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
1,833
rust-lang__libc-1833
[ "454" ]
b74981578e863ff834728c4b219254c9a951df54
diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index ae33e1f62fa6d..e2c315c1a22b7 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -3857,26 +3857,6 @@ pub const SHM_STAT: ::c_int = 13; pub const SHM_INFO: ::c_int = 14;...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 66eeebc61b6cb..c4b17150baeb4 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2328,12 +2328,6 @@ fn test_freebsd(target: &str) { // still be accepted and ignored at runtime. "MAP_RENAME" | "MAP_NORESERVE" => true, - ...
Remove obsolete constants in version 1.0.0 This issue tracks constants that should be removed from libc for release 1.0.0. The following are absent in FreeBSD 11, never had stable values across versions, and should never have been used by third party software. They should be removed from FreeBSD. ``` CTL_MAXID ...
Add to the list `AIO_LISTIO_MAX`. That symbol should never be used because the quantity it represents can potentially vary at runtime. Programs should use sysconf(3) instead. I've deprecated these on master, and they are also `doc(hidden)`. I'd say that we'd remove them in one of the next releases. I agree. Feel free...
2020-07-24T15:31:25Z
1.0
b74981578e863ff834728c4b219254c9a951df54
rust-lang/libc
1,830
rust-lang__libc-1830
[ "1744" ]
dce0ec0adb8f8ef711ea6b54e90429972f6077a0
diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs index 8b3ce3e2ea6a6..6ddb3257e2026 100644 --- a/src/unix/bsd/netbsdlike/netbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs @@ -92,7 +92,7 @@ s! { pub st_spare: [u32; 2], } - pub struct addrinfo { + p...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 648b0844a21d8..5cee9afb2d15d 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2551,6 +2551,11 @@ fn test_linux(target: &str) { "statx" => true, "statx_timestamp" => true, + // On Linux, the type of `ut_exit` fi...
request adding utmpx symvol on musl Cabulertion. Please add missing utmpx symvols on x86_64-unknown-linux-musl if skarnet libutmps present in system.
2020-07-21T00:27:58Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
1,734
rust-lang__libc-1734
[ "1733" ]
12c28abe7bb2a30792d28e819ca4bb4257ed8f0c
diff --git a/ci/README.md b/ci/README.md index 31235538071f8..7d4b4601c259e 100644 --- a/ci/README.md +++ b/ci/README.md @@ -4,6 +4,9 @@ result the CI is pretty complicated and also pretty large! Hopefully this can serve as a guide through the sea of scripts in this directory and elsewhere in this project. +Note th...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 4e5d1e0489217..49b43ca404e0f 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2137,7 +2137,7 @@ fn test_vxworks(target: &str) { "pathLib.h", "mqueue.h", } - /* Fix me */ + // FIXME cfg.skip_const(move ...
Documentation in `ci` is outdated [The documentation in `ci`](https://github.com/rust-lang/libc/blob/12c28abe7bb2a30792d28e819ca4bb4257ed8f0c/ci/README.md) states that Travis and Appveyor are used, but actually it seems you've migrated to Azure & Cirrus. Looks like it's time to update it a bit!
2020-04-13T18:26:19Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
1,727
rust-lang__libc-1727
[ "1700" ]
a1c40924ae8aed3156121fe21be4fe698b368711
diff --git a/src/unix/linux_like/linux/gnu/mod.rs b/src/unix/linux_like/linux/gnu/mod.rs index 9c3038bf7bc1c..e257e65f7ecef 100644 --- a/src/unix/linux_like/linux/gnu/mod.rs +++ b/src/unix/linux_like/linux/gnu/mod.rs @@ -399,6 +399,47 @@ cfg_if! { } } +// include/uapi/asm-generic/hugetlb_encode.h +pub const HUG...
diff --git a/libc-test/build.rs b/libc-test/build.rs index a1b7ad7f7270c..a8e0c015eeef4 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2240,6 +2240,7 @@ fn test_linux(target: &str) { "linux/keyctl.h", "linux/magic.h", "linux/memfd.h", + "linux/mman.h", "linux/mod...
Huge page size support in for mmap - MAP_HUGE_2MB, MAP_HUGE_1GB <!-- **Help us help you.** If you are requesting a new API, include: * the target triple * link to the documentation of the API showing the type signatures, how to use it, etc. In general, just please consider that the people who can help ...
https://github.com/torvalds/linux/blob/master/include/uapi/linux/mman.h this is where those are defined. They are no arch specific override (unlike `MAP_HUGTELB`), hence this can probably go at `linux_like/linux/mod.rs`
2020-04-09T10:09:00Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
1,697
rust-lang__libc-1697
[ "1591" ]
12c28abe7bb2a30792d28e819ca4bb4257ed8f0c
diff --git a/ci/azure.yml b/ci/azure.yml index 6dd0fcecba3c0..52d1e479469f3 100644 --- a/ci/azure.yml +++ b/ci/azure.yml @@ -76,10 +76,8 @@ jobs: # TARGET: wasm32-wasi sparc64-unknown-linux-gnu: TARGET: sparc64-unknown-linux-gnu - # Disabled because currently broken, see: - #...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 4e5d1e0489217..0d96f9dd1720d 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2008,6 +2008,14 @@ fn test_emscripten(target: &str) { // FIXME: is this necessary? "sigval" => true, + // FIXME: It was removed in +...
Emscripten targets broken on CI This tracks re-enabling CI for emscripten targets. This should happen when #1478 is merged.
2020-03-15T23:40:09Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
1,678
rust-lang__libc-1678
[ "1674" ]
7455403a235202bc355b939b6172214ada79ac48
diff --git a/src/unix/linux_like/linux/gnu/mod.rs b/src/unix/linux_like/linux/gnu/mod.rs index eb33d791c965d..e6d1ad77c1e3c 100644 --- a/src/unix/linux_like/linux/gnu/mod.rs +++ b/src/unix/linux_like/linux/gnu/mod.rs @@ -741,6 +741,37 @@ pub const NF_NETDEV_NUMHOOKS: ::c_int = 1; pub const NFPROTO_INET: ::c_int = 1; ...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 790bfa014e6aa..2a0f487166d65 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2237,6 +2237,7 @@ fn test_linux(target: &str) { "linux/if_ether.h", "linux/if_tun.h", "linux/input.h", + "linux/keyctl.h", "linu...
keyctl syscall constants missing As a follow up to #1663, I've done more research into the matter and see that there is a `keyctl` raw syscall as outlined [here](http://man7.org/linux/man-pages/man2/keyctl.2.html) and the syscall number is even already supported by the libc crate. It does seem like many of the constant...
2020-03-05T14:26:25Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
1,651
rust-lang__libc-1651
[ "1650" ]
8af0d7f6c8c394239366ba7d69214c1953a8bf66
diff --git a/src/unix/linux_like/android/mod.rs b/src/unix/linux_like/android/mod.rs index d87d241ecdeca..e88e4a61b6f53 100644 --- a/src/unix/linux_like/android/mod.rs +++ b/src/unix/linux_like/android/mod.rs @@ -1666,6 +1666,9 @@ pub const NF_IP6_PRI_SELINUX_LAST: ::c_int = 225; pub const NF_IP6_PRI_CONNTRACK_HELPER:...
diff --git a/libc-test/build.rs b/libc-test/build.rs index d16f0945599ff..790bfa014e6aa 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -1357,6 +1357,7 @@ fn test_android(target: &str) { "linux/netfilter/nf_tables.h", "linux/netfilter_ipv4.h", "linux/netfil...
Add IP6T_SO_ORIGINAL_DST for Linux ## Target - `i686-unknown-linux-gnu` - `x86_64-unknown-linux-gnu` ## References ```c // For IPv4, we can use SO_ORIGINAL_DST on SOL_IP level ret = getsockopt(fd, SOL_IP, SO_ORIGINAL_DST, destaddr, &socklen); // For IPv6, we should use IP6T_SO_ORIGINAL_DST on SOL_IPV6 le...
But actually, `IP6T_SO_ORIGINAL_DST` has exactly the same value as `SO_ORIGINAL_DST`. https://patchwork.ozlabs.org/patch/195443/ We can use `SO_ORIGINAL_DST` for now, temporary.
2020-02-01T03:19:37Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
1,586
rust-lang__libc-1586
[ "1585" ]
13d4a5da2eafd82d3ebb2acb729d8b8c9148fb1f
diff --git a/src/unix/bsd/netbsdlike/mod.rs b/src/unix/bsd/netbsdlike/mod.rs index 5ce68e2c17fa6..970cb233a191a 100644 --- a/src/unix/bsd/netbsdlike/mod.rs +++ b/src/unix/bsd/netbsdlike/mod.rs @@ -10,6 +10,7 @@ pub type nl_item = c_long; pub type clockid_t = ::c_int; pub type id_t = u32; pub type sem_t = *mut sem; +...
diff --git a/libc-test/build.rs b/libc-test/build.rs index b2512b85d6a9d..4ca79d72c1dc9 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -322,6 +322,7 @@ fn test_openbsd(target: &str) { "ufs/ufs/quota.h", "pthread_np.h", "sys/syscall.h", + "sys/shm.h", } cfg.skip...
SysV IPC APIs missing on OpenBSD See this issue: https://github.com/gnzlbg/slice_deque/issues/77#issue-518380526
cf landryb/libc@8c688c22bc25757f945f2acefc2d5038cb72229f for a quick wip. @semarie ? @landryb thanks for the wip. I will use it as base for the PR. I will have few fixes (but I will take care of that): - `sys/shm.h` header is need in `libc-test/build.rs` for proper testsuite run - `shm_segsz` is `int` and not a `s...
2019-11-07T07:34:15Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
1,378
rust-lang__libc-1378
[ "1178" ]
b6ab2f056c35caee56b47c5780d72da3c6d31697
diff --git a/src/unix/notbsd/linux/other/b32/arm.rs b/src/unix/notbsd/linux/other/b32/arm.rs index 8396fcd501dc9..d058fc451e377 100644 --- a/src/unix/notbsd/linux/other/b32/arm.rs +++ b/src/unix/notbsd/linux/other/b32/arm.rs @@ -607,3 +607,4 @@ pub const SYS_pwritev2: ::c_long = 393; pub const SYS_pkey_mprotect: ::c_l...
diff --git a/libc-test/build.rs b/libc-test/build.rs index b199d1cfbc370..5087906486002 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -1860,6 +1860,7 @@ fn test_linux(target: &str) { let x32 = target.contains("x32"); let mips = target.contains("mips"); let mips32_musl = mips && !target.cont...
Add statx linux system call so we can implement fs::Metadata::created on Linux Right now, `std::fs::Metadata::created` returns an `Err` on Linux. But the creation time is available with the `statx` system call. https://unix.stackexchange.com/a/407305/289105
Should be fine to send a PR to add this API! We haven't added other syscalls in the past (e.g. `memfd_create`: https://github.com/rust-lang/libc/pull/902#issuecomment-361280295). There is nothing blocking using this syscall in `std::fs` btw, you can just use `syscall` to call it yourselfe, like, e.g., I did with `memfd...
2019-05-29T10:56:45Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
1,354
rust-lang__libc-1354
[ "1338" ]
bf85aa6dfc5b782eb372b987fbbe2bc50e27c61b
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 9483e90b62458..53463abbc8e23 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -3045,6 +3045,8 @@ extern { pub fn lutimes(file: *const ::c_char, times: *const ::timeval) -> ::c_int; + pub fn gettimeofday(tp: *mu...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 6541fd5bd5801..03d0b55b392b7 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -315,9 +315,6 @@ fn test_openbsd(target: &str) { match name { "execv" | "execve" | "execvp" | "execvpe" => true, - // typed 2nd arg - ...
gettimeofday has incorrect signature The signature of `gettimeofday` incorrect on ~~most~~ all targets: ``` error: incompatible pointer types returning 'int (struct timeval *, struct timezone *)' from a function with result type 'int (*)(struct timeval *, void *)' [-Werror,-Wincompatible-pointer-types] cargo:warn...
Found this warning from [parking_lot_core 0.4.0](https://crates.io/crates/parking_lot_core). Seems to still be in use in master also. Code: https://github.com/Amanieu/parking_lot/blob/3259fd72e0d76e9c9a6f31ff41a996648fe9ccfa/core/src/thread_parker/unix.rs#L210 ``` warning: use of deprecated item 'libc::gettimeof...
2019-05-21T12:03:29Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
1,351
rust-lang__libc-1351
[ "1059" ]
caf17a0641d29dc624621177f5756804dd180c13
diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs index 2419a41d4c4c4..89c79620f76b1 100644 --- a/src/unix/notbsd/linux/mod.rs +++ b/src/unix/notbsd/linux/mod.rs @@ -1024,6 +1024,36 @@ pub const IFF_LOWER_UP: ::c_int = 0x10000; pub const IFF_DORMANT: ::c_int = 0x20000; pub const IFF_ECHO: ::c_i...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 6541fd5bd5801..d444a0a5bac88 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2358,6 +2358,7 @@ fn test_linux(target: &str) { "linux/futex.h", "linux/fs.h", "linux/genetlink.h", + "linux/if_addr.h", "linux/...
Route netlink C header #define's PR? This is a follow up to #921 which tracks the PR that implemented genetlink constants. I maintain a [netlink library](https://github.com/jbaublitz/neli) but am now implementing the next subsystem in netlink (rtnetlink). I would like to add the constants in the rtnetlink subsystem now...
Definitely! Always willing to have more constants and defines here :) Great! I'll gather all of the rtnetlink constants into a PR when I get a moment.
2019-05-20T17:03:02Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
1,337
rust-lang__libc-1337
[ "1333" ]
39ca01c8b3631db48c8e390f93f62e52b51a68b9
diff --git a/.travis.yml b/.travis.yml index 7175ae4aad836..ad8df0763713e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -204,7 +204,7 @@ matrix: stage: tier2 - env: TARGET=x86_64-unknown-linux-musl stage: tier2 - - env: TARGET=wasm32-unknown-wasi + - env: TARGET=wasm32-wasi rust: nightly...
diff --git a/libc-test/build.rs b/libc-test/build.rs index aba2a3056852c..4ff6b3a503f38 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -13,378 +13,291 @@ fn do_cc() { } fn do_ctest() { - let target = env::var("TARGET").unwrap(); - let aarch64 = target.contains("aarch64"); - let i686 = target.c...
Ubuntu 17.10 repository is no longer available It will result in following jobs failure: https://github.com/rust-lang/libc/search?l=Dockerfile&q=17.10 cc https://github.com/rust-lang/libc/pull/1297
2019-05-14T08:40:34Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
1,224
rust-lang__libc-1224
[ "1170" ]
70284d78eebe89dcc941147bfb331a59c4fcc15b
diff --git a/.travis.yml b/.travis.yml index da882aea61b9d..52d2403cd5963 100644 --- a/.travis.yml +++ b/.travis.yml @@ -89,8 +89,9 @@ matrix: - shellcheck ci/*.sh allow_failures: - - env: TARGET=aarch64-linux-android - - env: TARGET=x86_64-linux-android + # FIXME: https://github.com/rust-lang/...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 7606800afb9cd..5edbdf5b73893 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -658,7 +658,7 @@ fn main() { // MFD_HUGETLB is not available in some older libc versions on the CI builders. On the // x86_64 and i686 builders it...
Fix flakiness of Android builds In https://github.com/rust-lang/libc/pull/1159 I'm configuring some android builds under "allowed failures". They've been insanely flaky recently and are basically just serving as preventing things from landing currently. This issue is intended to track re-enabling these as gating by def...
I don't know exactly why these stall. Sometimes things fail to download, so maybe retying multiple times would help, but sometimes the installer just hangs waiting for a `Y/n` input =/
2019-01-21T19:35:11Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
1,114
rust-lang__libc-1114
[ "856" ]
04a13d1b979e12a999fcef99437eabc0e6c806c6
diff --git a/.travis.yml b/.travis.yml index 197d8c663b93f..d5982e6e4d262 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,8 +53,6 @@ matrix: - env: TARGET=arm-unknown-linux-musleabihf - env: TARGET=aarch64-unknown-linux-gnu - env: TARGET=aarch64-unknown-linux-musl - # FIXME(#856) - rust: 1.22...
diff --git a/libc-test/build.rs b/libc-test/build.rs index db6588b802ba0..be148b83fb4a6 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -304,6 +304,7 @@ fn main() { cfg.header("pthread_np.h"); cfg.header("sched.h"); cfg.header("ufs/ufs/quota.h"); + cfg.header("sys/extattr.h...
aarch64-unknown-linux-musl double panic on 1.23.0+ This is the current beta channel as of this writing. No idea why it double panics, gonna pin it to 1.22.0
The timing is a bit different, but I wonder if this could be related to rust-lang/rust#48967?
2018-10-30T19:32:06Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
930
rust-lang__libc-930
[ "928" ]
bb2a95c9f229593ad6ce135c7900fad75ef5c47d
diff --git a/appveyor.yml b/appveyor.yml index 07ac4a92a5ae1..fe2a332a1c425 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -24,4 +24,5 @@ build: false test_script: - cargo test --target %TARGET% + - cargo test --no-default-features --target %TARGET% - cargo test --manifest-path libc-test/Cargo.toml --target ...
diff --git a/libc-test/Cargo.toml b/libc-test/Cargo.toml index 771d3b3ff0b04..8d0f9d34e6e09 100644 --- a/libc-test/Cargo.toml +++ b/libc-test/Cargo.toml @@ -4,12 +4,17 @@ version = "0.1.0" authors = ["Alex Crichton <alex@alexcrichton.com>"] build = "build.rs" -[dependencies] -libc = { path = ".." } +[dependencies.l...
Hard error compiling libc 0.2.36: #![feature(link_cfg)] missing ? ```shell Compiling libc v0.2.36 error[E0658]: is feature gated (see issue #37406) --> /cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.36/src/unix/mod.rs:279:9 | 279 | #[link(name = "c", kind = "static", cfg(target_feature =...
Seems to only fail when building libc with `--no-default-features` on some targets: * arm-unknown-linux-musleabi * armv7-unknown-linux-musleabi * i686-unknown-linux-musl * x86_64-unknown-linux-musl Looks like `libc`'s CI does not test building libc with `--no-default-features`... opening an issue about this: http...
2018-02-27T17:56:09Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
902
rust-lang__libc-902
[ "901" ]
041fd77ea72a0ea6974439130921ed593903bcf8
diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs index 6ab171d44ad9c..c2900de085eb4 100644 --- a/src/unix/notbsd/linux/mod.rs +++ b/src/unix/notbsd/linux/mod.rs @@ -1481,7 +1481,6 @@ extern { nbytes: ::off64_t, flags: ::c_uint) -> ::c_int; pub fn getifaddrs(ifap:...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 1c1b0f5c2579d..a864615879204 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -99,6 +99,7 @@ fn main() { cfg.header("sys/socket.h"); if linux && !musl { cfg.header("linux/if.h"); + cfg.header("sys/auxv.h"); ...
mallinfo is missing http://man7.org/linux/man-pages/man3/mallinfo.3.html
2018-01-17T17:30:50Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
634
rust-lang__libc-634
[ "632" ]
158d778258124b7def4107f3003c23dafa08c2d8
diff --git a/ci/android-install-ndk.sh b/ci/android-install-ndk.sh index 75bcd20f2f77d..873f6c52c8f18 100644 --- a/ci/android-install-ndk.sh +++ b/ci/android-install-ndk.sh @@ -11,8 +11,8 @@ set -ex -curl -O https://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip -unzip -q android-ndk-r13b-linux...
diff --git a/libc-test/build.rs b/libc-test/build.rs index b77b3161b2191..6ff46b2c16103 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -179,7 +179,6 @@ fn main() { cfg.header("sys/shm.h"); cfg.header("sys/user.h"); cfg.header("sys/fsuid.h"); - cfg.header("pty.h"); ...
Not up-to-date with latest Android NDK When trying to build the nix crate for target arm-linux-androideabi (nix-rust/nix#313), it fails with some undefined symbols that are present in the latest Android NDK headers (some seem to be added in Android API 21). Since nearly all the symbols are merged in the android/mod....
Thanks for the report! We take PRs at any point to add new constants and such and you can also just update the [associated `Dockerfile`](https://github.com/rust-lang/libc/blob/master/ci/docker/arm-linux-androideabi/Dockerfile) to the latest ndk to ensure that CI passes. I'm working on adding these constants but I face ...
2017-06-29T21:46:28Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
596
rust-lang__libc-596
[ "595" ]
a285387a9e8fb010d310193f87a98800c94b3084
diff --git a/src/unix/mod.rs b/src/unix/mod.rs index c2d1f10e40638..8d794e7459072 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -405,7 +405,9 @@ extern { pub fn lchown(path: *const c_char, uid: uid_t, gid: gid_t) -> ::c_int; #[cfg_attr(all(target_os = "macos", target_arch = "x86"), ...
diff --git a/libc-test/build.rs b/libc-test/build.rs index 61a0407768b14..b08bcce0d6dc9 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -500,7 +500,7 @@ fn main() { "backtrace" | "sysinfo" | "newlocale" | "duplocale" | "freelocale" | "uselocale" | "nl_langinfo_l" | "wc...
plain libc close(fd) is unreliable on MacOSX Should probably switch to the methods reccomended here lionheart/openradar-mirror#4506 **An alternative version available on Mac OS X, close$NOCANCEL$UNIX2003 (32-bit x86) and close$NOCANCEL (x86_64) is available.**
Oops, just saw its being used! https://github.com/rust-lang/libc/blob/19f3be3638322e343f90c50ec8d30de9e4972940/src/unix/mod.rs Line 407, so its all good. Oops, looks like it reccomends the NOCANCEL variant, so reopening Oh seems like a great thing to change! Do you know the version compatibility for this symbol? For...
2017-05-18T17:10:47Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
538
rust-lang__libc-538
[ "536" ]
5dd2f3917b3fa842c9c423850a9060dfcfdd916d
diff --git a/.travis.yml b/.travis.yml index 3172a6fd69f9e..93236a8d0c6a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,6 +51,12 @@ matrix: - os: linux env: TARGET=arm-linux-androideabi rust: stable + - os: linux + env: TARGET=aarch64-linux-android + rust: stable + - os: linux + ...
diff --git a/libc-test/build.rs b/libc-test/build.rs index a0390522574e9..4ebba509e19b0 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -6,6 +6,7 @@ use std::env; fn main() { let target = env::var("TARGET").unwrap(); + let aarch64 = target.contains("aarch64"); let x86_64 = target.contains("x...
Add tests for others android platforms The libc-test runs for arm-linux-android. It would be great if it were also run for aarch64-linux-android and i686-linux-android.
@alexcrichton I have a local git branch that add tests for these platforms. I had to update the android sdk from 24.4.1 to 25.2.5 (last version) to run aarch64 tests. Some tests are failing, I will try to fix them. Would you accept such PR? Should I have one container for each platform, or just one container? The...
2017-02-24T20:18:36Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919
rust-lang/libc
274
rust-lang__libc-274
[ "273" ]
e2af62369866a41b553ca171c5471fd064feb998
diff --git a/Cargo.toml b/Cargo.toml index 278adbaa47d12..3faf83f87cfda 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "libc" -version = "0.2.10" +version = "0.2.11" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md"
diff --git a/libc-test/Cargo.lock b/libc-test/Cargo.lock index d92849db192a4..e2b6664a90aa9 100644 --- a/libc-test/Cargo.lock +++ b/libc-test/Cargo.lock @@ -3,7 +3,7 @@ name = "libc-test" version = "0.1.0" dependencies = [ "ctest 0.1.0 (git+https://github.com/alexcrichton/ctest)", - "libc 0.2.10", + "libc 0.2.11", ...
New Version Could you please release a new version. I would like to use the changes made during the last half month.
2016-05-03T16:39:38Z
0.2
78d6dcb4b8d60c9ae0f2c59444613ecf5a2bf919