diff options
Diffstat (limited to 'include/usage.h')
-rw-r--r-- | include/usage.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/include/usage.h b/include/usage.h index 40676c113..34b0566cd 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -215,6 +215,70 @@ | |||
215 | "ls -l /tmp/foo\n" \ | 215 | "ls -l /tmp/foo\n" \ |
216 | "-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n" | 216 | "-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n" |
217 | 217 | ||
218 | #define chpst_trivial_usage \ | ||
219 | "[-vP012] [-u user[:group]] [-U user[:group]] [-e dir] " \ | ||
220 | "[-/ dir] [-n nice] [-m bytes] [-d bytes] [-o files] " \ | ||
221 | "[-p processes] [-f bytes] [-c bytes] prog args" | ||
222 | #define chpst_full_usage \ | ||
223 | "Change the process state and run specified program.\n\n" \ | ||
224 | "-u user[:grp] set uid and gid\n" \ | ||
225 | "-U user[:grp] set environment variables UID and GID\n" \ | ||
226 | "-e dir set environment variables as specified by files\n" \ | ||
227 | " in the directory: file=1st_line_of_file\n" \ | ||
228 | "-/ dir chroot to dir\n" \ | ||
229 | "-n inc add inc to nice value\n" \ | ||
230 | "-m bytes limit data segment, stack segment, locked physical pages,\n" \ | ||
231 | " and total of all segment per process to bytes bytes each\n" \ | ||
232 | "-d bytes limit data segment\n" \ | ||
233 | "-o n limit the number of open file descriptors per process to n\n" \ | ||
234 | "-p n limit number of processes per uid to n\n" \ | ||
235 | "-f bytes limit output file size to bytes bytes\n" \ | ||
236 | "-c bytes limit core file size to bytes bytes\n" \ | ||
237 | "-v verbose\n" \ | ||
238 | "-P run prog in a new process group\n" \ | ||
239 | "-0 close standard input\n" \ | ||
240 | "-1 close standard output\n" \ | ||
241 | "-2 close standard error" | ||
242 | #define setuidgid_trivial_usage \ | ||
243 | "account prog args" | ||
244 | #define setuidgid_full_usage \ | ||
245 | "Sets uid and gid to account's uid and gid, removing all supplementary\n" \ | ||
246 | "groups, then runs prog" | ||
247 | #define envuidgid_trivial_usage \ | ||
248 | "account prog args" | ||
249 | #define envuidgid_full_usage \ | ||
250 | "Sets $UID to account's uid and $GID to account's gid, then runs prog" | ||
251 | #define envdir_trivial_usage \ | ||
252 | "dir prog args" | ||
253 | #define envdir_full_usage \ | ||
254 | "Sets various environment variables as specified by files\n" \ | ||
255 | "in the directory dir, then runs prog" | ||
256 | #define softlimit_trivial_usage \ | ||
257 | "[-a allbytes] [-c corebytes] [-d databytes] [-f filebytes] " \ | ||
258 | "[-l lockbytes] [-m membytes] [-o openfiles] [-p processes] " \ | ||
259 | "[-r residentbytes] [-s stackbytes] [-t cpusecs] prog args" | ||
260 | #define softlimit_full_usage \ | ||
261 | "Sets soft resource limits as specified by options, then runs prog\n" \ | ||
262 | "\n" \ | ||
263 | "-m n Same as -d n -s n -l n -a n\n" \ | ||
264 | "-d n Limit the data segment per process to n bytes\n" \ | ||
265 | "-s n Limit the stack segment per process to n bytes\n" \ | ||
266 | "-l n Limit the locked physical pages per process to n bytes\n" \ | ||
267 | "-a n Limit the total of all segments per process to n bytes\n" \ | ||
268 | "-o n Limit the number of open file descriptors per process to n\n" \ | ||
269 | "-p n Limit the number of processes per uid to n\n" \ | ||
270 | "Options controlling file sizes:\n" \ | ||
271 | "-f n Limit output file sizes to n bytes\n" \ | ||
272 | "-c n Limit core file sizes to n bytes\n" \ | ||
273 | "Efficiency opts:\n" \ | ||
274 | "-r n Limit the resident set size to n bytes. This limit is not\n" \ | ||
275 | " enforced unless physical memory is full\n" \ | ||
276 | "-t n Limit the CPU time to n seconds. This limit is not enforced\n" \ | ||
277 | " except that the process receives a SIGXCPU signal after n seconds\n" \ | ||
278 | "\n" \ | ||
279 | "Some options may have no effect on some operating systems\n" \ | ||
280 | "n may be =, indicating that soft limit should be set equal to hard limit" | ||
281 | |||
218 | #define chroot_trivial_usage \ | 282 | #define chroot_trivial_usage \ |
219 | "NEWROOT [COMMAND...]" | 283 | "NEWROOT [COMMAND...]" |
220 | #define chroot_full_usage \ | 284 | #define chroot_full_usage \ |