Skip to content

Commit

Permalink
Merge pull request #4081 from tgross35/diff-notes
Browse files Browse the repository at this point in the history
[0.2] Add more diff notes
  • Loading branch information
tgross35 authored Nov 17, 2024
2 parents 94be39b + 84597bd commit 643aff5
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/fuchsia/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3809,13 +3809,16 @@ extern "C" {
pub fn execl(path: *const c_char, arg0: *const c_char, ...) -> ::c_int;
pub fn execle(path: *const ::c_char, arg0: *const ::c_char, ...) -> ::c_int;
pub fn execlp(file: *const ::c_char, arg0: *const ::c_char, ...) -> ::c_int;

// DIFF(main): changed to `*const *mut` in e77f551de9
pub fn execv(prog: *const c_char, argv: *const *const c_char) -> ::c_int;
pub fn execve(
prog: *const c_char,
argv: *const *const c_char,
envp: *const *const c_char,
) -> ::c_int;
pub fn execvp(c: *const c_char, argv: *const *const c_char) -> ::c_int;

pub fn fork() -> pid_t;
pub fn fpathconf(filedes: ::c_int, name: ::c_int) -> c_long;
pub fn getcwd(buf: *mut c_char, size: ::size_t) -> *mut c_char;
Expand Down Expand Up @@ -4155,6 +4158,8 @@ extern "C" {
termp: *const termios,
winp: *const ::winsize,
) -> ::c_int;

// DIFF(main): changed to `*const *mut` in e77f551de9
pub fn execvpe(
file: *const ::c_char,
argv: *const *const ::c_char,
Expand Down
3 changes: 3 additions & 0 deletions src/unix/aix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2812,11 +2812,14 @@ extern "C" {
) -> ::c_int;
pub fn fattach(fildes: ::c_int, path: *const ::c_char) -> ::c_int;
pub fn fdatasync(fd: ::c_int) -> ::c_int;

// DIFF(main): changed to `*const *mut` in e77f551de9
pub fn fexecve(
fd: ::c_int,
argv: *const *const ::c_char,
envp: *const *const ::c_char,
) -> ::c_int;

pub fn ffs(value: ::c_int) -> ::c_int;
pub fn ffsl(value: ::c_long) -> ::c_int;
pub fn ffsll(value: ::c_longlong) -> ::c_int;
Expand Down
3 changes: 3 additions & 0 deletions src/unix/bsd/freebsdlike/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1530,11 +1530,14 @@ extern "C" {
pub fn duplocale(base: ::locale_t) -> ::locale_t;
pub fn endutxent();
pub fn fchflags(fd: ::c_int, flags: ::c_ulong) -> ::c_int;

// DIFF(main): changed to `*const *mut` in e77f551de9
pub fn fexecve(
fd: ::c_int,
argv: *const *const ::c_char,
envp: *const *const ::c_char,
) -> ::c_int;

pub fn futimens(fd: ::c_int, times: *const ::timespec) -> ::c_int;
pub fn getdomainname(name: *mut ::c_char, len: ::c_int) -> ::c_int;
pub fn getgrent_r(
Expand Down
3 changes: 3 additions & 0 deletions src/unix/bsd/netbsdlike/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -755,11 +755,14 @@ extern "C" {
pub fn shmat(shmid: ::c_int, shmaddr: *const ::c_void, shmflg: ::c_int) -> *mut ::c_void;
pub fn shmdt(shmaddr: *const ::c_void) -> ::c_int;
pub fn shmctl(shmid: ::c_int, cmd: ::c_int, buf: *mut ::shmid_ds) -> ::c_int;

// DIFF(main): changed to `*const *mut` in e77f551de9
pub fn execvpe(
file: *const ::c_char,
argv: *const *const ::c_char,
envp: *const *const ::c_char,
) -> ::c_int;

pub fn waitid(
idtype: idtype_t,
id: ::id_t,
Expand Down
3 changes: 3 additions & 0 deletions src/unix/haiku/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1842,11 +1842,14 @@ extern "C" {

pub fn sendmsg(fd: ::c_int, msg: *const ::msghdr, flags: ::c_int) -> ::ssize_t;
pub fn recvmsg(fd: ::c_int, msg: *mut ::msghdr, flags: ::c_int) -> ::ssize_t;

// DIFF(main): changed to `*const *mut` in e77f551de9
pub fn execvpe(
file: *const ::c_char,
argv: *const *const ::c_char,
environment: *const *const ::c_char,
) -> ::c_int;

pub fn getgrgid_r(
gid: ::gid_t,
grp: *mut ::group,
Expand Down
2 changes: 2 additions & 0 deletions src/unix/hurd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4209,6 +4209,8 @@ extern "C" {
envp: *const *mut c_char,
flags: ::c_int,
) -> ::c_int;

// DIFF(main): changed to `*const *mut` in e77f551de9
pub fn execvpe(
file: *const ::c_char,
argv: *const *const ::c_char,
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/gnu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,7 @@ pub const ELFOSABI_ARM_AEABI: u8 = 64;

// linux/sched.h
pub const CLONE_NEWTIME: ::c_int = 0x80;
// DIFF(main): changed to `c_ulonglong` in e9abac9ac2
pub const CLONE_CLEAR_SIGHAND: ::c_int = 0x100000000;
pub const CLONE_INTO_CGROUP: ::c_int = 0x200000000;

Expand Down
3 changes: 3 additions & 0 deletions src/unix/linux_like/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1753,6 +1753,8 @@ extern "C" {
rusage: *mut ::rusage,
) -> ::pid_t;
pub fn login_tty(fd: ::c_int) -> ::c_int;

// DIFF(main): changed to `*const *mut` in e77f551de9
pub fn execvpe(
file: *const ::c_char,
argv: *const *const ::c_char,
Expand All @@ -1763,6 +1765,7 @@ extern "C" {
argv: *const *const ::c_char,
envp: *const *const ::c_char,
) -> ::c_int;

pub fn getifaddrs(ifap: *mut *mut ::ifaddrs) -> ::c_int;
pub fn freeifaddrs(ifa: *mut ::ifaddrs);
pub fn bind(socket: ::c_int, address: *const ::sockaddr, address_len: ::socklen_t) -> ::c_int;
Expand Down
3 changes: 3 additions & 0 deletions src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -904,13 +904,16 @@ extern "C" {
pub fn execl(path: *const c_char, arg0: *const c_char, ...) -> ::c_int;
pub fn execle(path: *const ::c_char, arg0: *const ::c_char, ...) -> ::c_int;
pub fn execlp(file: *const ::c_char, arg0: *const ::c_char, ...) -> ::c_int;

// DIFF(main): changed to `*const *mut` in e77f551de9
pub fn execv(prog: *const c_char, argv: *const *const c_char) -> ::c_int;
pub fn execve(
prog: *const c_char,
argv: *const *const c_char,
envp: *const *const c_char,
) -> ::c_int;
pub fn execvp(c: *const c_char, argv: *const *const c_char) -> ::c_int;

pub fn fork() -> pid_t;
pub fn fpathconf(filedes: ::c_int, name: ::c_int) -> c_long;
pub fn getcwd(buf: *mut c_char, size: ::size_t) -> *mut c_char;
Expand Down
3 changes: 3 additions & 0 deletions src/unix/newlib/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -873,11 +873,14 @@ extern "C" {
flags: ::c_int,
) -> ::c_int;
pub fn memalign(align: ::size_t, size: ::size_t) -> *mut ::c_void;

// DIFF(main): changed to `*const *mut` in e77f551de9
pub fn fexecve(
fd: ::c_int,
argv: *const *const ::c_char,
envp: *const *const ::c_char,
) -> ::c_int;

pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::c_void) -> ::c_int;
pub fn getgrgid_r(
gid: ::gid_t,
Expand Down
2 changes: 2 additions & 0 deletions src/unix/nto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2935,6 +2935,8 @@ extern "C" {
options: ::c_int,
rusage: *mut ::rusage,
) -> ::pid_t;

// DIFF(main): changed to `*const *mut` in e77f551de9
pub fn execvpe(
file: *const ::c_char,
argv: *const *const ::c_char,
Expand Down
1 change: 1 addition & 0 deletions src/unix/solarish/solaris.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ pub const PRIV_USER: ::c_uint = PRIV_DEBUG
| PRIV_PROC_TPD_RESET;

extern "C" {
// DIFF(main): changed to `*const *mut` in e77f551de9
pub fn fexecve(
fd: ::c_int,
argv: *const *const ::c_char,
Expand Down
2 changes: 2 additions & 0 deletions src/windows/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ extern "C" {
#[link_name = "_wexeclpe"]
pub fn wexeclpe(path: *const wchar_t, arg0: *const wchar_t, ...) -> intptr_t;
#[link_name = "_execv"]
// DIFF(main): changed to `intptr_t` in e77f551de9
pub fn execv(prog: *const c_char, argv: *const *const c_char) -> ::intptr_t;
#[link_name = "_execve"]
pub fn execve(
Expand All @@ -471,6 +472,7 @@ extern "C" {
argv: *const *const c_char,
envp: *const *const c_char,
) -> ::c_int;

#[link_name = "_wexecv"]
pub fn wexecv(prog: *const wchar_t, argv: *const *const wchar_t) -> ::intptr_t;
#[link_name = "_wexecve"]
Expand Down

0 comments on commit 643aff5

Please sign in to comment.