File tree Expand file tree Collapse file tree 5 files changed +31
-0
lines changed Expand file tree Collapse file tree 5 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -1563,6 +1563,7 @@ fn test_android(target: &str) {
1563
1563
"sys/fsuid.h" ,
1564
1564
"sys/inotify.h" ,
1565
1565
"sys/ioctl.h" ,
1566
+ "sys/klog.h" ,
1566
1567
"sys/mman.h" ,
1567
1568
"sys/mount.h" ,
1568
1569
"sys/personality.h" ,
@@ -3351,6 +3352,7 @@ fn test_linux(target: &str) {
3351
3352
"sys/eventfd.h" ,
3352
3353
"sys/file.h" ,
3353
3354
"sys/fsuid.h" ,
3355
+ "sys/klog.h" ,
3354
3356
"sys/inotify.h" ,
3355
3357
"sys/ioctl.h" ,
3356
3358
"sys/ipc.h" ,
Original file line number Diff line number Diff line change @@ -1072,6 +1072,17 @@ KEXEC_ON_CRASH
1072
1072
KEXEC_PRESERVE_CONTEXT
1073
1073
KEY_CNT
1074
1074
KEY_MAX
1075
+ KLOG_CLOSE
1076
+ KLOG_OPEN
1077
+ KLOG_READ
1078
+ KLOG_READ_ALL
1079
+ KLOG_READ_CLEAR
1080
+ KLOG_CLEAR
1081
+ KLOG_CONSOLE_OFF
1082
+ KLOG_CONSOLE_ON
1083
+ KLOG_CONSOLE_LEVEL
1084
+ KLOG_SIZE_UNREAD
1085
+ KLOG_SIZE_BUFFER
1075
1086
LC_ADDRESS
1076
1087
LC_ADDRESS_MASK
1077
1088
LC_ALL
@@ -3361,6 +3372,7 @@ itimerval
3361
3372
key_t
3362
3373
kill
3363
3374
killpg
3375
+ klogctl
3364
3376
lastlog
3365
3377
lchown
3366
3378
lconv
Original file line number Diff line number Diff line change @@ -3663,6 +3663,7 @@ j1939_filter
3663
3663
jrand48
3664
3664
key_t
3665
3665
killpg
3666
+ klogctl
3666
3667
labs
3667
3668
lcong48
3668
3669
lgetxattr
Original file line number Diff line number Diff line change @@ -3508,6 +3508,18 @@ pub const PF_MEMALLOC_PIN: ::c_int = 0x10000000;
3508
3508
3509
3509
pub const PF_SUSPEND_TASK : :: c_int = 0x80000000 ;
3510
3510
3511
+ pub const KLOG_CLOSE : :: c_int = 0 ;
3512
+ pub const KLOG_OPEN : :: c_int = 1 ;
3513
+ pub const KLOG_READ : :: c_int = 2 ;
3514
+ pub const KLOG_READ_ALL : :: c_int = 3 ;
3515
+ pub const KLOG_READ_CLEAR : :: c_int = 4 ;
3516
+ pub const KLOG_CLEAR : :: c_int = 5 ;
3517
+ pub const KLOG_CONSOLE_OFF : :: c_int = 6 ;
3518
+ pub const KLOG_CONSOLE_ON : :: c_int = 7 ;
3519
+ pub const KLOG_CONSOLE_LEVEL : :: c_int = 8 ;
3520
+ pub const KLOG_SIZE_UNREAD : :: c_int = 9 ;
3521
+ pub const KLOG_SIZE_BUFFER : :: c_int = 10 ;
3522
+
3511
3523
// Most `*_SUPER_MAGIC` constants are defined at the `linux_like` level; the
3512
3524
// following are only available on newer Linux versions than the versions
3513
3525
// currently used in CI in some configurations, so we define them here.
@@ -4096,6 +4108,8 @@ extern "C" {
4096
4108
mask : :: c_uint ,
4097
4109
statxbuf : * mut statx ,
4098
4110
) -> :: c_int ;
4111
+
4112
+ pub fn klogctl ( syslog_type : :: c_int , bufp : * mut :: c_char , len : :: c_int ) -> :: c_int ;
4099
4113
}
4100
4114
4101
4115
cfg_if ! {
Original file line number Diff line number Diff line change @@ -6123,6 +6123,8 @@ extern "C" {
6123
6123
len : :: size_t ,
6124
6124
flags : :: c_uint ,
6125
6125
) -> :: ssize_t ;
6126
+
6127
+ pub fn klogctl ( syslog_type : :: c_int , bufp : * mut :: c_char , len : :: c_int ) -> :: c_int ;
6126
6128
}
6127
6129
6128
6130
// LFS64 extensions
You can’t perform that action at this time.
0 commit comments