This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/5532] Not clear behaviour of function strerror_r


------- Additional Comments From ylalym at gmail dot com  2008-01-03 00:25 -------
The GNU-specific strerror_r() returns a pointer to a string  containing
the  error  message.  This may be either a pointer to a string that the
function stores in buf, or a pointer to some (immutable) static  string
(in which case buf is unused).  If the function stores a string in buf,
then at most buflen bytes are stored (the string may  be  truncated  if
buflen  is too small) and the string always includes a terminating null
byte.

But really given version of this function never uses the buffer.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=5532

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]