view modules/getdtablesize @ 15759:4583838a5587

getdtablesize: Support for MSVC 9. * lib/getdtablesize.c: Include msvc-inval.h. (_setmaxstdio_nothrow): New function. (_setmaxstdio): Redefine it. * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro. * modules/getdtablesize (Depends-on): Add msvc-inval. (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
author Bruno Haible <bruno@clisp.org>
date Sat, 24 Sep 2011 01:48:27 +0200
parents cbd754f1928f
children 52cc408447aa
line wrap: on
line source

Description:
getdtablesize() function: return maximum number of file descriptors.

Files:
lib/getdtablesize.c
m4/getdtablesize.m4

Depends-on:
unistd
msvc-inval      [test $HAVE_GETDTABLESIZE = 0]

configure.ac:
gl_FUNC_GETDTABLESIZE
if test $HAVE_GETDTABLESIZE = 0; then
  AC_LIBOBJ([getdtablesize])
  gl_PREREQ_GETDTABLESIZE
fi
gl_UNISTD_MODULE_INDICATOR([getdtablesize])

Makefile.am:

Include:
<unistd.h>

License:
LGPLv2+

Maintainer:
Bruno Haible