Commit 894cae7
committed
validate/validate: Linux rlimits extend the POSIX rlimits
So don't duplicate those values. Also drop RLIMIT_LOCKS, which the
man page documents as an obsolete-by-Linux-2.6 value [1]. A quick way
to get a set of strings from the man page is:
$ curl -s 'https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/plain/man2/getrlimit.2?h=man-pages-4.13' |
> sed -n 's/^\.BR\? \(RLIMIT_[^ ]*\)/\1/p' | sort | uniq
Also rename the old default*Rlimits, because these are valid-value
arrays, not defaults.
[1]: https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/man2/getrlimit.2?h=man-pages-4.13#n209
Signed-off-by: W. Trevor King <wking@tremily.us>1 parent 3a6f748 commit 894cae7
1 file changed
Lines changed: 7 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 44 | + | |
| 45 | + | |
50 | 46 | | |
51 | 47 | | |
52 | 48 | | |
53 | | - | |
54 | 49 | | |
55 | 50 | | |
56 | 51 | | |
57 | 52 | | |
58 | 53 | | |
59 | | - | |
60 | | - | |
| 54 | + | |
61 | 55 | | |
62 | 56 | | |
63 | 57 | | |
| |||
879 | 873 | | |
880 | 874 | | |
881 | 875 | | |
882 | | - | |
| 876 | + | |
883 | 877 | | |
884 | 878 | | |
885 | 879 | | |
886 | 880 | | |
887 | 881 | | |
888 | 882 | | |
889 | | - | |
| 883 | + | |
890 | 884 | | |
891 | 885 | | |
892 | 886 | | |
| |||
0 commit comments