* Src/rlimits.awk does not work on old NeXTs
@ 1997-12-26 12:58 Andreas J. Koenig
0 siblings, 0 replies; only message in thread
From: Andreas J. Koenig @ 1997-12-26 12:58 UTC (permalink / raw)
To: zsh-workers
The awk that came with NeXTs was pretty dumb. It didn't even have a
useful manpage, so all I can do is to show you the error produced...
awk -f ./rlimits.awk /usr/include/bsd/sys/resource.h > rlimits.h
awk: syntax error near line 21
awk: illegal statement near line 21
and a workaround that in fact does produce a fine rlimits.h on the
NeXT. This all happens on a NeXT 3.3.
*** /tmp/rlimits.awk.~1.1~ Fri Dec 26 13:41:36 1997
--- /tmp/rlimits.awk Fri Dec 26 13:41:36 1997
***************
*** 18,24 ****
# in this case I assume GNU libc resourcebits.h
if (limnum == "") {
limnum = limidx++
! sub (",", "", limnam)
}
limrev[limnam] = limnum
if (lim[limnum] == "") {
--- 18,26 ----
# in this case I assume GNU libc resourcebits.h
if (limnum == "") {
limnum = limidx++
! # sub (",", "", limnam) # sub not known on NeXT
! split(limnam,limnamarr,",")
! limnam = limnamarr[1] limnamarr[2]
}
limrev[limnam] = limnum
if (lim[limnum] == "") {
Hope this helps some, enjoy,
--
andreas
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-12-26 13:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-26 12:58 Src/rlimits.awk does not work on old NeXTs Andreas J. Koenig
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).