45 lines
1.2 KiB
C
45 lines
1.2 KiB
C
/*
|
|
* File:ioctl.h
|
|
*/
|
|
/*
|
|
* $PSLibId: Run-time Library Release 4.7$
|
|
*/
|
|
|
|
#ifndef _SYS_IOCTL_H
|
|
#define _SYS_IOCTL_H
|
|
|
|
|
|
#ifndef NULL
|
|
#define NULL 0
|
|
#endif
|
|
|
|
#ifndef EOF
|
|
#define EOF (-1) /* EOF from getc() */
|
|
#endif
|
|
|
|
/* general */
|
|
#define FIOCNBLOCK (('f'<<8)|1) /* set non-blocking io */
|
|
#define FIOCSCAN (('f'<<8)|2) /* scan for input */
|
|
|
|
/* tty and sio */
|
|
#define TIOCRAW (('t'<<8)|1) /* disable xon/xoff control */
|
|
#define TIOCFLUSH (('t'<<8)|2) /* flush input buffer */
|
|
#define TIOCREOPEN (('t'<<8)|3) /* reopen */
|
|
#define TIOCBAUD (('t'<<8)|4) /* set baud rate */
|
|
#define TIOCEXIT (('t'<<8)|5) /* console interrup */
|
|
#define TIOCDTR (('t'<<8)|6) /* control DTR line */
|
|
#define TIOCRTS (('t'<<8)|7) /* control RTS line */
|
|
#define TIOCLEN (('t'<<8)|8) /* stop<<16 | char */
|
|
/* stop 0:none 1:1 2:1.5 3:2bit */
|
|
/* char 0:5 1:6 2:7 3:8bit */
|
|
#define TIOCPARITY (('t'<<8)|9) /* parity 0:none 1:e 3:o */
|
|
#define TIOSTATUS (('t'<<8)|10) /* return status */
|
|
#define TIOERRRST (('t'<<8)|11) /* error reset */
|
|
#define TIOEXIST (('t'<<8)|12) /* exist test with DTR/CTS */
|
|
#define TIORLEN (('t'<<8)|13) /* receive buffer length */
|
|
|
|
/* disk */
|
|
#define DIOFORMAT (('d'<<8)|1) /* format */
|
|
|
|
#endif /* _SYS_IOCTL_H */
|