Update.
* sysdeps/unix/sysv/linux/ia64/ioperm.c (_iopl): Match EPERM error the x86 code produces in case of mission permissions. Patch by Bernd Schmidt <bernds@redhat.com>.
This commit is contained in:
parent
3a0e90bd8b
commit
2d9b02a408
@ -1,5 +1,9 @@
|
||||
2004-03-17 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/ia64/ioperm.c (_iopl): Match EPERM error
|
||||
the x86 code produces in case of mission permissions.
|
||||
Patch by Bernd Schmidt <bernds@redhat.com>.
|
||||
|
||||
* resolv/netdb.h: Define AI_IDN_ALLOW_UNASSIGNED,
|
||||
AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED, and
|
||||
NI_IDN_USE_STD3_ASCII_RULES.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1999, 2000, 2001, 2004 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>.
|
||||
|
||||
@ -137,7 +137,13 @@ _iopl (unsigned int level)
|
||||
return -1;
|
||||
}
|
||||
if (level)
|
||||
return _ioperm (0, MAX_PORT, 1);
|
||||
{
|
||||
int retval = _ioperm (0, MAX_PORT, 1);
|
||||
/* Match the documented error returns of the x86 version. */
|
||||
if (retval < 0 && errno == EACCES)
|
||||
__set_errno (EPERM);
|
||||
return retval;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user