Re: OpenVMS getdtablesize.c

2017-07-15 Thread Bruno Haible
John E. Malmberg wrote: > > [1] http://pubs.opengroup.org/onlinepubs/9699919799/functions/getrlimit.html > According to that link, a system is not required to fail a request for a > file descriptor to be created higher than RLIMIT_NOFILE. Not true. [1] refers to [2], and [2] as well as [3] say th

Re: OpenVMS getdtablesize.c

2017-07-11 Thread John E. Malmberg
On 6/28/2017 3:56 PM, Bruno Haible wrote: John E. Malmberg wrote: OpenVMS has the function. Configure detects it exists, but the test for it working is failing. ... The OpenVMS getdtablesize() is returning the maximum number of open files that a process can have. It is not returning the highes

Re: OpenVMS getdtablesize.c

2017-06-28 Thread Paul Eggert
Bruno Haible wrote: If I have a replacement getdtablesize() return 65535, that could cause programs to assume that they could actually open that many descriptors. This is only a theoretical risk. I know of no programs that are that aggressive. Although GNU 'sort' does something like that, it

Re: OpenVMS getdtablesize.c

2017-06-28 Thread Bruno Haible
John E. Malmberg wrote: > OpenVMS has the function. Configure detects it exists, but the test for > it working is failing. > ... > The OpenVMS getdtablesize() is returning the maximum number of open > files that a process can have. > > It is not returning the highest file descriptor + 1 that ca

Re: OpenVMS getdtablesize.c

2017-06-27 Thread John E. Malmberg
On 6/27/2017 10:13 AM, Bruno Haible wrote: John E. Malmberg wrote: The getdtablesize.c module will not compile on OpenVMS and is really not needed. ... Is there someway for configure to be changed to not set the macros causing it to be built when the platform is OpenVMS? gnulib builds the modu

Re: OpenVMS getdtablesize.c

2017-06-27 Thread Bruno Haible
John E. Malmberg wrote: > The getdtablesize.c module will not compile on OpenVMS and is really not > needed. > ... > Is there someway for configure to be changed to not set the macros > causing it to be built when the platform is OpenVMS? gnulib builds the module 'getdtablesize' because it's a g

OpenVMS getdtablesize.c and getloadavg.c issues.

2017-06-27 Thread John E. Malmberg
Hello, The getdtablesize.c module will not compile on OpenVMS and is really not needed. The way that the an OpenVMS getrlimit() would be most likely implemented to return the RLIMIT_NOFILE is to call the system supplied getdtablesize(). Is there someway for configure to be changed to not se