--- MiNT/src/file.h 2018/04/24 17:57:21 1.1.1.4 +++ MiNT/src/file.h 2018/04/24 17:58:10 1.1.1.5 @@ -2,7 +2,7 @@ Copyright 1991,1992 Eric R. Smith. -Copyright 1992,1993 Atari Corporation. +Copyright 1992,1993,1994 Atari Corporation. All rights reserved. @@ -160,7 +160,7 @@ typedef struct xattr { ushort dev; - ushort reserved1; + ushort rdev; /* "real" device */ ushort nlink; @@ -466,7 +466,7 @@ struct kerinfo { void ARGS_ON_STACK (*nap) P_((unsigned)); - void ARGS_ON_STACK (*sleep) P_((int que, long cond)); + int ARGS_ON_STACK (*sleep) P_((int que, long cond)); void ARGS_ON_STACK (*wake) P_((int que, long cond)); @@ -722,6 +722,8 @@ struct kerinfo { #define TIOCSFLAGS (('T'<< 8) | 23) +#define TIOCOUTQ (('T'<< 8) | 24) + /* cursor control Fcntls: @@ -784,6 +786,8 @@ struct kerinfo { #define PLOADINFO (('P'<< 8) | 12) +#define PFSTAT (('P'<< 8) | 13) + struct ploadinfo { @@ -1084,7 +1088,19 @@ struct fs_descr -#define PROC_BASE_DEV 0xA000 +/* various fields for the "rdev" device numbers */ + +#define BIOS_DRIVE_RDEV 0x0000 + +#define BIOS_RDEV 0x0100 + +#define FAKE_RDEV 0x0200 + +#define PIPE_RDEV 0x7e00 + +#define UNK_RDEV 0x7f00 + +#define PROC_RDEV_BASE 0xa000 @@ -1104,5 +1120,35 @@ extern char follow_links[]; +/* internal bios file structure */ + + + +#define BNAME_MAX 13 + + + +struct bios_file { + + char name[BNAME_MAX+1]; /* device name */ + + DEVDRV *device; /* device driver for device */ + + short private; /* extra info for device driver */ + + ushort flags; /* flags for device open */ + + struct tty *tty; /* tty structure (if appropriate) */ + + struct bios_file *next; + + short lockpid; /* owner of the lock */ + + XATTR xattr; /* guess what... */ + +}; + + + #endif /* _filesys_h */