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.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user