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.
13 lines
207 B
13 lines
207 B
#include <stdlib.h>
|
|
#include <errno.h>
|
|
|
|
char *ptsname(int fd)
|
|
{
|
|
static char buf[9 + sizeof(int)*3 + 1];
|
|
int err = __ptsname_r(fd, buf, sizeof buf);
|
|
if (err) {
|
|
errno = err;
|
|
return 0;
|
|
}
|
|
return buf;
|
|
}
|
|
|