Skip to content
Open
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
1 change: 1 addition & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ fn test_openbsd(target: &str) {
"sys/syscall.h",
"sys/shm.h",
"sys/param.h",
"sys/auxv.h",
}

cfg.rename_type(|ty| match ty {
Expand Down
6 changes: 6 additions & 0 deletions libc-test/semver/openbsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ ATF_PUBL
ATF_USETRAILERS
AT_EACCESS
AT_FDCWD
AT_HWCAP
AT_HWCAP2
AT_IGNORE
AT_NULL
AT_PAGESZ
AT_REMOVEDIR
AT_SYMLINK_FOLLOW
AT_SYMLINK_NOFOLLOW
Expand Down Expand Up @@ -1090,6 +1095,7 @@ dl_phdr_info
drand48
dup3
duplocale
elf_aux_info
endgrent
endpwent
endservent
Expand Down
8 changes: 8 additions & 0 deletions src/unix/bsd/netbsdlike/openbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,12 @@ pub const AT_SYMLINK_NOFOLLOW: c_int = 0x02;
pub const AT_SYMLINK_FOLLOW: c_int = 0x04;
pub const AT_REMOVEDIR: c_int = 0x08;

pub const AT_NULL: c_int = 0;
pub const AT_IGNORE: c_int = 1;
pub const AT_PAGESZ: c_int = 6;
pub const AT_HWCAP: c_int = 25;
pub const AT_HWCAP2: c_int = 26;

#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
pub const RLIM_NLIMITS: c_int = 9;

Expand Down Expand Up @@ -2074,6 +2080,8 @@ extern "C" {
pub fn fstatfs(fd: c_int, buf: *mut statfs) -> c_int;
pub fn getmntinfo(mntbufp: *mut *mut crate::statfs, flags: c_int) -> c_int;
pub fn getfsstat(buf: *mut statfs, bufsize: size_t, flags: c_int) -> c_int;

pub fn elf_aux_info(aux: c_int, buf: *mut c_void, buflen: c_int) -> c_int;
}

#[link(name = "execinfo")]
Expand Down
Loading