--- MiNT/doc/mint.doc 2018/04/24 17:55:36 1.1 +++ MiNT/doc/mint.doc 2018/04/24 17:56:11 1.1.1.2 @@ -246,6 +246,14 @@ PRN=d:\foo\bar +alias d: c:\path + + Creates a "fake" drive (with letter d:) which actually points + + to the directoy "c:\path". Access to files on d: are translated + + appropriately (e.g. "d:\foo" is the same as "c:\path\foo"). + cd d:\foo Change the current drive and directory. This isn't terribly @@ -370,7 +378,7 @@ regions of memory. -The most important of these pseudo drives is drive U:. This is a +MiNT provides a fake "disk drive", drive U:, which is a "unified" file system that has all other drives as subdirectories. @@ -522,21 +530,29 @@ amounts of data between processes. -Other pseudo drives that are available are Q:, V:, and X:. These are just +Note that the TOS 1.0 desktop won't recognize drives above P. Other versions + +of TOS will, though, so you can use the Install Drive menu selection to -aliases for U:\PIPE, U:\DEV, and U:\PROC, respectively, and exist for +install drive U: so that the desktop can recognize it. Otherwise, you -backwards compatibility. Don't use them in new applications; they will +can use the "alias" command in your mint.cnf file to set up aliases for -go away soon. +drive U:, and (if you like) for the special subdirectories of U:, e.g. + alias o: u: + alias p: u:\proc -Note that the TOS 1.0 desktop won't recognize drives above P. Other versions -of TOS will, though, so you can use the Install Drive menu selection to -install the pseudo drives so that the desktop can recognize them. +Some older MiNT programs may expect the aliases: + + alias q: u:\pipe + + alias v: u:\dev + + alias x: u:\proc @@ -554,7 +570,7 @@ refers to the control terminal, so that a character to the control terminal. Thus, - Fforce(-1, Fopen("U:\DEV\MODEM1", 3)); + Fforce(-1, Fopen("U:\DEV\MODEM1", 2)); r = Bconin(2); @@ -564,7 +580,7 @@ programs that use the BIOS for I/O will over the modem. Similarly, the DOS device CON: refers to the current -control terminal, so Fopen("CON:", 3) is normally equivalent to Fdup(-1). +control terminal, so Fopen("CON:", 2) is normally equivalent to Fdup(-1). To access the physical console, use device U:\DEV\CONSOLE. @@ -1014,16 +1030,6 @@ data are not mixed together in a fifo. -NOTE: file locking will eventually be implemented for all files, but - -for now only fifos support file locking. - - - -See the sample LPR and LPD utilites for a demonstration of how to use fifos. - - - Shared memory: @@ -1286,3 +1292,5 @@ long Pgeteuid(): [ GEMDOS 0x138 ] long Pgetegid(): [ GEMDOS 0x139 ] +long Pwaitpid( word pid, word flag, long *rusage): [GEMDOS 0x13a ] +