mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
183 B
9 lines
183 B
#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;
|
|
}
|
|
|