From 0aaea62a5f3f9c7ca8f8c80c97004f546f860c84 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 9 Apr 2011 14:33:34 +0200 Subject: Add missing header hints. ioperm() can now just work on Linux (since quite a long time actually) --- hurd/porting/guidelines.mdwn | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'hurd') diff --git a/hurd/porting/guidelines.mdwn b/hurd/porting/guidelines.mdwn index 8dd27a52..030a4d06 100644 --- a/hurd/porting/guidelines.mdwn +++ b/hurd/porting/guidelines.mdwn @@ -219,7 +219,7 @@ These are not POSIX, `sys/types.h` and `stdint.h` should be used instead. ## `iopl` -Not supported. Try to replace with `ioperm(0, 65536, 1)` (conditionned with `__GNU__` as that will not work in Linux). +Not supported and actually very dangerous (permits userland to completely disable interruptions...). Replace with `ioperm(0, 65536, 1)`. ## `semget`, `sem_open` @@ -269,3 +269,11 @@ With Python, you can use the [`errno` module](http://docs.python.org/library/err import errno err.errno == errno.ENOENT: ... + +## Missing `linux/types.h`, `asm/types.h`, `linux/limits.h`, `asm/byteorder.h`, `sys/endian.h`, `asm/ioctl.h`, `asm/ioctls.h` + +These are often used (from lame rgrep results) instead of their standard equivalents: `sys/types.h` (or `stdint.h` for fixed-size types), `limits.h`, `endian.h`, `sys/ioctl.h`. + +## Missing `sys/*.h`, `linux/*.h` + +These are linuxish things, they may not have Hurd equivalents yet, better disable the code. -- cgit v1.2.3