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

Re: [PATCH] find RLIM_NLIMITS correctly on Cygwin




> 2020/01/12 5:15, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> 
> The part that's not clear to me is how we'd even know that «8» is a valid value for
> the first actual argument to getrlimit().  Currently, the code assumes that the
> values of RLIMIT_* macros are consecutive small integers, but that is not guaranteed
> by any standard, is it?

There is no guarantee, but current version of ulimit builtin accepts any number
for -N (and output error). limit builtin accepts only the resource name,
and maybe we accept "unknonw8" only for getrlimit() but not for setrlimit()?



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