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 @@ -1656,6 +1656,7 @@ fn test_android(target: &str) {
1656
1656
"sys/fsuid.h" ,
1657
1657
"sys/inotify.h" ,
1658
1658
"sys/ioctl.h" ,
1659
+ "sys/klog.h" ,
1659
1660
"sys/mman.h" ,
1660
1661
"sys/mount.h" ,
1661
1662
"sys/personality.h" ,
@@ -3433,6 +3434,7 @@ fn test_linux(target: &str) {
3433
3434
"sys/eventfd.h" ,
3434
3435
"sys/file.h" ,
3435
3436
"sys/fsuid.h" ,
3437
+ "sys/klog.h" ,
3436
3438
"sys/inotify.h" ,
3437
3439
"sys/ioctl.h" ,
3438
3440
"sys/ipc.h" ,
Original file line number Diff line number Diff line change @@ -1073,6 +1073,17 @@ KEXEC_ON_CRASH
1073
1073
KEXEC_PRESERVE_CONTEXT
1074
1074
KEY_CNT
1075
1075
KEY_MAX
1076
+ KLOG_CLOSE
1077
+ KLOG_OPEN
1078
+ KLOG_READ
1079
+ KLOG_READ_ALL
1080
+ KLOG_READ_CLEAR
1081
+ KLOG_CLEAR
1082
+ KLOG_CONSOLE_OFF
1083
+ KLOG_CONSOLE_ON
1084
+ KLOG_CONSOLE_LEVEL
1085
+ KLOG_SIZE_UNREAD
1086
+ KLOG_SIZE_BUFFER
1076
1087
LC_ADDRESS
1077
1088
LC_ADDRESS_MASK
1078
1089
LC_ALL
@@ -3341,6 +3352,7 @@ itimerval
3341
3352
key_t
3342
3353
kill
3343
3354
killpg
3355
+ klogctl
3344
3356
lastlog
3345
3357
lchown
3346
3358
lconv
Original file line number Diff line number Diff line change @@ -3562,6 +3562,7 @@ j1939_filter
3562
3562
jrand48
3563
3563
key_t
3564
3564
killpg
3565
+ klogctl
3565
3566
labs
3566
3567
lcong48
3567
3568
lgetxattr
Original file line number Diff line number Diff line change @@ -3523,6 +3523,18 @@ pub const PF_MEMALLOC_PIN: ::c_int = 0x10000000;
3523
3523
3524
3524
pub const PF_SUSPEND_TASK : :: c_int = 0x80000000 ;
3525
3525
3526
+ pub const KLOG_CLOSE : :: c_int = 0 ;
3527
+ pub const KLOG_OPEN : :: c_int = 1 ;
3528
+ pub const KLOG_READ : :: c_int = 2 ;
3529
+ pub const KLOG_READ_ALL : :: c_int = 3 ;
3530
+ pub const KLOG_READ_CLEAR : :: c_int = 4 ;
3531
+ pub const KLOG_CLEAR : :: c_int = 5 ;
3532
+ pub const KLOG_CONSOLE_OFF : :: c_int = 6 ;
3533
+ pub const KLOG_CONSOLE_ON : :: c_int = 7 ;
3534
+ pub const KLOG_CONSOLE_LEVEL : :: c_int = 8 ;
3535
+ pub const KLOG_SIZE_UNREAD : :: c_int = 9 ;
3536
+ pub const KLOG_SIZE_BUFFER : :: c_int = 10 ;
3537
+
3526
3538
// Most `*_SUPER_MAGIC` constants are defined at the `linux_like` level; the
3527
3539
// following are only available on newer Linux versions than the versions
3528
3540
// currently used in CI in some configurations, so we define them here.
@@ -4095,6 +4107,8 @@ extern "C" {
4095
4107
) -> :: size_t ;
4096
4108
pub fn fflush_unlocked ( stream : * mut :: FILE ) -> :: c_int ;
4097
4109
pub fn fgets_unlocked ( buf : * mut :: c_char , size : :: c_int , stream : * mut :: FILE ) -> * mut :: c_char ;
4110
+
4111
+ pub fn klogctl ( syslog_type : :: c_int , bufp : * mut :: c_char , len : :: c_int ) -> :: c_int ;
4098
4112
}
4099
4113
4100
4114
cfg_if ! {
Original file line number Diff line number Diff line change @@ -5626,6 +5626,8 @@ extern "C" {
5626
5626
len : :: size_t ,
5627
5627
flags : :: c_uint ,
5628
5628
) -> :: ssize_t ;
5629
+
5630
+ pub fn klogctl ( syslog_type : :: c_int , bufp : * mut :: c_char , len : :: c_int ) -> :: c_int ;
5629
5631
}
5630
5632
5631
5633
// LFS64 extensions
You can’t perform that action at this time.
0 commit comments