diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/usage.h | 67 |
1 files changed, 31 insertions, 36 deletions
diff --git a/include/usage.h b/include/usage.h index 110fbf641..466dfac11 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -365,27 +365,26 @@ | |||
365 | "-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n" | 365 | "-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n" |
366 | 366 | ||
367 | #define chpst_trivial_usage \ | 367 | #define chpst_trivial_usage \ |
368 | "[-vP012] [-u user[:group]] [-U user[:group]] [-e dir] " \ | 368 | "[-vP012] [-u USER[:GRP]] [-U USER[:GRP]] [-e DIR]\n" \ |
369 | "[-/ dir] [-n nice] [-m bytes] [-d bytes] [-o files] " \ | 369 | " [-/ DIR] [-n NICE] [-m BYTES] [-d BYTES] [-o N]\n" \ |
370 | "[-p processes] [-f bytes] [-c bytes] prog args" | 370 | " [-p N] [-f BYTES] [-c BYTES] PROG ARGS" |
371 | #define chpst_full_usage "\n\n" \ | 371 | #define chpst_full_usage "\n\n" \ |
372 | "Change the process state and run specified program\n" \ | 372 | "Change the process state and run PROG\n" \ |
373 | "\nOptions:" \ | 373 | "\nOptions:" \ |
374 | "\n -u USER[:GRP] Set uid and gid" \ | 374 | "\n -u USER[:GRP] Set uid and gid" \ |
375 | "\n -U USER[:GRP] Set $UID and $GID in environment" \ | 375 | "\n -U USER[:GRP] Set $UID and $GID in environment" \ |
376 | "\n -e DIR Set environment variables as specified by files" \ | 376 | "\n -e DIR Set environment variables as specified by files" \ |
377 | "\n in DIR: file=1st_line_of_file" \ | 377 | "\n in DIR: file=1st_line_of_file" \ |
378 | "\n -/ DIR Chroot to DIR" \ | 378 | "\n -/ DIR Chroot to DIR" \ |
379 | "\n -n INC Add INC to nice value" \ | 379 | "\n -n NICE Add NICE to nice value" \ |
380 | "\n -m BYTES Limit data segment, stack segment, locked physical pages," \ | 380 | "\n -m BYTES Same as -d BYTES -s BYTES -l BYTES" \ |
381 | "\n and total of all segment per process to BYTES each" \ | ||
382 | "\n -d BYTES Limit data segment" \ | 381 | "\n -d BYTES Limit data segment" \ |
383 | "\n -o N Limit the number of open file descriptors per process to N" \ | 382 | "\n -o N Limit number of open files per process" \ |
384 | "\n -p N Limit number of processes per uid to N" \ | 383 | "\n -p N Limit number of processes per uid" \ |
385 | "\n -f BYTES Limit output file size to BYTES" \ | 384 | "\n -f BYTES Limit output file sizes" \ |
386 | "\n -c BYTES Limit core file size to BYTES" \ | 385 | "\n -c BYTES Limit core file size" \ |
387 | "\n -v Verbose" \ | 386 | "\n -v Verbose" \ |
388 | "\n -P Run prog in a new process group" \ | 387 | "\n -P Create new process group" \ |
389 | "\n -0 Close standard input" \ | 388 | "\n -0 Close standard input" \ |
390 | "\n -1 Close standard output" \ | 389 | "\n -1 Close standard output" \ |
391 | "\n -2 Close standard error" \ | 390 | "\n -2 Close standard error" \ |
@@ -394,41 +393,37 @@ | |||
394 | "account prog args" | 393 | "account prog args" |
395 | #define setuidgid_full_usage "\n\n" \ | 394 | #define setuidgid_full_usage "\n\n" \ |
396 | "Set uid and gid to account's uid and gid, removing all supplementary\n" \ | 395 | "Set uid and gid to account's uid and gid, removing all supplementary\n" \ |
397 | "groups, then run prog" | 396 | "groups and run PROG" |
398 | #define envuidgid_trivial_usage \ | 397 | #define envuidgid_trivial_usage \ |
399 | "account prog args" | 398 | "account prog args" |
400 | #define envuidgid_full_usage "\n\n" \ | 399 | #define envuidgid_full_usage "\n\n" \ |
401 | "Set $UID to account's uid and $GID to account's gid, then run prog" | 400 | "Set $UID to account's uid and $GID to account's gid and run PROG" |
402 | #define envdir_trivial_usage \ | 401 | #define envdir_trivial_usage \ |
403 | "dir prog args" | 402 | "dir prog args" |
404 | #define envdir_full_usage "\n\n" \ | 403 | #define envdir_full_usage "\n\n" \ |
405 | "Set various environment variables as specified by files\n" \ | 404 | "Set various environment variables as specified by files\n" \ |
406 | "in the directory dir, then run prog" | 405 | "in the directory dir and run PROG" |
407 | #define softlimit_trivial_usage \ | 406 | #define softlimit_trivial_usage \ |
408 | "[-a allbytes] [-c corebytes] [-d databytes] [-f filebytes] " \ | 407 | "[-a BYTES] [-m BYTES] [-d BYTES] [-s BYTES] [-l BYTES]\n" \ |
409 | "[-l lockbytes] [-m membytes] [-o openfiles] [-p processes] " \ | 408 | " [-f BYTES] [-c BYTES] [-r BYTES] [-o N] [-p N] [-t N]\n" \ |
410 | "[-r residentbytes] [-s stackbytes] [-t cpusecs] prog args" | 409 | " PROG ARGS" |
411 | #define softlimit_full_usage "\n\n" \ | 410 | #define softlimit_full_usage "\n\n" \ |
412 | "Set soft resource limits, then run prog\n" \ | 411 | "Set soft resource limits, then run PROG\n" \ |
413 | "\nOptions:" \ | 412 | "\nOptions:" \ |
414 | "\n -m n Same as -d n -s n -l n -a n" \ | 413 | "\n -a BYTES Limit total size of all segments" \ |
415 | "\n -d n Limit the data segment per process to n bytes" \ | 414 | "\n -m BYTES Same as -d BYTES -s BYTES -l BYTES -a BYTES" \ |
416 | "\n -s n Limit the stack segment per process to n bytes" \ | 415 | "\n -d BYTES Limit data segment" \ |
417 | "\n -l n Limit the locked physical pages per process to n bytes" \ | 416 | "\n -s BYTES Limit stack segment" \ |
418 | "\n -a n Limit the total of all segments per process to n bytes" \ | 417 | "\n -l BYTES Limit locked memory size" \ |
419 | "\n -o n Limit the number of open file descriptors per process to n" \ | 418 | "\n -o N Limit number of open files per process" \ |
420 | "\n -p n Limit the number of processes per uid to n" \ | 419 | "\n -p N Limit number of processes per uid" \ |
421 | "\nOptions controlling file sizes:" \ | 420 | "\nOptions controlling file sizes:" \ |
422 | "\n -f n Limit output file sizes to n bytes" \ | 421 | "\n -f BYTES Limit output file sizes" \ |
423 | "\n -c n Limit core file sizes to n bytes" \ | 422 | "\n -c BYTES Limit core file size" \ |
424 | "\nEfficiency opts:" \ | 423 | "\nEfficiency opts:" \ |
425 | "\n -r n Limit the resident set size to n bytes. This limit is not" \ | 424 | "\n -r BYTES Limit resident set size" \ |
426 | "\n enforced unless physical memory is full" \ | 425 | "\n -t N Limit CPU time, process receives" \ |
427 | "\n -t n Limit the CPU time to n seconds. This limit is not enforced" \ | 426 | "\n a SIGXCPU after N seconds" \ |
428 | "\n except that the process receives a SIGXCPU signal after n seconds" \ | ||
429 | "\n" \ | ||
430 | "\nSome options may have no effect on some operating systems" \ | ||
431 | "\nn may be =, indicating that soft limit should be set equal to hard limit" \ | ||
432 | 427 | ||
433 | #define chroot_trivial_usage \ | 428 | #define chroot_trivial_usage \ |
434 | "NEWROOT [COMMAND...]" | 429 | "NEWROOT [COMMAND...]" |