bors
af34f07aa7
Auto merge of #2861 - Tastaturtaste:master, r=Amanieu
...
Fix for https://github.com/rust-lang/libc/issues/2860
This PR is intended to fix https://github.com/rust-lang/libc/issues/2860 .
As indicated in the issue, this fix requires linking against "legacy_stdio_definitions.lib", [which is only provided with Visual Studio >=15](https://docs.microsoft.com/en-us/cpp/porting/overview-of-potential-upgrade-issues-visual-cpp?view=msvc-170#libraries ). I don't know how this could be checked conditionally at compile time though.
2022-08-08 11:26:21 +00:00
bors
9d4e780211
Auto merge of #2855 - i509VCB:siginfo, r=Amanieu
...
add BUS_ si_code constants
2022-08-07 14:40:01 +00:00
bors
4c0cb814db
Auto merge of #2863 - joshtriplett:libc-test-version, r=JohnTitor
...
Bump libc-test version to match libc
2022-08-04 11:50:40 +00:00
Josh Triplett
d86971206e
Bump libc-test to match libc
2022-08-04 02:07:14 -07:00
bors
431591aa35
Auto merge of #2858 - poliorcetics:master, r=Amanieu
...
feat: Add `f_flags_ext` member to Apple's `statfs` structure
See the header `usr/include/sys/mount.h`:
```c
#define __DARWIN_STRUCT_STATFS64 { \
uint32_t f_bsize; /* fundamental file system block size */ \
int32_t f_iosize; /* optimal transfer block size */ \
uint64_t f_blocks; /* total data blocks in file system */ \
uint64_t f_bfree; /* free blocks in fs */ \
uint64_t f_bavail; /* free blocks avail to non-superuser */ \
uint64_t f_files; /* total file nodes in file system */ \
uint64_t f_ffree; /* free file nodes in fs */ \
fsid_t f_fsid; /* file system id */ \
uid_t f_owner; /* user that mounted the filesystem */ \
uint32_t f_type; /* type of filesystem */ \
uint32_t f_flags; /* copy of mount exported flags */ \
uint32_t f_fssubtype; /* fs sub-type (flavor) */ \
char f_fstypename[MFSTYPENAMELEN]; /* fs type name */ \
char f_mntonname[MAXPATHLEN]; /* directory on which mounted */ \
char f_mntfromname[MAXPATHLEN]; /* mounted filesystem */ \
uint32_t f_flags_ext; /* extended flags */ \
uint32_t f_reserved[7]; /* For future use */ \
}
```
2022-08-04 04:03:07 +00:00
Tastaturtaste
2ec8995d01
Fix for https://github.com/rust-lang/libc/issues/2860
2022-08-04 01:10:32 +02:00
bors
7d55e3846d
Auto merge of #2859 - joshtriplett:master, r=Amanieu
...
libc 0.2.127
2022-08-03 20:59:18 +00:00
Josh Triplett
24bab07e07
libc 0.2.127
2022-08-03 12:10:53 -07:00
Alexis (Poliorcetics) Bourget
21f40becdf
feat: Add f_flags_ext
member to Apple's statfs
structure
...
See the header `usr/include/sys/mount.h`:
```c
\#define __DARWIN_STRUCT_STATFS64 { \
uint32_t f_bsize; /* fundamental file system block size */ \
int32_t f_iosize; /* optimal transfer block size */ \
uint64_t f_blocks; /* total data blocks in file system */ \
uint64_t f_bfree; /* free blocks in fs */ \
uint64_t f_bavail; /* free blocks avail to non-superuser */ \
uint64_t f_files; /* total file nodes in file system */ \
uint64_t f_ffree; /* free file nodes in fs */ \
fsid_t f_fsid; /* file system id */ \
uid_t f_owner; /* user that mounted the filesystem */ \
uint32_t f_type; /* type of filesystem */ \
uint32_t f_flags; /* copy of mount exported flags */ \
uint32_t f_fssubtype; /* fs sub-type (flavor) */ \
char f_fstypename[MFSTYPENAMELEN]; /* fs type name */ \
char f_mntonname[MAXPATHLEN]; /* directory on which mounted */ \
char f_mntfromname[MAXPATHLEN]; /* mounted filesystem */ \
uint32_t f_flags_ext; /* extended flags */ \
uint32_t f_reserved[7]; /* For future use */ \
}
```
2022-08-02 15:58:20 +02:00
i509VCB
bdd3baa875
add BUS_ si_code constants
2022-07-31 18:33:26 -05:00
bors
4bfd852c8f
Auto merge of #2854 - pabigot:pabigot/20220729a, r=JohnTitor
...
linux: add TFD_TIMER_CANCEL_ON_SET constant
This constant was added in Linux v3.0 and glibc 2.26.
2022-07-29 23:59:13 +00:00
Peter A. Bigot
f4f0cdbc39
linux: add TFD_TIMER_CANCEL_ON_SET constant
...
This constant was added in Linux v3.0 and glibc 2.26.
2022-07-29 16:30:56 -07:00
bors
d90fcbff34
Auto merge of #2853 - youknowone:ios-memmem, r=JohnTitor
...
memmem and task_set_info are available on iOS
memmem: __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3)
task_set_info: __TVOS_PROHIBITED __WATCHOS_PROHIBITED
2022-07-29 22:47:28 +00:00
Jeong YunWon
c396a30350
memmem and task_set_info is available on iOS
...
memmem: __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3)
task_set_info: __TVOS_PROHIBITED __WATCHOS_PROHIBITED
2022-07-28 08:35:52 +09:00
bors
f143f2b9ac
Auto merge of #2852 - joshtriplett:version-note, r=JohnTitor
...
README.md: Clarify (lack of) MSRV policy
MSRV policy is still being discussed on an ongoing basis in
https://github.com/rust-lang/libs-team/issues/72 . In the interim,
clarify in README that libc doesn't currently have an MSRV policy.
2022-07-26 21:53:22 +00:00
Josh Triplett
39f779c1df
README.md: Clarify (lack of) MSRV policy
...
MSRV policy is still being discussed on an ongoing basis in
https://github.com/rust-lang/libs-team/issues/72 . In the interim,
clarify in README that libc doesn't currently have an MSRV policy.
2022-07-26 11:38:58 -07:00
bors
5e001f5dd1
Auto merge of #2849 - devnexen:socket_linux_update, r=JohnTitor
...
Few socket updates related for Linux.
2022-07-22 11:59:53 +00:00
David Carlier
2b05c864d1
Few socket updates related for Linux.
2022-07-22 12:42:17 +01:00
bors
4238054fb9
Auto merge of #2838 - devnexen:linux_followup_prctl, r=JohnTitor
...
linux prctl add speculation control flags
2022-07-20 22:01:38 +00:00
David Carlier
6bc25bc6d3
linux prctl add speculation control flags
2022-07-20 20:57:08 +01:00
bors
29217b9147
Auto merge of #2847 - obrown06:add-ethpip, r=JohnTitor
...
Add ETH_P_IP to Fuchsia public constants
2022-07-17 10:55:53 +00:00
Nick Brown
f274d90762
Add ETH_P_IP to Fuchsia public constants
2022-07-15 20:32:23 +00:00
bors
8dbd2c9653
Auto merge of #2841 - asomers:openbsd-chflags, r=Amanieu
...
Fix the type of file flags on OpenBSD
In C they're defined as macros, but since they're used with chflags(2)
they should have the same type as that function's flags argument.
2022-07-12 12:42:14 +00:00
bors
8fdcb90c6b
Auto merge of #2846 - joshtriplett:style-quickfix, r=Amanieu
...
style: Format errors so that editors can jump to file/line
With this change, it's now possible to do:
```
./style src > e
vim -q e
```
2022-07-12 10:48:07 +00:00
bors
fb8d512a6a
Auto merge of #2842 - rtzoeller:freebsd-cpu-macros, r=Amanieu
...
Fix FreeBSD CPU_ macros
The current definitions conflate bits and bytes, leading to panics.
Found while trying to add support for `nix::sched::sched_setaffinity` to FreeBSD.
2022-07-12 09:34:09 +00:00
Josh Triplett
18813fbdd1
style: Format errors so that editors can jump to file/line
...
With this change, it's now possible to do:
```
./style src > e
vim -q e
```
2022-07-11 23:37:09 -07:00
Ryan Zoeller
57dff108b9
Fix FreeBSD CPU_ macros
...
The current definitions conflate bits and bytes, leading to panics.
2022-07-11 18:33:09 -05:00
Alan Somers
27264ed09d
Fix the type of file flags on OpenBSD
...
In C they're defined as macros, but since they're used with chflags(2)
they should have the same type as that function's flags argument.
2022-07-10 09:32:33 -06:00
bors
b01a39a237
Auto merge of #2840 - devnexen:linux_prctl_update3, r=JohnTitor
...
CI / Docker Linux Tier1 (i686-unknown-linux-gnu) (push) Has been cancelled
Upload documentation / Upload documentation (push) Has been cancelled
CI / Docker Linux Tier1 (x86_64-unknown-linux-gnu) (push) Has been cancelled
CI / macOS (x86_64-apple-darwin) (push) Has been cancelled
CI / Windows (i686-pc-windows-msvc) (push) Has been cancelled
CI / Windows (map[ARCH:x86_64 ARCH_BITS:64], x86_64-pc-windows-gnu) (push) Has been cancelled
CI / Windows (x86_64-pc-windows-msvc) (push) Has been cancelled
CI / Style check (push) Has been cancelled
prctl process timing control options for android.
2022-07-07 23:36:01 +00:00
bors
888c473266
Auto merge of #2839 - nielx:haiku-posix_spawn, r=JohnTitor
...
Haiku: add the posix_spawn functions and constants
Tested with libc-test.
2022-07-07 22:35:31 +00:00
David Carlier
3c93c40d68
prctl process timing control options for android.
2022-07-07 22:24:16 +01:00
bors
a2f7dac029
Auto merge of #2837 - devnexen:linux_ptr_auth_followup, r=JohnTitor
...
linux arm64 pointer, prctl auth control follow-up.
2022-07-02 15:09:04 +00:00
Niels Sascha Reedijk
8b55add963
Haiku: add the posix_spawn functions and constants
2022-07-02 08:16:03 +00:00
David Carlier
fbe15c6125
linux arm64 pointer, prctl auth control follow-up.
2022-06-29 06:31:37 +01:00
bors
ce3d1a2b86
Auto merge of #2833 - devnexen:linux_prctl_update, r=JohnTitor
...
linux/glibc tagged ptr supports for arm64 control addition.
2022-06-26 09:35:46 +00:00
David Carlier
a7df4defb3
linux/glibc tagged ptr supports for arm64 control addition.
2022-06-26 10:08:16 +01:00
bors
cdfc35c553
Auto merge of #2834 - devnexen:task_set_info, r=JohnTitor
...
task_set_info addition, on macOs only.
2022-06-25 22:20:05 +00:00
David CARLIER
2962ad63ee
task_set_info addition, on macOs only.
2022-06-24 19:17:57 +01:00
bors
fc10a373c1
Auto merge of #2831 - JohnTitor:macos-12-ci, r=Amanieu
...
Upgrade macOS image to 12
macOS 12 on GHA is now GA: https://github.blog/changelog/2022-06-13-github-actions-macos-12-for-github-hosted-runners-is-now-generally-available/
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-06-22 12:12:47 +00:00
bors
061f3b07f5
Auto merge of #2830 - tiann:master, r=JohnTitor
...
Add rtnetlink.h, if_link.h, if_addr.h to Android
Here is the NDK header:
[rtnetlink.h](https://android.googlesource.com/platform/prebuilts/ndk/+/dev/platform/sysroot/usr/include/linux/rtnetlink.h )
[if_link.h](https://android.googlesource.com/platform/prebuilts/ndk/+/dev/platform/sysroot/usr/include/linux/if_link.h )
[if_addr.h](https://android.googlesource.com/platform/prebuilts/ndk/+/dev/platform/sysroot/usr/include/linux/if_addr.h )
It is the same with Linux header, so i copied it from:https://github.com/rust-lang/libc/blob/master/src/unix/linux_like/linux/mod.rs
2022-06-22 09:09:17 +00:00
tiann
f5b47404c3
Add rtnetlink.h, if_addr.h, if_link.h header to Android
2022-06-22 16:48:47 +08:00
bors
9dc2b725e2
Auto merge of #2823 - brunowonka:fuchsia, r=JohnTitor
...
Add IPv6 CMSG options to Fuchsia
2022-06-21 22:39:12 +00:00
Bruno Dal Bo
f2b3a45a08
Automatically derive traits for in6_pktinfo
2022-06-21 11:10:49 -07:00
tiann
8630d92039
Add rtnetlink.h, if_link.h header to Android
2022-06-22 00:58:44 +08:00
Yuki Okushi
1bb4ab3acf
Remove a workaround for older macOS
...
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-06-21 23:34:30 +09:00
Yuki Okushi
3655f46581
Upgrade macOS image to 12
...
macOS 12 on GHA is now GA: https://github.blog/changelog/2022-06-13-github-actions-macos-12-for-github-hosted-runners-is-now-generally-available/
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-06-21 23:17:59 +09:00
bors
f292633ab2
Auto merge of #2829 - devnexen:fbsd_mfd_upd, r=Amanieu
...
memfd_create additional flags for FreeBSD.
2022-06-20 01:37:49 +00:00
David CARLIER
25f21514ad
memfd_create additional flags for FreeBSD.
2022-06-19 23:28:45 +01:00
bors
956ea0e50a
Auto merge of #2828 - JohnTitor:remove-rumprun-support, r=Amanieu
...
Drop support for Rumprun
Closes #2091
Also, document "Supported target policy" on the contributing.md. I'm not sure what we should say other than "Rust removes it, we also may remove it", so put only that for now. Any suggestion is appreciated.
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-06-19 10:06:41 +00:00
Yuki Okushi
a0d4f2d78e
Remove rumprun-related code
...
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-06-19 11:37:41 +09:00