Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
7cb44cd3de59dc3acf5428c19a6a882aa896e6d0
/
.
/
src
/
misc
/
ptsname.c
blob: a34779276fa011be935e1db0860d775165ba8729 [
file
] [
log
] [
blame
]
#include
<stdlib.h>
#include
<errno.h>
int
__ptsname_r
(
int
,
char
*,
size_t
);
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
;
}