This is the mail archive of the glibc-bugs@sources.redhat.com 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/447] No useful thread safe error to string function


------- Additional Comments From jakub at redhat dot com  2004-10-14 14:50 -------
1) what makes you think char *strerror_r(int errnum, char *buf, size_t n);
   is obsolete?
2) it never allocates a new string, but may return a .rodata string or
   can fill the user supplied buffer, but in either case it is completely
   thread-safe (no thread can overwrite the .rodata strings)
3) with -D_XOPEN_SOURCE=600 (but without -D_GNU_SOURCE) you get
   the XPG6 int strerror_r (int errnum, char *buf, size_t n); that always
   fills in the user supplied buffer


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://sources.redhat.com/bugzilla/show_bug.cgi?id=447

------- 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]