Path: utzoo!attcan!uunet!mcvax!botter.cs.vu.nl!ark.cs.vu.nl!huisjes From: huisjes@cs.vu.nl (Michiel Huisjes) Newsgroups: comp.os.minix Subject: Re: DOS[READ\WRITE\DIR] on 3 1/2 etc etc Message-ID: <1269@ark.cs.vu.nl> Date: 18 May 88 16:16:46 GMT References: <1516@runx.ips.oz> Reply-To: huisjes@cs.vu.nl (Michiel Huisjes) Organization: VU Informatica, Amsterdam Lines: 27 In article <1516@runx.ips.oz> johnf@runx.ips.oz (John F. Baird) writes: > Does anybody know if DOSREAD, DOSWRITE and DOSDIR on Minix 1.2 > can read and write 3 1/2" MSDOS disks?. DOSREAD etc on 1.1 > ... > ... Oh yeah; > another thing:- can anyone explain why DOSREAD doesnt just > do calls to "printf" etc etc. Why does it have all that > "print_string" stuff?. why not use printf directly? (my > modified version does - will it still work on Minix?). > Thankx, > Greyham The original version of dosread/write/dir as written by me, could only handle 360K and 1.2M diskettes. Watch out for patches that include diskettes (hard-disks) of which the FAT entries are not 1.5 but 2 bytes. Also you will have to check the amount of bytes used for the Root directory and both FAT tables. I left out the "stdio" library and inserted this limited version of print_string, because by the time I wrote dosr/w/d, there were serious troubles concerning the amount of disk space left. Using print_string kept the binary about 3 or 4K smaller. -- Michiel Huisjes. (huisjes@cs.vu.nl) {seismo|decvax|philabs}!mcvax!vu44!huisjes