mirror of
https://github.com/fluencelabs/musl
synced 2025-05-01 01:52:14 +00:00
based on proposal by Isaac Dunham. nonexistance of bits/io.h will cause inclusion of sys/io.h to produce an error on archs that are not supposed to have it. this is probably the desired behavior, but the error message may be a bit unusual.
11 lines
124 B
C
11 lines
124 B
C
#include "syscall.h"
|
|
|
|
#ifdef SYS_iopl
|
|
#include <sys/io.h>
|
|
|
|
int iopl(int level)
|
|
{
|
|
return syscall(SYS_iopl, level);
|
|
}
|
|
#endif
|