fix errno for posix_openpt with no free ptys available
[musl.git] / src / linux / ioperm.c
blob08c6d8b86ca1b6f06ba54854a6898d7ea4a1ebc5
1 #include "syscall.h"
3 #ifdef SYS_ioperm
4 #include <sys/io.h>
6 int ioperm(unsigned long from, unsigned long num, int turn_on)
8 return syscall(SYS_ioperm, from, num, turn_on);
10 #endif