reboot.h

来自「klibc精简化的c程序库」· C头文件 代码 · 共 26 行

H
26
字号
/* * sys/reboot.h */#ifndef _SYS_REBOOT_H#define _SYS_REBOOT_H#include <klibc/extern.h>#include <linux/reboot.h>/* glibc names these constants differently; allow both versions */#define RB_AUTOBOOT	LINUX_REBOOT_CMD_RESTART#define RB_HALT_SYSTEM	LINUX_REBOOT_CMD_HALT#define RB_ENABLE_CAD	LINUX_REBOOT_CMD_CAD_ON#define RB_DISABLE_CAD	LINUX_REBOOT_CMD_CAD_OFF#define RB_POWER_OFF	LINUX_REBOOT_CMD_POWER_OFF/* glibc-ish one-argument version */__extern int reboot(int);/* Native four-argument system call */__extern int __reboot(int, int, int, void *);#endif				/* _SYS_REBOOT_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?