commit | a381fe8ebcd196614a00f4dca3539e0860ef9e84 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Dec 09 20:30:23 2014 -0800 |
committer | Elliott Hughes <enh@google.com> | Tue Dec 09 20:30:23 2014 -0800 |
tree | 3554d98520ded579dcc9ad2e5e4f36e23f3f7b5f | |
parent | 3592743f7191c69ae1fd2d7e01222bd380d93d3e [diff] [blame] |
Fix ptsname(3) and ttyname(3) to use TLS. Be safe by default. Change-Id: I6c4a3f1fd4eee3a651b3162ce95b7e873de57521
diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h index 3053e85..dfb788e 100644 --- a/libc/include/stdlib.h +++ b/libc/include/stdlib.h
@@ -131,7 +131,7 @@ 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);