summaryrefslogtreecommitdiffstats
path: root/libc/include/stdlib.h
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2010-01-12 12:58:12 -0800
committerColin Cross <ccross@android.com>2010-01-12 12:58:12 -0800
commit6458c49c96fd2069a82fa6bb48283b4397087a25 (patch)
tree68fcbb5f16ce4bb500f065129c2cf5297cb59e6f /libc/include/stdlib.h
parent0b5db51ea6d9c0b877d2ce26440d963760c38dfe (diff)
downloadbionic-6458c49c96fd2069a82fa6bb48283b4397087a25.zip
bionic-6458c49c96fd2069a82fa6bb48283b4397087a25.tar.gz
bionic-6458c49c96fd2069a82fa6bb48283b4397087a25.tar.bz2
Fix ptsname_r(3) return type to match glibc
The gHardy man pages specify the return type of ptsname_r to be char*, but the return value to be 0 on success, negative on error and the gHardy stdlib.h defines extern int ptsname_r(...). Busybox telnetd fails to run successfully without this change.
Diffstat (limited to 'libc/include/stdlib.h')
-rw-r--r--libc/include/stdlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h
index acfe694..41e8d26 100644
--- a/libc/include/stdlib.h
+++ b/libc/include/stdlib.h
@@ -132,7 +132,7 @@ static __inline__ void srandom(unsigned int __s)
extern int unlockpt(int);
extern char* ptsname(int);
-extern char* ptsname_r(int, char*, size_t);
+extern int ptsname_r(int, char*, size_t);
extern int getpt(void);
static __inline__ int grantpt(int __fd)