Skip to content

Commit 35992f2

Browse files
author
Bryant Mairs
committed
Add struct ucred for Linux on MIPS
1 parent 011ba6d commit 35992f2

File tree

4 files changed

+6
-18
lines changed

4 files changed

+6
-18
lines changed

src/unix/notbsd/linux/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,12 @@ s! {
448448
pub p_memsz: Elf64_Xword,
449449
pub p_align: Elf64_Xword,
450450
}
451+
452+
pub struct ucred {
453+
pub pid: ::pid_t,
454+
pub uid: ::uid_t,
455+
pub gid: ::gid_t,
456+
}
451457
}
452458

453459
pub const ABDAY_1: ::nl_item = 0x20000;

src/unix/notbsd/linux/musl/mod.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,6 @@ s! {
7575
pub mem_unit: ::c_uint,
7676
pub __reserved: [::c_char; 256],
7777
}
78-
79-
pub struct ucred {
80-
pub pid: ::pid_t,
81-
pub uid: ::uid_t,
82-
pub gid: ::gid_t,
83-
}
8478
}
8579

8680
pub const SFD_CLOEXEC: ::c_int = 0x080000;

src/unix/notbsd/linux/other/mod.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,6 @@ s! {
104104
__unused5: *mut ::c_void,
105105
}
106106

107-
pub struct ucred {
108-
pub pid: ::pid_t,
109-
pub uid: ::uid_t,
110-
pub gid: ::gid_t,
111-
}
112-
113107
pub struct statfs {
114108
pub f_type: __fsword_t,
115109
pub f_bsize: __fsword_t,

src/unix/notbsd/linux/s390x.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,6 @@ s! {
221221
__unused5: *mut ::c_void,
222222
}
223223

224-
pub struct ucred {
225-
pub pid: ::pid_t,
226-
pub uid: ::uid_t,
227-
pub gid: ::gid_t,
228-
}
229-
230224
pub struct flock {
231225
pub l_type: ::c_short,
232226
pub l_whence: ::c_short,

0 commit comments

Comments
 (0)