--- MiNT/src/file.h 2018/04/24 17:56:33 1.1.1.3 +++ MiNT/src/file.h 2018/04/24 17:57:21 1.1.1.4 @@ -2,7 +2,7 @@ Copyright 1991,1992 Eric R. Smith. -Copyright 1992 Atari Corporation. +Copyright 1992,1993 Atari Corporation. All rights reserved. @@ -20,6 +20,8 @@ struct filesys; /* forward declaration struct devdrv; /* ditto */ +struct timeout; /* and ditto */ + typedef struct f_cookie { @@ -476,13 +478,21 @@ struct kerinfo { int ARGS_ON_STACK (*denyshare) P_((FILEPTR *, FILEPTR *)); + LOCK * ARGS_ON_STACK (*denylock) P_((LOCK *, LOCK *)); -/* reserved for future use */ - LOCK * ARGS_ON_STACK (*denylock) P_((LOCK *, LOCK *)); +/* functions for adding/cancelling timeouts */ + + struct timeout * ARGS_ON_STACK (*addtimeout) P_((long, void (*)())); + + void ARGS_ON_STACK (*canceltimeout) P_((struct timeout *)); - long res2[9]; + + +/* reserved for future use */ + + long res2[7]; }; @@ -772,6 +782,24 @@ struct kerinfo { #define PTRACE11 (('P'<< 8) | 11) +#define PLOADINFO (('P'<< 8) | 12) + + + +struct ploadinfo { + + /* passed */ + + short fnamelen; + + /* returned */ + + char *cmdlin, *fname; + +}; + + + #define SHMGETBLK (('M'<< 8) | 0) @@ -996,6 +1024,36 @@ struct dev_descr { }; + + + + +#define FS_INSTALL 0xf001 /* let the kernel know about the file system */ + +#define FS_MOUNT 0xf002 /* make a new directory for a file system */ + +#define FS_UNMOUNT 0xf003 /* remove a directory for a file system */ + +#define FS_UNINSTALL 0xf004 /* remove a file system from the list */ + + + + + +struct fs_descr + +{ + + FILESYS *file_system; + + short dev_no; /* this is filled in by MiNT if arg == FS_MOUNT*/ + + long flags; + + long reserved[4]; + +}; +