[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#202209: libc6-dev: strerror_r should return int, not char *



Package: libc6-dev
Version: 2.3.2-1
Severity: normal
Tags: upstream

[ You may care to reassign to libc6; I don't care. ]

The prototype for strerror_r according to glibc is:

  char *strerror_r(int, char *, size_t);
 
when according to SUSv3 it should be:

  int strerror_r(int, char *, size_t);

Also, the glibc function will put as much of the data into the buffer as
possible and make sure it is always NUL-terminated, while the SUSv3
function will set errno to ERANGE if there is insufficient space.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux stonewall 2.4.21-2-k7 #1 Sat Jul 5 03:47:02 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages libc6-dev depends on:
ii  libc6                         2.3.2-1    GNU C Library: Shared libraries an

-- no debconf information


-- 
Brian M. Carlson <sandals@crustytoothpaste.ath.cx> 0x560553e7
"Let us think the unthinkable, let us do the undoable. Let us prepare
 to grapple with the ineffable itself, and see if we may not eff it
 after all." --Douglas Adams

Attachment: pgpCm7xLDBgmW.pgp
Description: PGP signature


Reply to: