# include "bi.h" # define AUTOCOMMAND "PILOT INIT" # define AUTOSECTOR 9 # define AUTOTRACK 0 # define FLUSH 1 struct Auto { char fill [7], size, data [RECSIZE]; }; doauto () { struct Auto Auto; if (sio (READ, &Auto, AUTOTRACK, AUTOSECTOR)) fatal ("Can't read Auto sector\n"); Auto.size = lenstr (AUTOCOMMAND); cpystr (Auto.data, AUTOCOMMAND, NULL); if (sio (WRITE, &Auto, AUTOTRACK, AUTOSECTOR, FLUSH)) fatal ("Can't write Auto sector\n"); }