sysconf & AIO_LISTIO_MAX
Neale.Ferguson@SoftwareAG-USA.com
Neale.Ferguson@SoftwareAG-USA.com
Fri Sep 22 02:28:00 GMT 2000
Title: RE: sysconf & AIO_LISTIO_MAX
The .texi description seems to make more sense. Linux certainly does support AIO operations but no where in the code is AIO_LISTIO_MAX used or checked.
-----Original Message-----
From: Andreas Jaeger
To: Andreas Schwab
Cc: Neale.Ferguson@SoftwareAG-USA.com; libc-alpha@sources.redhat.com
Sent: 9/22/00 5:12 AM
Subject: Re: sysconf & AIO_LISTIO_MAX
>>>>> Andreas Schwab writes:
ÃÂ > Neale.Ferguson@SoftwareAG-USA.com writes:
ÃÂ > |> On Linux, how do I interpret getting a -1 value from
ÃÂ > |> sysconf(_SC_AIO_LISTIO_MAX) with a ERRNO of 0 (i.e. successful)?
Does that
ÃÂ > |> mean Linux has no limit?
ÃÂ > It means that it is not supported.ÃÂ From SUS2
ÃÂ > (http://www.unix-systems.org/onlinepubs/007908799/xsh/sysconf.html):
ÃÂ >ÃÂ RETURN VALUE
ÃÂ >ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ If name is an invalid value, sysconf() returns -1 and sets errno
to
ÃÂ >ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ indicate the error. If the variable corresponding to name is
ÃÂ >ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ associated with functionality that is not supported by the
system,
ÃÂ >ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ sysconf() returns -1 without changing the value of errno.
Is the glibc manual correct here?ÃÂ It confuses me:
>From conf.texi:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@deftypefun {long int} sysconf (int @var{parameter})
This function is used to inquire about runtime system parameters.ÃÂ The
@var{parameter} argument should be one of the @samp{_SC_} symbols listed
below.
The normal return value from @code{sysconf} is the value you requested.
A value of @code{-1} is returned both if the implementation does not
impose a limit, and in case of an error.
The following @code{errno} error conditions are defined for this
function:
@table @code
@item EINVAL
The value of the @var{parameter} is invalid.
@end table
@end deftypefun
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Andreas
--
ÃÂ Andreas Jaeger
ÃÂ SuSE Labs aj@suse.de
ÃÂ ÃÂ private aj@arthur.inka.de
ÃÂ ÃÂ ÃÂ http://www.suse.de/~aj
More information about the Libc-alpha
mailing list