This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/47432] New: ttyname() not thread-safe
- From: "jb at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 24 Jan 2011 09:57:21 +0000
- Subject: [Bug libfortran/47432] New: ttyname() not thread-safe
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47432
Summary: ttyname() not thread-safe
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libfortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: jb@gcc.gnu.org
In libgfortran/io/unix.c we call the POSIX ttyname() function, which need not
be thread-safe. Instead we should call ttyname_r(), if available.