repo stringclasses 1
value | pull_number int64 237 4.09k | instance_id stringlengths 19 20 | issue_numbers sequencelengths 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 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 11