projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
spare archs without time32 legacy the cost of ioctl fallback conversions
[musl]
/
src
/
misc
/
ioctl.c
diff --git
a/src/misc/ioctl.c
b/src/misc/ioctl.c
index
aa748fb
..
8947751
100644
(file)
--- a/
src/misc/ioctl.c
+++ b/
src/misc/ioctl.c
@@
-120,7
+120,7
@@
int ioctl(int fd, int req, ...)
arg = va_arg(ap, void *);
va_end(ap);
int r = __syscall(SYS_ioctl, fd, req, arg);
arg = va_arg(ap, void *);
va_end(ap);
int r = __syscall(SYS_ioctl, fd, req, arg);
- if (req && r==-ENOTTY) {
+ if (
SIOCGSTAMP != SIOCGSTAMP_OLD &&
req && r==-ENOTTY) {
for (int i=0; i<sizeof compat_map/sizeof *compat_map; i++) {
if (compat_map[i].new_req != req) continue;
union {
for (int i=0; i<sizeof compat_map/sizeof *compat_map; i++) {
if (compat_map[i].new_req != req) continue;
union {