mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 13:33:52 +01:00
14419: glibc 2.2.3 rlimits enum
This commit is contained in:
parent
0a159d0f73
commit
f670ec692f
18
ChangeLog
18
ChangeLog
@ -1,3 +1,8 @@
|
||||
2001-05-21 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 14419: Src/Builtins/rlimits.awk: handle glibc 2.2.3
|
||||
rlimits enum.
|
||||
|
||||
2001-05-21 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 14416: Completion/Base/Core/_tags: include + options for tag order
|
||||
@ -11,6 +16,19 @@
|
||||
|
||||
* 14409: Completion/Zsh/Command/_set: make use of _arguments in _set
|
||||
|
||||
2001-05-21 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 14408: Test/C02cond.ztst: do chmod +w to work around rm -f
|
||||
problem in Cygwin.
|
||||
|
||||
|
||||
* unposted: Completion/Unix/Type/_diff_options: quote $@
|
||||
in calls to _arguments.
|
||||
|
||||
2001-05-21 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 14409: Completion/Zsh/Command/_set: make use of _arguments in _set
|
||||
|
||||
2001-05-21 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 14408: Test/C02cond.ztst: do chmod +w to work around rm -f
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
BEGIN {limidx = 0}
|
||||
|
||||
/^[\t ]*(#[\t ]*define[\t _]*RLIMIT_[A-Z_]*[\t ]*[0-9][0-9]*|RLIMIT_[A-Z_]*,[\t ]*)/ {
|
||||
/^[\t ]*(#[\t ]*define[\t _]*RLIMIT_[A-Z_]*[\t ]*[0-9][0-9]*|RLIMIT_[A-Z_]*,[\t ]*|RLIMIT_[A-Z_]*[\t ]*=[\t ]*[0-9][0-9]*,[\t ]*)/ {
|
||||
limindex = index($0, "RLIMIT_")
|
||||
limtail = substr($0, limindex, 80)
|
||||
split(limtail, tmp)
|
||||
@ -18,6 +18,11 @@ BEGIN {limidx = 0}
|
||||
limindex = index($0, ",")
|
||||
limnam = substr(limnam, 1, limindex-1)
|
||||
}
|
||||
if (limnum == "=") {
|
||||
limnum = limidx++
|
||||
limindex = index($0, ",")
|
||||
limnam = substr(limnam, 1, limindex-1)
|
||||
}
|
||||
limrev[limnam] = limnum
|
||||
if (lim[limnum] == "") {
|
||||
lim[limnum] = limnam
|
||||
@ -53,6 +58,12 @@ BEGIN {limidx = 0}
|
||||
/^[\t ]*RLIM_NLIMITS[\t ]*=[\t ]*RLIMIT_NLIMITS/ {
|
||||
nlimits = limidx
|
||||
}
|
||||
/^[\t ]*RLIM_NLIMITS[\t ]*=[\t ]*[0-9][0-9]*/ {
|
||||
limindex = index($0, "=")
|
||||
limtail = substr($0, limindex, 80)
|
||||
split(limtail, tmp)
|
||||
nlimits = tmp[2]
|
||||
}
|
||||
|
||||
END {
|
||||
if (limrev["MEMLOCK"] != "") {
|
||||
|
Loading…
Reference in New Issue
Block a user