commit | 4916706cfe590eb06c9b5bd4bd402ce056034d51 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Jul 25 17:24:00 2014 -0700 |
committer | Elliott Hughes <enh@google.com> | Fri Jul 25 19:55:23 2014 -0700 |
tree | 75e0434f53123a7f34ffb405b84899bbacc80b38 | |
parent | 50a9630cc26cbc1e38e3ddc589f04fa5cd91697b [diff] [blame] |
Fix linkage of grantpt(3). Also clean up the implementation of all the pty functions, add tests, and fix the stub implementations of ttyname(3) and ttyname_r(3). Bug: https://code.google.com/p/android/issues/detail?id=58888 Change-Id: I0fb36438cd1abf8d4e87c29415f03db9ba13c3c2
diff --git a/libc/include/unistd.h b/libc/include/unistd.h index 12e6257..82c53e8 100644 --- a/libc/include/unistd.h +++ b/libc/include/unistd.h
@@ -170,7 +170,7 @@ extern int optind, opterr, optopt; extern int isatty(int); -extern char* ttyname(int); +extern char* ttyname(int) __warnattr("ttyname is not thread-safe; use ttyname_r instead"); extern int ttyname_r(int, char*, size_t); extern int acct(const char* filepath);