Advertisement
Guest User

minimal iopl(3) example

a guest
Sep 16th, 2021
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <sys/io.h>
  3. #include <errno.h>
  4.  
  5. int main(int argc, char **argv)
  6. {
  7.     int res = iopl(3);
  8.     printf("iopl(3) returned %i\n", res);
  9.     printf("errno  = %i\n", errno);
  10.     printf("EINVAL = %i\n", EINVAL);
  11.     printf("ENOSYS = %i\n", ENOSYS);
  12.     printf("EPERM  = %i\n", EPERM);
  13.     return 0;
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement