mirror of
https://github.com/elliotnunn/mac-rom.git
synced 2024-12-28 16:31:01 +00:00
4325cdcc78
Resource forks are included only for .rsrc files. These are DeRezzed into their data fork. 'ckid' resources, from the Projector VCS, are not included. The Tools directory, containing mostly junk, is also excluded.
63 lines
1.6 KiB
C
63 lines
1.6 KiB
C
/*
|
|
IOCtl.h -- Device-handler-specific requests
|
|
|
|
Copyright, Apple Computer Inc. 1985-1991
|
|
All rights reserved.
|
|
|
|
This file is used in these builds: ROM System
|
|
|
|
Change History (most recent first):
|
|
|
|
<6> 8/8/91 JL Update copyright
|
|
<5> 6/17/91 JL Checked in MPW 3.2Ä version. Changed __safe_link to
|
|
__cplusplus.
|
|
|
|
To Do:
|
|
*/
|
|
|
|
# ifndef __IOCTL__
|
|
# define __IOCTL__
|
|
|
|
/*
|
|
* ioctl() function prototype
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int ioctl(int fildes, unsigned int cmd, long *arg);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/*
|
|
* IO Control commands.
|
|
*
|
|
* IOCTLs which begin with "FIO" are controls which are general
|
|
* (device driver) control requests. They may be executed by
|
|
* the top-level ioctl() procedure, or previewed by it before
|
|
* passing it on to the driver xxIoctl()s.
|
|
*/
|
|
|
|
# define FIOLSEEK (('f'<<8)|0x00) /* Apple internal use only */
|
|
# define FIODUPFD (('f'<<8)|0x01) /* Apple internal use only */
|
|
|
|
# define FIOINTERACTIVE (('f'<<8)|0x02) /* If device is interactive */
|
|
# define FIOBUFSIZE (('f'<<8)|0x03) /* Return optimal buffer size */
|
|
# define FIOFNAME (('f'<<8)|0x04) /* Return filename */
|
|
# define FIOREFNUM (('f'<<8)|0x05) /* Return fs refnum */
|
|
# define FIOSETEOF (('f'<<8)|0x06) /* Set file length */
|
|
|
|
/*
|
|
* IOCTLs which begin with "TIO" are for TTY (i.e., console or
|
|
* terminal-related) device control requests.
|
|
*/
|
|
|
|
# define TIOFLUSH (('t'<<8)|0x00) /* discard unread input. arg is ignored */
|
|
# define TIOSPORT (('t'<<8)|0x01) /* Obsolete -- do not use */
|
|
# define TIOGPORT (('t'<<8)|0x02) /* Obsolete -- do not use */
|
|
|
|
# endif __IOCTL__
|