Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: About to release 3.0.7 ...



	Hi Bart,

FreeBSD -current has recently acquired a new limit type:

>From /usr/include/sys/resource.h:

#define RLIMIT_SBSIZE   9               /* maximum size of all socket buffers */

This causes Src/rlimits.awk to exit with badlimit == 1:

awk -f ./rlimits.awk /usr/include/sys/resource.h > rlimits.h
*** Error code 1

Stop in /usr/local/src/zsh-3.0.7/Src.
*** Error code 1

Stop in /usr/local/src/zsh-3.0.7.
jos:/usr/local/src/zsh-3.0.7# cat Src/rlimits.h
/** rlimits.h                                 **/
/** architecture-customized limits for zsh **/

#define ZSH_NLIMITS 10

static char *recs[ZSH_NLIMITS+1] = {
        "cputime",
        "filesize",
        "datasize",
        "stacksize",
        "coredumpsize",
        "memoryuse",
        "memorylocked",
        "maxproc",
        "descriptors",
        "SBSIZE",
        NULL
};   

Suggested fix:

--- Src/rlimits.awk.orig        Mon Oct 18 01:44:46 1999
+++ Src/rlimits.awk     Mon Oct 18 01:45:22 1999
@@ -37,6 +37,7 @@
            if (limnam == "TCACHE")  { msg[limnum] = "cachedthreads" }
            if (limnam == "AIO_OPS") { msg[limnum] = "aiooperations" }
            if (limnam == "AIO_MEM") { msg[limnum] = "aiomemorylocked" }
+           if (limnam == "SBSIZE")  { msg[limnum] = "sbsize" }
         }
     }
 }

Thanks,
-- 
Jos Backus                          _/ _/_/_/  "Reliability means never
                                   _/ _/   _/   having to say you're sorry."
                                  _/ _/_/_/             -- D. J. Bernstein
                             _/  _/ _/    _/
Jos.Backus@xxxxxxxxxxxxxxxx  _/_/  _/_/_/      use Std::Disclaimer;



Messages sorted by: Reverse Date, Date, Thread, Author