[ksh93-integration-discuss] getconf SSIZE_MAX

Glenn Fowler gsf at research.att.com
Mon Apr 2 09:33:49 PDT 2007


there is an inconsistency in the implementation of
	getconf SSIZE_MAX
vs other symbols like
	getconf SIZE_MAX
	getconf INT_MAX
	getconf UINT_MAX

the inconsistency is that
	getconf SIZE_MAX
returns the actual largest value for size_t, whereas
	getconf SSIZE_MAX
returns the _POSIX_SSIZE_MAX minmax value, as does
	getconf _POSIX_SSIZE_MAX

this shows that getconf is capable of distinguishing between
actual and minmax values:
	getconf AIO_LISTIO_MAX		=> 4096
	getconf _POSIX_AIO_LISTIO_MAX	=> 2 (the minmax value)

man did not reveal a special case for SSIZE_MAX

for consistency "getconf SSIZE_MAX" should return the
largest value for ssize_t

any solaris rationale why it doesn't?

-- Glenn Fowler -- AT&T Research, Florham Park NJ --




More information about the ksh93-integration-discuss mailing list