blob: 4f56781d5cdb671678a62a1afac9c304efa45606 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
#include <stdlib.h>
int __ptsname_r(int, char *, size_t);
char *ptsname(int fd)
{
static char buf[9 + sizeof(int)*3 + 1];
return __ptsname_r(fd, buf, sizeof buf) < 0 ? 0 : buf;
}
|