Skip to content

Commit adb0a34

Browse files
committed
1 parent fc51a0f commit adb0a34

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,6 @@ s! {
8989
pub msg_ctime: ::time_t,
9090
}
9191

92-
pub struct xucred {
93-
pub cr_version: ::c_uint,
94-
pub cr_uid: ::uid_t,
95-
pub cr_ngroups: ::c_short,
96-
pub cr_groups: [::gid_t;16],
97-
__cr_unused1: *mut ::c_void,
98-
}
99-
10092
pub struct stack_t {
10193
pub ss_sp: *mut ::c_void,
10294
pub ss_size: ::size_t,
@@ -629,7 +621,6 @@ pub const SO_PROTOCOL: ::c_int = 0x1016;
629621
pub const SO_PROTOTYPE: ::c_int = SO_PROTOCOL;
630622
pub const SO_VENDOR: ::c_int = 0x80000000;
631623

632-
pub const LOCAL_PEERCRED: ::c_int = 1;
633624
pub const LOCAL_CREDS: ::c_int = 2;
634625
pub const LOCAL_CONNWAIT: ::c_int = 4;
635626
pub const LOCAL_VENDOR: ::c_int = SO_VENDOR;
@@ -1103,9 +1094,6 @@ pub const _PC_ACL_NFS4: ::c_int = 64;
11031094

11041095
pub const _SC_CPUSET_SIZE: ::c_int = 122;
11051096

1106-
pub const XU_NGROUPS: ::c_int = 16;
1107-
pub const XUCRED_VERSION: ::c_uint = 0;
1108-
11091097
// Flags which can be passed to pdfork(2)
11101098
pub const PD_DAEMON: ::c_int = 0x00000001;
11111099
pub const PD_CLOEXEC: ::c_int = 0x00000002;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,14 @@ s! {
219219
pub cmcred_groups: [::gid_t; CMGROUP_MAX],
220220
}
221221

222+
pub struct xucred {
223+
pub cr_version: ::c_uint,
224+
pub cr_uid: ::uid_t,
225+
pub cr_ngroups: ::c_short,
226+
pub cr_groups: [::gid_t; 16],
227+
__cr_unused1: *mut ::c_void,
228+
}
229+
222230
pub struct rtprio {
223231
pub type_: ::c_ushort,
224232
pub prio: ::c_ushort,
@@ -947,6 +955,8 @@ pub const SO_RCVTIMEO: ::c_int = 0x1006;
947955
pub const SO_ERROR: ::c_int = 0x1007;
948956
pub const SO_TYPE: ::c_int = 0x1008;
949957

958+
pub const LOCAL_PEERCRED: ::c_int = 1;
959+
950960
pub const SHUT_RD: ::c_int = 0;
951961
pub const SHUT_WR: ::c_int = 1;
952962
pub const SHUT_RDWR: ::c_int = 2;
@@ -1133,6 +1143,9 @@ pub const ST_NOSUID: ::c_ulong = 2;
11331143

11341144
pub const NI_MAXHOST: ::size_t = 1025;
11351145

1146+
pub const XU_NGROUPS: ::c_int = 16;
1147+
pub const XUCRED_VERSION: ::c_uint = 0;
1148+
11361149
pub const RTLD_LOCAL: ::c_int = 0;
11371150
pub const RTLD_NODELETE: ::c_int = 0x1000;
11381151
pub const RTLD_NOLOAD: ::c_int = 0x2000;

0 commit comments

Comments
 (0)