diff options
author | Colin Cross <ccross@android.com> | 2010-01-13 17:48:34 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2010-01-15 16:52:35 -0800 |
commit | fc10b24accd082fb33c8f92ff8b92481c22fe3dc (patch) | |
tree | edadb43992d3ff9334ff7e1f257f13073d25ebd6 /libc/bionic/stubs.c | |
parent | 8c59d96e243ba1a05d7d9ab7a14d1a00e20bad4a (diff) | |
download | bionic-fc10b24accd082fb33c8f92ff8b92481c22fe3dc.zip bionic-fc10b24accd082fb33c8f92ff8b92481c22fe3dc.tar.gz bionic-fc10b24accd082fb33c8f92ff8b92481c22fe3dc.tar.bz2 |
Add implementation of fdprintf, clearenv, and stubs for ttyname_r, *usershell
Change-Id: I5fe7e8b6ee5edbb49e707c3b6737a58563781fa3
Diffstat (limited to 'libc/bionic/stubs.c')
-rw-r--r-- | libc/bionic/stubs.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libc/bionic/stubs.c b/libc/bionic/stubs.c index 365f21a..586d497 100644 --- a/libc/bionic/stubs.c +++ b/libc/bionic/stubs.c @@ -361,6 +361,12 @@ char* ttyname(int fd) return NULL; } +int ttyname_r(int fd, char *buf, size_t buflen) +{ + fprintf(stderr, "FIX ME! implement ttyname_r() %s:%d\n", __FILE__, __LINE__); + return -ERANGE; +} + struct netent *getnetbyaddr(uint32_t net, int type) { fprintf(stderr, "FIX ME! implement %s() %s:%d\n", __FUNCTION__, __FILE__, __LINE__); @@ -378,3 +384,20 @@ struct protoent *getprotobynumber(int proto) fprintf(stderr, "FIX ME! implement %s() %s:%d\n", __FUNCTION__, __FILE__, __LINE__); return NULL; } + +char* getusershell(void) +{ + fprintf(stderr, "FIX ME! implement %s() %s:%d\n", __FUNCTION__, __FILE__, __LINE__); + return NULL; +} + +void setusershell(void) +{ + fprintf(stderr, "FIX ME! implement %s() %s:%d\n", __FUNCTION__, __FILE__, __LINE__); +} + +void endusershell(void) +{ + fprintf(stderr, "FIX ME! implement %s() %s:%d\n", __FUNCTION__, __FILE__, __LINE__); +} + |