simpleinit.h

来自「Util-linux 软件包包含许多工具。其中比较重要的是加载、卸载、格式化、分」· C头文件 代码 · 共 29 行

H
29
字号
#include <limits.h>#include <errno.h>#define ERRSTRING strerror (errno)#define COMMAND_SIZE  (PIPE_BUF - 4)#define COMMAND_TEST       0  /*  No wait, signal                            */#define COMMAND_NEED       1  /*  Wait, signal                               */#define COMMAND_ROLLBACK   2  /*  Wait, signal                               */#define COMMAND_DUMP_LIST  3  /*  No wait, no signal                         */#define COMMAND_PROVIDE    4  /*  Wait, signal                               */#define SIG_PRESENT        SIGUSR1  /*  Service is available                 */#define SIG_STOPPED        SIGUSR1  /*  Service was stopped OK               */#define SIG_NOT_PRESENT    SIGUSR2  /*  Not present, but that's OK           */#define SIG_FAILED         SIGPOLL  /*  Startup failed                       */#define SIG_NOT_STOPPED    SIGPOLL  /*  Failed to stop                       */#define SIG_NOT_CHILD      SIGPOLL  /*  Not a child of init                  */struct command_struct  /*  Must always be COMMAND_SIZE  */{    signed int command;    pid_t pid;    pid_t ppid;    char name[1];};

⌨️ 快捷键说明

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