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) {
15631563 "sys/fsuid.h" ,
15641564 "sys/inotify.h" ,
15651565 "sys/ioctl.h" ,
1566+ "sys/klog.h" ,
15661567 "sys/mman.h" ,
15671568 "sys/mount.h" ,
15681569 "sys/personality.h" ,
@@ -3351,6 +3352,7 @@ fn test_linux(target: &str) {
33513352 "sys/eventfd.h" ,
33523353 "sys/file.h" ,
33533354 "sys/fsuid.h" ,
3355+ "sys/klog.h" ,
33543356 "sys/inotify.h" ,
33553357 "sys/ioctl.h" ,
33563358 "sys/ipc.h" ,
Original file line number Diff line number Diff line change @@ -1072,6 +1072,17 @@ KEXEC_ON_CRASH
10721072KEXEC_PRESERVE_CONTEXT
10731073KEY_CNT
10741074KEY_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
10751086LC_ADDRESS
10761087LC_ADDRESS_MASK
10771088LC_ALL
@@ -3361,6 +3372,7 @@ itimerval
33613372key_t
33623373kill
33633374killpg
3375+ klogctl
33643376lastlog
33653377lchown
33663378lconv
Original file line number Diff line number Diff line change @@ -3663,6 +3663,7 @@ j1939_filter
36633663jrand48
36643664key_t
36653665killpg
3666+ klogctl
36663667labs
36673668lcong48
36683669lgetxattr
Original file line number Diff line number Diff line change @@ -3508,6 +3508,18 @@ pub const PF_MEMALLOC_PIN: ::c_int = 0x10000000;
35083508
35093509pub const PF_SUSPEND_TASK : :: c_int = 0x80000000 ;
35103510
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+
35113523// Most `*_SUPER_MAGIC` constants are defined at the `linux_like` level; the
35123524// following are only available on newer Linux versions than the versions
35133525// currently used in CI in some configurations, so we define them here.
@@ -4096,6 +4108,8 @@ extern "C" {
40964108 mask : :: c_uint ,
40974109 statxbuf : * mut statx ,
40984110 ) -> :: c_int ;
4111+
4112+ pub fn klogctl ( syslog_type : :: c_int , bufp : * mut :: c_char , len : :: c_int ) -> :: c_int ;
40994113}
41004114
41014115cfg_if ! {
Original file line number Diff line number Diff line change @@ -6123,6 +6123,8 @@ extern "C" {
61236123 len : :: size_t ,
61246124 flags : :: c_uint ,
61256125 ) -> :: ssize_t ;
6126+
6127+ pub fn klogctl ( syslog_type : :: c_int , bufp : * mut :: c_char , len : :: c_int ) -> :: c_int ;
61266128}
61276129
61286130// LFS64 extensions
You can’t perform that action at this time.
0 commit comments