]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Provide more correct default values for sysconf(3) reporting of the AIO
authorAlfred Perlstein <alfred@FreeBSD.org>
Sat, 16 Nov 2002 06:35:20 +0000 (06:35 +0000)
committerAlfred Perlstein <alfred@FreeBSD.org>
Sat, 16 Nov 2002 06:35:20 +0000 (06:35 +0000)
commit3d8ce33a50d2ddac133ac799f4334d5b73f0b218
treeb00a8e8325ea63aa43dee63c0862de9a487f55e4
parentc844abc920e5abfe04bf5e008f98a4250816e1c7
Provide more correct default values for sysconf(3) reporting of the AIO
subsystems capabilities:

_SC_AIO_LISTIO_MAX returns the default of _POSIX_AIO_LISTIO_MAX
_SC_AIO_MAX returns the default _POSIX_AIO_MAX
_SC_AIO_PRIO_DELTA_MAX returns the default of 0

Without these adjustments the values returned are -1 even when the
aio side of the kernel returns '0' for them which is incorrect.

Noticed by: Craig Rodrigues <rodrigc@attbi.com>
lib/libc/gen/sysconf.c