libc: ioctl sets errno
This commit is contained in:
parent
d0a4583988
commit
b67800fa1f
@ -1,3 +1,4 @@
|
||||
#include <errno.h>
|
||||
#include <syscall.h>
|
||||
#include <syscall_nums.h>
|
||||
#include <sys/ioctl.h>
|
||||
@ -6,7 +7,7 @@
|
||||
DEFN_SYSCALL3(ioctl, SYS_IOCTL, int, unsigned long, void *);
|
||||
|
||||
int ioctl(int fd, unsigned long request, void * argp) {
|
||||
return syscall_ioctl(fd, request, argp);
|
||||
__sets_errno(syscall_ioctl(fd, request, argp));
|
||||
}
|
||||
|
||||
/* termios */
|
||||
|
Loading…
x
Reference in New Issue
Block a user