Logo
Explore Help
Sign In
fluencelabs/musl
1
0
Fork 0
You've already forked musl
mirror of https://github.com/fluencelabs/musl synced 2025-05-10 22:27:18 +00:00
Code Issues Projects Releases Wiki Activity
musl/include/sys/io.h

14 lines
174 B
C
Raw Normal View History

add ioperm/iopl syscalls based on patches by orc and Isaac Dunham, with some fixes. sys/io.h exists and contains prototypes for these functions regardless of whether the target arch has them; this is a bit unorthodox but I don't think it will break anything. the function definitions do not exist unless the appropriate SYS_* syscall number macro is defined, which should make sure configure scripts looking for these functions don't find them on other systems. presently, sys/io.h does not have the inb/outb/etc. port io macros/functions. I'd be surprised if ioperm/iopl are useful without them, so they probably need to be added at some point in appropriate bits/io.h files...
2012-07-23 16:54:53 -04:00
#ifndef _SYS_IO_H
#define _SYS_IO_H
#ifdef __cplusplus
extern "C" {
#endif
int ioperm(unsigned long, unsigned long, int);
int iopl(int);
#ifdef __cplusplus
}
#endif
#endif
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 418ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API