repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
powerpc-sf longjmp clobbering of val argument
[musl.git]
/
src
/
misc
/
ptsname.c
blob
58c151c97fbbcd926b1781746aff0c5ce7216d7a
1
#include <stdlib.h>
2
#include <errno.h>
3
4
char
*
ptsname
(
int
fd
)
5
{
6
static char
buf
[
9
+
sizeof
(
int
)*
3
+
1
];
7
int
err
=
__ptsname_r
(
fd
,
buf
,
sizeof
buf
);
8
if
(
err
) {
9
errno
=
err
;
10
return
0
;
11
}
12
return
buf
;
13
}