projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make stdio open, read, and write operations cancellation points
[oweals/musl.git]
/
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
}