Blame view

include/linux/syslog.h 1.24 KB
c82ee6d3b   Thomas Gleixner   treewide: Replace...
1
  /* SPDX-License-Identifier: GPL-2.0-or-later */
002345925   Kees Cook   syslog: distingui...
2
3
4
5
  /*  Syslog internals
   *
   *  Copyright 2010 Canonical, Ltd.
   *  Author: Kees Cook <kees.cook@canonical.com>
002345925   Kees Cook   syslog: distingui...
6
7
8
9
   */
  
  #ifndef _LINUX_SYSLOG_H
  #define _LINUX_SYSLOG_H
d78ca3cd7   Kees Cook   syslog: use defin...
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  /* Close the log.  Currently a NOP. */
  #define SYSLOG_ACTION_CLOSE          0
  /* Open the log. Currently a NOP. */
  #define SYSLOG_ACTION_OPEN           1
  /* Read from the log. */
  #define SYSLOG_ACTION_READ           2
  /* Read all messages remaining in the ring buffer. */
  #define SYSLOG_ACTION_READ_ALL       3
  /* Read and clear all messages remaining in the ring buffer */
  #define SYSLOG_ACTION_READ_CLEAR     4
  /* Clear ring buffer. */
  #define SYSLOG_ACTION_CLEAR          5
  /* Disable printk's to console */
  #define SYSLOG_ACTION_CONSOLE_OFF    6
  /* Enable printk's to console */
  #define SYSLOG_ACTION_CONSOLE_ON     7
  /* Set level of messages printed to console */
  #define SYSLOG_ACTION_CONSOLE_LEVEL  8
  /* Return number of unread characters in the log buffer */
  #define SYSLOG_ACTION_SIZE_UNREAD    9
  /* Return size of the log buffer */
  #define SYSLOG_ACTION_SIZE_BUFFER   10
637241a90   Kees Cook   kmsg: honor dmesg...
32
33
  #define SYSLOG_FROM_READER           0
  #define SYSLOG_FROM_PROC             1
002345925   Kees Cook   syslog: distingui...
34

3ea4331c6   Vasily Averin   check_syslog_perm...
35
  int do_syslog(int type, char __user *buf, int count, int source);
069fb0b63   Sebastian Schmidt   syslog: Provide s...
36

002345925   Kees Cook   syslog: distingui...
37
  #endif /* _LINUX_SYSLOG_H */