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: Torvald Riegel <triegel at redhat dot com>
- To: Richard Henderson <rth at twiddle dot net>
- Cc: Alexandre Oliva <aoliva at redhat dot com>, libc-alpha at sourceware dot org
- Date: Tue, 11 Nov 2014 15:37:51 +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> <545E305C dot 6000204 at twiddle dot net>
On Sat, 2014-11-08 at 16:01 +0100, Richard Henderson wrote:
> 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.
Same for me.