projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
4f56781d5cdb671678a62a1afac9c304efa45606
[musl]
/
src
/
misc
/
ptsname.c
1
#include <stdlib.h>
2
3
int __ptsname_r(int, char *, size_t);
4
5
char *ptsname(int fd)
6
{
7
static char buf[9 + sizeof(int)*3 + 1];
8
return __ptsname_r(fd, buf, sizeof buf) < 0 ? 0 : buf;
9
}