aboutsummaryrefslogtreecommitdiffstats
path: root/libc/include/stdlib.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-12-09 20:30:23 -0800
committerElliott Hughes <enh@google.com>2014-12-09 20:30:23 -0800
commita381fe8ebcd196614a00f4dca3539e0860ef9e84 (patch)
tree3554d98520ded579dcc9ad2e5e4f36e23f3f7b5f /libc/include/stdlib.h
parent3592743f7191c69ae1fd2d7e01222bd380d93d3e (diff)
downloadandroid_bionic-a381fe8ebcd196614a00f4dca3539e0860ef9e84.tar.gz
android_bionic-a381fe8ebcd196614a00f4dca3539e0860ef9e84.tar.bz2
android_bionic-a381fe8ebcd196614a00f4dca3539e0860ef9e84.zip
Fix ptsname(3) and ttyname(3) to use TLS.
Be safe by default. Change-Id: I6c4a3f1fd4eee3a651b3162ce95b7e873de57521
Diffstat (limited to 'libc/include/stdlib.h')
-rw-r--r--libc/include/stdlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h
index 3053e85b2..dfb788e57 100644
--- a/libc/include/stdlib.h
+++ b/libc/include/stdlib.h
@@ -131,7 +131,7 @@ void srandom(unsigned int);
int getpt(void);
int grantpt(int);
int posix_openpt(int);
-char* ptsname(int) __warnattr("ptsname is not thread-safe; use ptsname_r instead");
+char* ptsname(int);
int ptsname_r(int, char*, size_t);
int unlockpt(int);