_POSIX_VDISABLE
Karl Heuer
karl at IMA.IMA.ISC.COM
Wed Jul 25 08:03:57 AEST 1990
In article <10462 at cs.utexas.edu>:
>From: mcgrath%tully.Berkeley.EDU at ucbvax.Berkeley.EDU (Roland McGrath)
>The problem is that the wording of the standard and the sysconf, pathconf, and
>fpathconf functions were designed for boolean options and for limits which are
>required to be positive integers. In these cases, -1 is a reasonable
>out-of-range value. But _POSIX_VDISABLE is a character value, not restricted
>to any specific range, and doesn't fit in right.
The documented use of _POSIX_VDISABLE is to store it in an object of type
cc_t. This is defined in 7.1.2.1 to be an unsigned integral type; hence -1
is indeed out-of-band. Unless you're trying to make cc_t an unsigned long and
have _POSIX_VDISABLE be ULONG_MAX, you should be okay.
Karl W. Z. Heuer (karl at kelp.ima.isc.com or ima!kelp!karl), The Walking Lint
Volume-Number: Volume 20, Number 143
More information about the Comp.std.unix
mailing list