mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
2002-04-22 Roland McGrath <roland@frob.com>
* sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID failure from i386_io_perm_* RPCs to ENOSYS.
This commit is contained in:
parent
f89829da36
commit
a3c2e4038e
@ -44,6 +44,9 @@ ioperm (unsigned long int from, unsigned long int num, int turn_on)
|
||||
err = __i386_io_perm_modify (__mach_task_self (), perm, turn_on);
|
||||
__mach_port_deallocate (__mach_task_self (), perm);
|
||||
}
|
||||
|
||||
if (err == MIG_BAD_ID) /* Old kernels don't have these RPCs. */
|
||||
err = ENOSYS;
|
||||
}
|
||||
|
||||
return err ? __hurd_fail (err) : 0;
|
||||
|
Loading…
Reference in New Issue
Block a user