-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Remove placeholder constants #3620
Changes from all commits
75dc3ad
6bd2d15
51fc68a
6bf0234
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1539,7 +1539,6 @@ USER_TZNAME_MAX | |
UTIME_NOW | ||
UTIME_OMIT | ||
UTXDB_ACTIVE | ||
UTXDB_LASTLOGIN | ||
UTXDB_LOG | ||
VDISCARD | ||
VDSUSP | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4990,7 +4990,6 @@ pub const MNT_NOWAIT: ::c_int = 2; | |
|
||
// <mach/thread_policy.h> | ||
pub const THREAD_STANDARD_POLICY: ::c_int = 1; | ||
pub const THREAD_STANDARD_POLICY_COUNT: ::c_int = 0; | ||
pub const THREAD_EXTENDED_POLICY: ::c_int = 1; | ||
pub const THREAD_TIME_CONSTRAINT_POLICY: ::c_int = 2; | ||
pub const THREAD_PRECEDENCE_POLICY: ::c_int = 3; | ||
|
@@ -5052,7 +5051,6 @@ pub const VM_PAGE_QUERY_PAGE_CS_NX: i32 = 0x400; | |
|
||
// mach/task_info.h | ||
pub const TASK_THREAD_TIMES_INFO: u32 = 3; | ||
pub const HOST_CPU_LOAD_INFO_COUNT: u32 = 4; | ||
pub const MACH_TASK_BASIC_INFO: u32 = 20; | ||
|
||
pub const MACH_PORT_NULL: i32 = 0; | ||
|
@@ -5114,7 +5112,6 @@ pub const COPYFILE_STATE_DST_BSIZE: ::c_int = 12; | |
pub const COPYFILE_STATE_BSIZE: ::c_int = 13; | ||
|
||
// <sys/attr.h> | ||
pub const ATTR_BIT_MAP_COUNT: ::c_ushort = 5; | ||
pub const FSOPT_NOFOLLOW: u32 = 0x1; | ||
pub const FSOPT_NOFOLLOW_ANY: u32 = 0x800; | ||
pub const FSOPT_REPORT_FULLSIZE: u32 = 0x4; | ||
|
@@ -5140,7 +5137,6 @@ pub const ATTR_CMN_OWNERID: attrgroup_t = 0x00008000; | |
pub const ATTR_CMN_GRPID: attrgroup_t = 0x00010000; | ||
pub const ATTR_CMN_ACCESSMASK: attrgroup_t = 0x00020000; | ||
pub const ATTR_CMN_FLAGS: attrgroup_t = 0x00040000; | ||
pub const ATTR_CMN_GEN_COUNT: attrgroup_t = 0x00080000; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not a placeholder. |
||
pub const ATTR_CMN_DOCUMENT_ID: attrgroup_t = 0x00100000; | ||
pub const ATTR_CMN_USERACCESS: attrgroup_t = 0x00200000; | ||
pub const ATTR_CMN_EXTENDED_SECURITY: attrgroup_t = 0x00400000; | ||
|
@@ -5225,7 +5221,6 @@ pub const VOL_CAP_FMT_DECMPFS_COMPRESSION: attrgroup_t = 0x00010000; | |
pub const VOL_CAP_FMT_64BIT_OBJECT_IDS: attrgroup_t = 0x00020000; | ||
pub const VOL_CAP_FMT_DIR_HARDLINKS: attrgroup_t = 0x00040000; | ||
pub const VOL_CAP_FMT_DOCUMENT_ID: attrgroup_t = 0x00080000; | ||
pub const VOL_CAP_FMT_WRITE_GENERATION_COUNT: attrgroup_t = 0x00100000; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not a placeholder. |
||
pub const VOL_CAP_FMT_NO_IMMUTABLE_FILES: attrgroup_t = 0x00200000; | ||
pub const VOL_CAP_FMT_NO_PERMISSIONS: attrgroup_t = 0x00400000; | ||
pub const VOL_CAP_FMT_SHARED_SPACE: attrgroup_t = 0x00800000; | ||
|
@@ -5276,45 +5271,6 @@ const fn __DARWIN_ALIGN32(p: usize) -> usize { | |
p + __DARWIN_ALIGNBYTES32 & !__DARWIN_ALIGNBYTES32 | ||
} | ||
|
||
pub const THREAD_EXTENDED_POLICY_COUNT: mach_msg_type_number_t = | ||
(::mem::size_of::<thread_extended_policy_data_t>() / ::mem::size_of::<integer_t>()) | ||
as mach_msg_type_number_t; | ||
pub const THREAD_TIME_CONSTRAINT_POLICY_COUNT: mach_msg_type_number_t = | ||
(::mem::size_of::<thread_time_constraint_policy_data_t>() / ::mem::size_of::<integer_t>()) | ||
as mach_msg_type_number_t; | ||
pub const THREAD_PRECEDENCE_POLICY_COUNT: mach_msg_type_number_t = | ||
(::mem::size_of::<thread_precedence_policy_data_t>() / ::mem::size_of::<integer_t>()) | ||
as mach_msg_type_number_t; | ||
pub const THREAD_AFFINITY_POLICY_COUNT: mach_msg_type_number_t = | ||
(::mem::size_of::<thread_affinity_policy_data_t>() / ::mem::size_of::<integer_t>()) | ||
as mach_msg_type_number_t; | ||
pub const THREAD_BACKGROUND_POLICY_COUNT: mach_msg_type_number_t = | ||
(::mem::size_of::<thread_background_policy_data_t>() / ::mem::size_of::<integer_t>()) | ||
as mach_msg_type_number_t; | ||
pub const THREAD_LATENCY_QOS_POLICY_COUNT: mach_msg_type_number_t = | ||
(::mem::size_of::<thread_latency_qos_policy_data_t>() / ::mem::size_of::<integer_t>()) | ||
as mach_msg_type_number_t; | ||
pub const THREAD_THROUGHPUT_QOS_POLICY_COUNT: mach_msg_type_number_t = | ||
(::mem::size_of::<thread_throughput_qos_policy_data_t>() / ::mem::size_of::<integer_t>()) | ||
as mach_msg_type_number_t; | ||
pub const THREAD_BASIC_INFO_COUNT: mach_msg_type_number_t = | ||
(::mem::size_of::<thread_basic_info_data_t>() / ::mem::size_of::<integer_t>()) | ||
as mach_msg_type_number_t; | ||
pub const THREAD_IDENTIFIER_INFO_COUNT: mach_msg_type_number_t = | ||
(::mem::size_of::<thread_identifier_info_data_t>() / ::mem::size_of::<integer_t>()) | ||
as mach_msg_type_number_t; | ||
pub const THREAD_EXTENDED_INFO_COUNT: mach_msg_type_number_t = | ||
(::mem::size_of::<thread_extended_info_data_t>() / ::mem::size_of::<integer_t>()) | ||
as mach_msg_type_number_t; | ||
|
||
pub const TASK_THREAD_TIMES_INFO_COUNT: u32 = | ||
(::mem::size_of::<task_thread_times_info_data_t>() / ::mem::size_of::<natural_t>()) as u32; | ||
pub const MACH_TASK_BASIC_INFO_COUNT: u32 = | ||
(::mem::size_of::<mach_task_basic_info_data_t>() / ::mem::size_of::<natural_t>()) as u32; | ||
pub const HOST_VM_INFO64_COUNT: mach_msg_type_number_t = | ||
(::mem::size_of::<vm_statistics64_data_t>() / ::mem::size_of::<integer_t>()) | ||
as mach_msg_type_number_t; | ||
|
||
f! { | ||
pub fn CMSG_NXTHDR(mhdr: *const ::msghdr, | ||
cmsg: *const ::cmsghdr) -> *mut ::cmsghdr { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1064,7 +1064,6 @@ pub const CPUCTL_CPUID: ::c_int = 0xc0106303; | |
pub const CPUCTL_UPDATE: ::c_int = 0xc0106304; | ||
pub const CPUCTL_MSRSBIT: ::c_int = 0xc0106305; | ||
pub const CPUCTL_MSRCBIT: ::c_int = 0xc0106306; | ||
pub const CPUCTL_CPUID_COUNT: ::c_int = 0xc0106307; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not a placeholder. |
||
|
||
pub const CPU_SETSIZE: ::size_t = ::mem::size_of::<::cpumask_t>() * 8; | ||
|
||
|
@@ -1436,7 +1435,6 @@ pub const DOWNTIME: ::c_short = 11; | |
// utmpx database types | ||
pub const UTX_DB_UTMPX: ::c_uint = 0; | ||
pub const UTX_DB_WTMPX: ::c_uint = 1; | ||
pub const UTX_DB_LASTLOG: ::c_uint = 2; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not a placeholder. |
||
pub const _UTX_LINESIZE: usize = 32; | ||
pub const _UTX_USERSIZE: usize = 32; | ||
pub const _UTX_IDSIZE: usize = 4; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3680,7 +3680,6 @@ pub const DEAD_PROCESS: ::c_short = 7; | |
pub const SHUTDOWN_TIME: ::c_short = 8; | ||
// utmp database types | ||
pub const UTXDB_ACTIVE: ::c_int = 0; | ||
pub const UTXDB_LASTLOGIN: ::c_int = 1; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not a placeholder. |
||
pub const UTXDB_LOG: ::c_int = 2; | ||
|
||
pub const LC_COLLATE_MASK: ::c_int = 1 << 0; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1730,7 +1730,6 @@ pub const DCCP_OPT_CONFIRM_L: ::c_int = 33; | |
pub const DCCP_OPT_CHANGE_R: ::c_int = 34; | ||
pub const DCCP_OPT_CONFIRM_R: ::c_int = 35; | ||
pub const DCCP_OPT_INIT_COOKIE: ::c_int = 36; | ||
pub const DCCP_OPT_NDP_COUNT: ::c_int = 37; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not a placeholder. |
||
pub const DCCP_OPT_ACK_VECTOR0: ::c_int = 38; | ||
pub const DCCP_OPT_ACK_VECTOR1: ::c_int = 39; | ||
pub const DCCP_OPT_RECV_BUF_DROPS: ::c_int = 40; | ||
|
@@ -1757,7 +1756,6 @@ pub const DCCP_MAXSEG: ::c_int = 4; | |
pub const DCCP_SERVICE: ::c_int = 8; | ||
|
||
pub const DCCP_NDP_LIMIT: ::c_int = 16; | ||
pub const DCCP_SEQ_NUM_LIMIT: ::c_int = 16777216; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not a placeholder. |
||
pub const DCCP_MAX_OPTIONS: ::c_int = 32; | ||
pub const DCCP_MAX_PKTS: ::c_int = 100; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -808,7 +808,6 @@ pub const B_RESOURCE_UNAVAILABLE: status_t = B_MEDIA_ERROR_BASE + 3; | |
pub const B_BAD_SUBSCRIBER: status_t = B_MEDIA_ERROR_BASE + 4; | ||
pub const B_SUBSCRIBER_NOT_ENTERED: status_t = B_MEDIA_ERROR_BASE + 5; | ||
pub const B_BUFFER_NOT_AVAILABLE: status_t = B_MEDIA_ERROR_BASE + 6; | ||
pub const B_LAST_BUFFER_ERROR: status_t = B_MEDIA_ERROR_BASE + 7; | ||
|
||
pub const B_MEDIA_SYSTEM_FAILURE: status_t = B_MEDIA_ERROR_BASE + 100; | ||
pub const B_MEDIA_BAD_NODE: status_t = B_MEDIA_ERROR_BASE + 101; | ||
|
@@ -835,7 +834,6 @@ pub const B_MEDIA_BAD_CLIP_FORMAT: status_t = B_MEDIA_ERROR_BASE + 121; | |
pub const B_MEDIA_ADDON_FAILED: status_t = B_MEDIA_ERROR_BASE + 122; | ||
pub const B_MEDIA_ADDON_DISABLED: status_t = B_MEDIA_ERROR_BASE + 123; | ||
pub const B_MEDIA_CHANGE_IN_PROGRESS: status_t = B_MEDIA_ERROR_BASE + 124; | ||
pub const B_MEDIA_STALE_CHANGE_COUNT: status_t = B_MEDIA_ERROR_BASE + 125; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not a placeholder. |
||
pub const B_MEDIA_ADDON_RESTRICTED: status_t = B_MEDIA_ERROR_BASE + 126; | ||
pub const B_MEDIA_NO_HANDLER: status_t = B_MEDIA_ERROR_BASE + 127; | ||
pub const B_MEDIA_DUPLICATE_FORMAT: status_t = B_MEDIA_ERROR_BASE + 128; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3375,7 +3375,6 @@ pub const TCP_FIN_WAIT2: ::c_uint = 5; | |
pub const TCP_TIME_WAIT: ::c_uint = 6; | ||
pub const TCP_CLOSE: ::c_uint = 7; | ||
pub const TCP_CLOSE_WAIT: ::c_uint = 8; | ||
pub const TCP_LAST_ACK: ::c_uint = 9; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not a placeholder. |
||
pub const TCP_LISTEN: ::c_uint = 10; | ||
pub const TCP_CLOSING: ::c_uint = 11; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a placeholder.