Skip to content

Commit ecb4e97

Browse files
committed
Auto merge of #1357 - semarie:openbsd-pfstatus, r=gnzlbg
openbsd: add KERN_PFSTATUS and update KERN_MAXID `KERN_PFSTATUS` has been recently added, and so `KERN_MAX` value has changed. Add it to avoid failure on (local) ci. While here, I added few blank lines to separated series of constants.
2 parents d14bbca + 83a947a commit ecb4e97

File tree

1 file changed

+11
-1
lines changed
  • src/unix/bsd/netbsdlike/openbsd

1 file changed

+11
-1
lines changed

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,12 +1075,15 @@ pub const TMP_MAX : ::c_uint = 0x7fffffff;
10751075
pub const NI_MAXHOST: ::size_t = 256;
10761076

10771077
pub const RTLD_LOCAL: ::c_int = 0;
1078+
10781079
pub const CTL_MAXNAME: ::c_int = 12;
1080+
10791081
pub const CTLTYPE_NODE: ::c_int = 1;
10801082
pub const CTLTYPE_INT: ::c_int = 2;
10811083
pub const CTLTYPE_STRING: ::c_int = 3;
10821084
pub const CTLTYPE_QUAD: ::c_int = 4;
10831085
pub const CTLTYPE_STRUCT: ::c_int = 5;
1086+
10841087
pub const CTL_UNSPEC: ::c_int = 0;
10851088
pub const CTL_KERN: ::c_int = 1;
10861089
pub const CTL_VM: ::c_int = 2;
@@ -1092,7 +1095,9 @@ pub const CTL_MACHDEP: ::c_int = 7;
10921095
pub const CTL_DDB: ::c_int = 9;
10931096
pub const CTL_VFS: ::c_int = 10;
10941097
pub const CTL_MAXID: ::c_int = 11;
1098+
10951099
pub const HW_NCPUONLINE: ::c_int = 25;
1100+
10961101
pub const KERN_OSTYPE: ::c_int = 1;
10971102
pub const KERN_OSRELEASE: ::c_int = 2;
10981103
pub const KERN_OSREV: ::c_int = 3;
@@ -1169,7 +1174,9 @@ pub const KERN_CONSBUFSIZE: ::c_int = 82;
11691174
pub const KERN_CONSBUF: ::c_int = 83;
11701175
pub const KERN_AUDIO: ::c_int = 84;
11711176
pub const KERN_CPUSTATS: ::c_int = 85;
1172-
pub const KERN_MAXID: ::c_int = 86;
1177+
pub const KERN_PFSTATUS: ::c_int = 86;
1178+
pub const KERN_MAXID: ::c_int = 87;
1179+
11731180
pub const KERN_PROC_ALL: ::c_int = 0;
11741181
pub const KERN_PROC_PID: ::c_int = 1;
11751182
pub const KERN_PROC_PGRP: ::c_int = 2;
@@ -1179,13 +1186,16 @@ pub const KERN_PROC_UID: ::c_int = 5;
11791186
pub const KERN_PROC_RUID: ::c_int = 6;
11801187
pub const KERN_PROC_KTHREAD: ::c_int = 7;
11811188
pub const KERN_PROC_SHOW_THREADS: ::c_int = 0x40000000;
1189+
11821190
pub const KERN_SYSVIPC_MSG_INFO: ::c_int = 1;
11831191
pub const KERN_SYSVIPC_SEM_INFO: ::c_int = 2;
11841192
pub const KERN_SYSVIPC_SHM_INFO: ::c_int = 3;
1193+
11851194
pub const KERN_PROC_ARGV: ::c_int = 1;
11861195
pub const KERN_PROC_NARGV: ::c_int = 2;
11871196
pub const KERN_PROC_ENV: ::c_int = 3;
11881197
pub const KERN_PROC_NENV: ::c_int = 4;
1198+
11891199
pub const KI_NGROUPS: ::c_int = 16;
11901200
pub const KI_MAXCOMLEN: ::c_int = 24;
11911201
pub const KI_WMESGLEN: ::c_int = 8;

0 commit comments

Comments
 (0)