• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 #ifndef KEYWORD
3 int do_chroot(int nargs, char **args);
4 int do_chdir(int nargs, char **args);
5 int do_class_start(int nargs, char **args);
6 int do_class_stop(int nargs, char **args);
7 int do_class_reset(int nargs, char **args);
8 int do_domainname(int nargs, char **args);
9 int do_exec(int nargs, char **args);
10 int do_export(int nargs, char **args);
11 int do_hostname(int nargs, char **args);
12 int do_ifup(int nargs, char **args);
13 int do_insmod(int nargs, char **args);
14 int do_mkdir(int nargs, char **args);
15 int do_mount_all(int nargs, char **args);
16 int do_mount(int nargs, char **args);
17 int do_powerctl(int nargs, char **args);
18 int do_restart(int nargs, char **args);
19 int do_restorecon(int nargs, char **args);
20 int do_rm(int nargs, char **args);
21 int do_rmdir(int nargs, char **args);
22 int do_setcon(int nargs, char **args);
23 int do_setenforce(int nargs, char **args);
24 int do_setkey(int nargs, char **args);
25 int do_setprop(int nargs, char **args);
26 int do_setrlimit(int nargs, char **args);
27 int do_setsebool(int nargs, char **args);
28 int do_start(int nargs, char **args);
29 int do_stop(int nargs, char **args);
30 int do_swapon_all(int nargs, char **args);
31 int do_trigger(int nargs, char **args);
32 int do_symlink(int nargs, char **args);
33 int do_sysclktz(int nargs, char **args);
34 int do_write(int nargs, char **args);
35 int do_copy(int nargs, char **args);
36 int do_chown(int nargs, char **args);
37 int do_chmod(int nargs, char **args);
38 int do_loglevel(int nargs, char **args);
39 int do_load_persist_props(int nargs, char **args);
40 int do_wait(int nargs, char **args);
41 #define __MAKE_KEYWORD_ENUM__
42 #define KEYWORD(symbol, flags, nargs, func) K_##symbol,
43 enum {
44     K_UNKNOWN,
45 #endif
46     KEYWORD(capability,  OPTION,  0, 0)
47     KEYWORD(chdir,       COMMAND, 1, do_chdir)
48     KEYWORD(chroot,      COMMAND, 1, do_chroot)
49     KEYWORD(class,       OPTION,  0, 0)
50     KEYWORD(class_start, COMMAND, 1, do_class_start)
51     KEYWORD(class_stop,  COMMAND, 1, do_class_stop)
52     KEYWORD(class_reset, COMMAND, 1, do_class_reset)
53     KEYWORD(console,     OPTION,  0, 0)
54     KEYWORD(critical,    OPTION,  0, 0)
55     KEYWORD(disabled,    OPTION,  0, 0)
56     KEYWORD(domainname,  COMMAND, 1, do_domainname)
57     KEYWORD(exec,        COMMAND, 1, do_exec)
58     KEYWORD(export,      COMMAND, 2, do_export)
59     KEYWORD(group,       OPTION,  0, 0)
60     KEYWORD(hostname,    COMMAND, 1, do_hostname)
61     KEYWORD(ifup,        COMMAND, 1, do_ifup)
62     KEYWORD(insmod,      COMMAND, 1, do_insmod)
63     KEYWORD(import,      SECTION, 1, 0)
64     KEYWORD(keycodes,    OPTION,  0, 0)
65     KEYWORD(mkdir,       COMMAND, 1, do_mkdir)
66     KEYWORD(mount_all,   COMMAND, 1, do_mount_all)
67     KEYWORD(mount,       COMMAND, 3, do_mount)
68     KEYWORD(on,          SECTION, 0, 0)
69     KEYWORD(oneshot,     OPTION,  0, 0)
70     KEYWORD(onrestart,   OPTION,  0, 0)
71     KEYWORD(powerctl,    COMMAND, 1, do_powerctl)
72     KEYWORD(restart,     COMMAND, 1, do_restart)
73     KEYWORD(restorecon,  COMMAND, 1, do_restorecon)
74     KEYWORD(rm,          COMMAND, 1, do_rm)
75     KEYWORD(rmdir,       COMMAND, 1, do_rmdir)
76     KEYWORD(seclabel,    OPTION,  0, 0)
77     KEYWORD(service,     SECTION, 0, 0)
78     KEYWORD(setcon,      COMMAND, 1, do_setcon)
79     KEYWORD(setenforce,  COMMAND, 1, do_setenforce)
80     KEYWORD(setenv,      OPTION,  2, 0)
81     KEYWORD(setkey,      COMMAND, 0, do_setkey)
82     KEYWORD(setprop,     COMMAND, 2, do_setprop)
83     KEYWORD(setrlimit,   COMMAND, 3, do_setrlimit)
84     KEYWORD(setsebool,   COMMAND, 2, do_setsebool)
85     KEYWORD(socket,      OPTION,  0, 0)
86     KEYWORD(start,       COMMAND, 1, do_start)
87     KEYWORD(stop,        COMMAND, 1, do_stop)
88     KEYWORD(swapon_all,  COMMAND, 1, do_swapon_all)
89     KEYWORD(trigger,     COMMAND, 1, do_trigger)
90     KEYWORD(symlink,     COMMAND, 1, do_symlink)
91     KEYWORD(sysclktz,    COMMAND, 1, do_sysclktz)
92     KEYWORD(user,        OPTION,  0, 0)
93     KEYWORD(wait,        COMMAND, 1, do_wait)
94     KEYWORD(write,       COMMAND, 2, do_write)
95     KEYWORD(copy,        COMMAND, 2, do_copy)
96     KEYWORD(chown,       COMMAND, 2, do_chown)
97     KEYWORD(chmod,       COMMAND, 2, do_chmod)
98     KEYWORD(loglevel,    COMMAND, 1, do_loglevel)
99     KEYWORD(load_persist_props,    COMMAND, 0, do_load_persist_props)
100     KEYWORD(ioprio,      OPTION,  0, 0)
101 #ifdef __MAKE_KEYWORD_ENUM__
102     KEYWORD_COUNT,
103 };
104 #undef __MAKE_KEYWORD_ENUM__
105 #undef KEYWORD
106 #endif
107 
108