Skip to content

Commit 012dceb

Browse files
committed
Add const CTLIOCGINFO
1 parent d86b287 commit 012dceb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

libc-test/semver/apple.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ CTLFLAG_RD
266266
CTLFLAG_RW
267267
CTLFLAG_SECURE
268268
CTLFLAG_WR
269+
CTLIOCGINFO
269270
CTLTYPE
270271
CTLTYPE_INT
271272
CTLTYPE_NODE

src/unix/bsd/apple/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ s! {
234234
#[cfg(libc_long_array)]
235235
pub struct ctl_info {
236236
pub ctl_id: u32,
237-
pub ctl_name: [::c_char; 96],
237+
pub ctl_name: [::c_char; MAX_KCTL_NAME],
238238
}
239239

240240
pub struct ip_mreq {
@@ -3319,6 +3319,8 @@ pub const MINCORE_MODIFIED: ::c_int = 0x4;
33193319
pub const MINCORE_REFERENCED_OTHER: ::c_int = 0x8;
33203320
pub const MINCORE_MODIFIED_OTHER: ::c_int = 0x10;
33213321

3322+
pub const CTLIOCGINFO: c_ulong = 0xc0644e03;
3323+
33223324
//
33233325
// sys/netinet/in.h
33243326
// Protocols (RFC 1700)
@@ -4496,6 +4498,8 @@ pub const PROC_CSM_TECS: ::c_uint = 0x0004;
44964498
pub const MAXCOMLEN: usize = 16;
44974499
pub const MAXTHREADNAMESIZE: usize = 64;
44984500

4501+
pub const MAX_KCTL_NAME: usize = 96;
4502+
44994503
pub const XUCRED_VERSION: ::c_uint = 0;
45004504

45014505
pub const LC_SEGMENT: u32 = 0x1;

0 commit comments

Comments
 (0)