projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix VIDIOC_DQEVENT (v4l2) ioctl fallback for pre-5.6 kernels
[musl]
/
src
/
unistd
/
ttyname_r.c
diff --git
a/src/unistd/ttyname_r.c
b/src/unistd/ttyname_r.c
index
cb364c2
..
82acb75
100644
(file)
--- a/
src/unistd/ttyname_r.c
+++ b/
src/unistd/ttyname_r.c
@@
-9,7
+9,7
@@
int ttyname_r(int fd, char *name, size_t size)
char procname[sizeof "/proc/self/fd/" + 3*sizeof(int) + 2];
ssize_t l;
- if (!isatty(fd)) return
ENOTTY
;
+ if (!isatty(fd)) return
errno
;
__procfdname(procname, fd);
l = readlink(procname, name, size);