mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-01 23:40:22 +00:00
Remove K&R compatibility, add missing ints.
This commit is contained in:
parent
27cd2cbea6
commit
ddd4d0151d
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1996, 1998 Free Software Foundation, Inc.
|
/* Copyright (C) 1996, 1998, 1999 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -26,22 +26,22 @@ __BEGIN_DECLS
|
|||||||
/* If TURN_ON is TRUE, request for permission to do direct i/o on the
|
/* If TURN_ON is TRUE, request for permission to do direct i/o on the
|
||||||
port numbers in the range [FROM,FROM+NUM-1]. Otherwise, turn I/O
|
port numbers in the range [FROM,FROM+NUM-1]. Otherwise, turn I/O
|
||||||
permission off for that range. This call requires root privileges. */
|
permission off for that range. This call requires root privileges. */
|
||||||
extern int ioperm __P ((unsigned long int __from, unsigned long int __num,
|
extern int ioperm (unsigned long int __from, unsigned long int __num,
|
||||||
int __turn_on));
|
int __turn_on) __THROW;
|
||||||
|
|
||||||
/* Set the I/O privilege level to LEVEL. If LEVEL is nonzero,
|
/* Set the I/O privilege level to LEVEL. If LEVEL is nonzero,
|
||||||
permission to access any I/O port is granted. This call requires
|
permission to access any I/O port is granted. This call requires
|
||||||
root privileges. */
|
root privileges. */
|
||||||
extern int iopl __P ((int __level));
|
extern int iopl (int __level) __THROW;
|
||||||
|
|
||||||
/* The functions that actually perform reads and writes. */
|
/* The functions that actually perform reads and writes. */
|
||||||
extern unsigned char inb (unsigned long port);
|
extern unsigned char inb (unsigned long int port) __THROW;
|
||||||
extern unsigned short inw (unsigned long port);
|
extern unsigned short int inw (unsigned long int port) __THROW;
|
||||||
extern unsigned long inl (unsigned long port);
|
extern unsigned long int inl (unsigned long int port) __THROW;
|
||||||
|
|
||||||
extern void outb (unsigned char value, unsigned long port);
|
extern void outb (unsigned char value, unsigned long int port) __THROW;
|
||||||
extern void outw (unsigned short value, unsigned long port);
|
extern void outw (unsigned short value, unsigned long int port) __THROW;
|
||||||
extern void outl (unsigned long value, unsigned long port);
|
extern void outl (unsigned long value, unsigned long int port) __THROW;
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user