Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions ci/verify-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ class TargetResult:
Target("powerpc-unknown-netbsd", dist=False),
Target("powerpc-wrs-vxworks", dist=False),
Target("powerpc-wrs-vxworks-spe", dist=False),
# FIXME(rust-lang/rust#162979)
# Target("powerpc64-ibm-aix", dist=False),
Target("powerpc64-ibm-aix", dist=False),
Target("powerpc64-unknown-freebsd", dist=False),
Target("powerpc64-unknown-linux-gnuelfv2", dist=False),
Target("powerpc64-wrs-vxworks", dist=False),
Expand Down
1 change: 0 additions & 1 deletion libc-test/semver/dragonfly.txt
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@ IMAXBEL
INHERIT_COPY
INHERIT_NONE
INHERIT_SHARE
INHERIT_ZERO
INIT_PROCESS
IOV_MAX
IPC_CREAT
Expand Down
4 changes: 4 additions & 0 deletions libc-test/semver/macos.txt
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ mach_timebase_info
mach_timebase_info_data_t
mach_vm_map
memmem
posix_spawn_file_actions_addchdir
posix_spawn_file_actions_addchdir_np
posix_spawn_file_actions_addfchdir
posix_spawn_file_actions_addfchdir_np
proc_bsdinfo
proc_bsdshortinfo
proc_kmsgbuf
Expand Down
2 changes: 1 addition & 1 deletion src/new/glibc/sysdeps/unix/linux/bits/statvfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use crate::prelude::*;

s! {
s2! {
pub struct statvfs {
pub f_bsize: c_ulong,
pub f_frsize: c_ulong,
Expand Down
5 changes: 4 additions & 1 deletion src/new/netbsd/sys/statvfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::prelude::*;
const _VFS_NAMELEN: usize = 32;
const _VFS_MNAMELEN: usize = 1024;

s! {
s2! {
pub struct statvfs {
pub f_flag: c_ulong,
pub f_bsize: c_ulong,
Expand Down Expand Up @@ -38,8 +38,11 @@ s! {
// This type is updated in a future version
f_spare: Padding<[u32; 4]>,

#[custom_default([0; _VFS_NAMELEN])]
pub f_fstypename: [c_char; _VFS_NAMELEN],
#[custom_default([0; _VFS_MNAMELEN])]
pub f_mntonname: [c_char; _VFS_MNAMELEN],
#[custom_default([0; _VFS_MNAMELEN])]
pub f_mntfromname: [c_char; _VFS_MNAMELEN],
// Added in NetBSD10
// pub f_mntfromlabel: [c_char; _VFS_MNAMELEN],
Expand Down
2 changes: 1 addition & 1 deletion src/unix/bsd/apple/b64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use crate::prelude::*;

s2! {
#[exhaustive] // FIXME(exhaustive): review for 1.0
#[exhaustive] // unlikely to change
pub struct timeval32 {
pub tv_sec: i32,
pub tv_usec: i32,
Expand Down
20 changes: 20 additions & 0 deletions src/unix/bsd/apple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5141,6 +5141,26 @@ extern "C" {
fd: c_int,
newfd: c_int,
) -> c_int;
#[cfg(target_os = "macos")]
pub fn posix_spawn_file_actions_addchdir_np(
actions: *mut posix_spawn_file_actions_t,
path: *const c_char,
) -> c_int;
#[cfg(target_os = "macos")]
pub fn posix_spawn_file_actions_addfchdir_np(
actions: *mut posix_spawn_file_actions_t,
fd: c_int,
) -> c_int;
#[cfg(target_os = "macos")]
pub fn posix_spawn_file_actions_addchdir(
actions: *mut posix_spawn_file_actions_t,
path: *const c_char,
) -> c_int;
#[cfg(target_os = "macos")]
pub fn posix_spawn_file_actions_addfchdir(
actions: *mut posix_spawn_file_actions_t,
fd: c_int,
) -> c_int;
pub fn uname(buf: *mut crate::utsname) -> c_int;

pub fn connectx(
Expand Down
2 changes: 1 addition & 1 deletion src/unix/bsd/freebsdlike/dragonfly/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ s! {
pub st_ctime_nsec: c_long,
pub st_size: off_t,
pub st_blocks: i64,
pub __old_st_blksize: u32,
__old_st_blksize: u32,
pub st_flags: u32,
pub st_gen: u32,
pub st_lspare: i32,
Expand Down
2 changes: 2 additions & 0 deletions src/unix/bsd/freebsdlike/freebsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2291,6 +2291,8 @@ pub const NOTE_ABSTIME: u32 = 0x00000010;

pub const MADV_PROTECT: c_int = 10;

pub const INHERIT_ZERO: c_int = 3;

pub const CTL_SYSCTL: c_int = 0;
pub const CTL_KERN: c_int = 1;
pub const CTL_VM: c_int = 2;
Expand Down
1 change: 0 additions & 1 deletion src/unix/bsd/freebsdlike/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,6 @@ pub const MAP_FAILED: *mut c_void = !0 as *mut c_void;
pub const INHERIT_SHARE: c_int = 0;
pub const INHERIT_COPY: c_int = 1;
pub const INHERIT_NONE: c_int = 2;
pub const INHERIT_ZERO: c_int = 3;

pub const MCL_CURRENT: c_int = 0x0001;
pub const MCL_FUTURE: c_int = 0x0002;
Expand Down
12 changes: 6 additions & 6 deletions src/unix/cygwin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1658,12 +1658,12 @@ pub const _IOLBF: c_int = 1;
pub const _IONBF: c_int = 2;
pub const BUFSIZ: c_int = 1024;

pub const POSIX_SPAWN_RESETIDS: c_int = 0x01;
pub const POSIX_SPAWN_SETPGROUP: c_int = 0x02;
pub const POSIX_SPAWN_SETSCHEDPARAM: c_int = 0x04;
pub const POSIX_SPAWN_SETSCHEDULER: c_int = 0x08;
pub const POSIX_SPAWN_SETSIGDEF: c_int = 0x10;
pub const POSIX_SPAWN_SETSIGMASK: c_int = 0x20;
pub const POSIX_SPAWN_RESETIDS: c_short = 0x01;
pub const POSIX_SPAWN_SETPGROUP: c_short = 0x02;
pub const POSIX_SPAWN_SETSCHEDPARAM: c_short = 0x04;
pub const POSIX_SPAWN_SETSCHEDULER: c_short = 0x08;
pub const POSIX_SPAWN_SETSIGDEF: c_short = 0x10;
pub const POSIX_SPAWN_SETSIGMASK: c_short = 0x20;

pub const POSIX_FADV_NORMAL: c_int = 0;
pub const POSIX_FADV_SEQUENTIAL: c_int = 1;
Expand Down
4 changes: 2 additions & 2 deletions src/unix/linux_like/l4re/uclibc/aarch64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ s! {

pub struct stat64 {
pub st_dev: c_ulong,
pub __pad1: c_uint,
pub __st_ino: crate::ino_t,
__pad1: Padding<c_uint>,
__st_ino: crate::ino_t,
pub st_mode: crate::mode_t,
pub st_nlink: nlink_t,
pub st_uid: crate::uid_t,
Expand Down
2 changes: 1 addition & 1 deletion src/unix/linux_like/linux/gnu/b32/m68k/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ s! {
pub struct stat64 {
pub st_dev: crate::dev_t,
__pad1: Padding<c_ushort>,
pub __st_ino: crate::ino_t,
__st_ino: crate::ino_t,
pub st_mode: crate::mode_t,
pub st_nlink: crate::nlink_t,
pub st_uid: crate::uid_t,
Expand Down
4 changes: 2 additions & 2 deletions src/unix/linux_like/linux/uclibc/arm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ s! {

pub struct stat64 {
pub st_dev: c_ulonglong,
pub __pad1: c_uint,
pub __st_ino: crate::ino_t,
__pad1: Padding<c_uint>,
__st_ino: crate::ino_t,
pub st_mode: crate::mode_t,
pub st_nlink: crate::nlink_t,
pub st_uid: crate::uid_t,
Expand Down
6 changes: 3 additions & 3 deletions src/unix/nto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ s! {
pub st_rdev: crate::dev_t,
pub st_uid: crate::uid_t,
pub st_gid: crate::gid_t,
pub __old_st_mtime: crate::_Time32t,
pub __old_st_atime: crate::_Time32t,
pub __old_st_ctime: crate::_Time32t,
__old_st_mtime: crate::_Time32t,
__old_st_atime: crate::_Time32t,
__old_st_ctime: crate::_Time32t,
pub st_mode: mode_t,
pub st_nlink: crate::nlink_t,
pub st_blocksize: crate::blksize_t,
Expand Down
Loading