aboutsummaryrefslogtreecommitdiffstats
path: root/libc/bionic/stubs.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-07-25 17:24:00 -0700
committerElliott Hughes <enh@google.com>2014-07-25 19:55:23 -0700
commit4916706cfe590eb06c9b5bd4bd402ce056034d51 (patch)
tree75e0434f53123a7f34ffb405b84899bbacc80b38 /libc/bionic/stubs.cpp
parent50a9630cc26cbc1e38e3ddc589f04fa5cd91697b (diff)
downloadandroid_bionic-4916706cfe590eb06c9b5bd4bd402ce056034d51.tar.gz
android_bionic-4916706cfe590eb06c9b5bd4bd402ce056034d51.tar.bz2
android_bionic-4916706cfe590eb06c9b5bd4bd402ce056034d51.zip
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
Diffstat (limited to 'libc/bionic/stubs.cpp')
-rw-r--r--libc/bionic/stubs.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/libc/bionic/stubs.cpp b/libc/bionic/stubs.cpp
index 0937e9c06..b1e38be8f 100644
--- a/libc/bionic/stubs.cpp
+++ b/libc/bionic/stubs.cpp
@@ -444,16 +444,6 @@ void endpwent() {
UNIMPLEMENTED;
}
-char* ttyname(int /*fd*/) { // NOLINT: implementing bad function.
- UNIMPLEMENTED;
- return NULL;
-}
-
-int ttyname_r(int /*fd*/, char* /*buf*/, size_t /*buflen*/) {
- UNIMPLEMENTED;
- return -ERANGE;
-}
-
char* getusershell() {
UNIMPLEMENTED;
return NULL;