Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename the notbsd module to linux_like #1389

Merged
merged 1 commit into from
Jun 4, 2019
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
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@ pub const RTLD_GLOBAL: ::c_int = 0x100;
pub const RTLD_NOLOAD: ::c_int = 0x4;

// TODO(#247) Temporarily musl-specific (available since musl 0.9.12 / Linux
// kernel 3.10). See also notbsd/mod.rs
// kernel 3.10). See also linux_like/mod.rs
pub const CLOCK_SGI_CYCLE: ::clockid_t = 10;
pub const CLOCK_TAI: ::clockid_t = 11;

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ pub const RTLD_GLOBAL: ::c_int = 0x100;
pub const RTLD_NOLOAD: ::c_int = 0x4;

// TODO(#247) Temporarily musl-specific (available since musl 0.9.12 / Linux
// kernel 3.10). See also notbsd/mod.rs
// kernel 3.10). See also linux_like/mod.rs
pub const CLOCK_SGI_CYCLE: ::clockid_t = 10;
pub const CLOCK_TAI: ::clockid_t = 11;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1101,11 +1101,10 @@ extern {
pub fn getauxval(type_: ::c_ulong) -> ::c_ulong;
#[cfg_attr(target_os = "netbsd", link_name = "__getpwent_r50")]
#[cfg_attr(target_os = "solaris", link_name = "__posix_getpwent_r")]
pub fn getpwent_r(pwd: *mut ::unix::notbsd::linux::passwd,
pub fn getpwent_r(pwd: *mut ::passwd,
buf: *mut ::c_char,
buflen: ::size_t,
result: *mut *mut ::unix::notbsd
::linux::passwd) -> ::c_int;
result: *mut *mut ::passwd) -> ::c_int;
#[cfg_attr(target_os = "netbsd", link_name = "__getgrent_r50")]
#[cfg_attr(target_os = "solaris", link_name = "__posix_getgrent_r")]
pub fn getgrent_r(grp: *mut ::group,
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1147,8 +1147,8 @@ cfg_if! {
} else if #[cfg(any(target_os = "linux",
target_os = "android",
target_os = "emscripten"))] {
mod notbsd;
pub use self::notbsd::*;
mod linux_like;
pub use self::linux_like::*;
} else if #[cfg(any(target_os = "macos",
target_os = "ios",
target_os = "freebsd",
Expand Down
14 changes: 7 additions & 7 deletions src/unix/uclibc/arm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ pub const CLONE_NEWCGROUP: ::c_int = 0x02000000; // from linux/mod.rs
pub const EPOLLEXCLUSIVE: ::c_int = 0x10000000; // from linux/mod.rs
pub const EPOLLWAKEUP: ::c_int = 0x20000000; // from linux/other/mod.rs
pub const EXTPROC: ::tcflag_t = 0o200000; // from asm-generic/termbits.h
pub const F_GETPIPE_SZ: ::c_int = 1032; // from notbsd/mod.rs
pub const F_SETPIPE_SZ: ::c_int = 1031; // from notbsd/mod.rs
pub const F_GETPIPE_SZ: ::c_int = 1032; // from linux_like/mod.rs
pub const F_SETPIPE_SZ: ::c_int = 1031; // from linux_like/mod.rs
pub const LIO_NOP: ::c_int = 2; // from linux/mod.rs
pub const LIO_NOWAIT: ::c_int = 1; // from linux/mod.rs
pub const LIO_READ: ::c_int = 0; // from linux/mod.rs
Expand All @@ -226,12 +226,12 @@ pub const MAP_HUGETLB: ::c_int = 0x040000; // from linux/other/mod.rs
pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY;
pub const RB_KEXEC: ::c_int = 0x45584543u32 as i32; // from linux/mod.rs
pub const RB_SW_SUSPEND: ::c_int = 0xd000fce2u32 as i32; // from linux/mod.rs
pub const SO_BUSY_POLL: ::c_int = 46; // from src/unix/notbsd/mod.rs
pub const SO_PEEK_OFF: ::c_int = 42; // from src/unix/notbsd/mod.rs
pub const SO_REUSEPORT: ::c_int = 15; // from src/unix/notbsd/mod.rs
pub const SOL_NETLINK: ::c_int = 270; // from src/unix/notbsd/mod.rs
pub const SO_BUSY_POLL: ::c_int = 46; // from src/unix/linux_like/mod.rs
pub const SO_PEEK_OFF: ::c_int = 42; // from src/unix/linux_like/mod.rs
pub const SO_REUSEPORT: ::c_int = 15; // from src/unix/linux_like/mod.rs
pub const SOL_NETLINK: ::c_int = 270; // from src/unix/linux_like/mod.rs
pub const _POSIX_VDISABLE: ::cc_t = 0; // from linux/mod.rs
pub const AT_EMPTY_PATH: ::c_int = 0x1000; // from notbsd/mod.rs
pub const AT_EMPTY_PATH: ::c_int = 0x1000; // from linux_like/mod.rs

// autogenerated constants with hand tuned types
pub const AT_NO_AUTOMOUNT: ::c_int = 0x800;
Expand Down