nmav at gnutls.org
Sat Mar 11 11:52:26 CET 2006
On Sat 11 Mar 2006 10:45, Marcus Brinkmann wrote:
> > But how can you be sure that calloc() (or in that case gcry_calloc)
> > will set the errno? calloc is a library call which may or may not
> > use a system call. Even if it works on some systems, this is a very
> > non-portable construction, which will result in no error checking
> > in systems that do not set errno.
> It's not in ISO C, but in POSIX. Single Unix v3 has:
Maybe but this doesn't change my argument. It is less portable than
the ISO/ANSI C behavior. Given that libgcrypt is already ported to
non-UNIX systems as well, I would consider this a bug.
. Even older unix systems may not support that.
More information about the Gcrypt-devel