OSDN Git Service

Fix ptsname_r(3) return type to match glibc
authorColin Cross <ccross@android.com>
Tue, 12 Jan 2010 20:58:12 +0000 (12:58 -0800)
committerColin Cross <ccross@android.com>
Tue, 12 Jan 2010 20:58:12 +0000 (12:58 -0800)
commit6458c49c96fd2069a82fa6bb48283b4397087a25
tree68fcbb5f16ce4bb500f065129c2cf5297cb59e6f
parent0b5db51ea6d9c0b877d2ce26440d963760c38dfe
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.
libc/include/stdlib.h
libc/unistd/ptsname_r.c