This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: ctermid: return string literal, document MT-Safety pitfall
- From: Richard Henderson <rth at twiddle dot net>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Sat, 08 Nov 2014 16:01:48 +0100
- Subject: Re: ctermid: return string literal, document MT-Safety pitfall
- Authentication-results: sourceware.org; auth=none
- References: <ortx2b8l2k dot fsf at free dot home> <545C9F02 dot 9060900 at twiddle dot net> <or8ujlsria dot fsf at free dot home>
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~