delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/06/14/04:39:37

Date: Thu, 14 Jun 2001 11:40:55 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp-workers AT delorie DOT com
Subject: Re: djgpp: djgpp/src/libc/posix/unistd/confstr.txh
In-Reply-To: <200106140303.XAA20065@delorie.com>
Message-ID: <Pine.SUN.3.91.1010614114020.972h-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 13 Jun 2001, cvs-snowball AT delorie DOT com wrote:

> + @subheading Return Value
> + 
> + If @var{name} has a defined value, the minimum size of the buffer required
> + to hold the string including the terminating null is returned.  If this value
> + is greater than @var{len}, then @var{buf} is truncated.
> + 
> + If @var{name} does not have a defined value, zero is returned and errno is
> + set to @code{EINVAL}.

I see that the code also returns zero if DJDIR is undefined (can
happen if someone installs one of the *b.zip packages without djdev),
but in that case errno is not set.  Is that a bug in the code, or
should we amend the docs?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019