ctermid: return string literal, document MT-Safety pitfall

Richard Henderson rth@twiddle.net
Sat Nov 8 15:01:00 GMT 2014


On 11/08/2014 03:20 PM, Alexandre Oliva wrote:
> ctermid: return string literal, document MT-Safety pitfall
> 
> From: Alexandre Oliva <aoliva@redhat.com>
> 
> for  ChangeLog
> 
> 	* sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
> 	string literal if not passed a buffer.
> 	* manual/job.texi (ctermid): Update reasoning, note deviation
> 	from posix, suggest mtasurace when not passed a buffer, for
> 	future non-preliminary safety notes.

LGTM.


r~



More information about the Libc-alpha mailing list