From 4916706cfe590eb06c9b5bd4bd402ce056034d51 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 25 Jul 2014 17:24:00 -0700 Subject: 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 --- libc/bionic/stubs.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'libc/bionic/stubs.cpp') 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; -- cgit v1.2.3