* Copyright (c) 1990 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* %sccs.include.redist.c%
* @(#)conf.c 7.2 (Berkeley) %G%
cc
= (*devsw
[io
->i_dev
].dv_strategy
)(io
, READ
);
io
->i_flgs
&= ~F_TYPEMASK
;
if(/*io->i_error || */(c
=scankbd()))
cc
= (*devsw
[io
->i_dev
].dv_strategy
)(io
, WRITE
);
io
->i_flgs
&= ~F_TYPEMASK
;
if(/* io->i_error || */ (c
=scankbd()))
(*devsw
[io
->i_dev
].dv_open
)(io
);
(*devsw
[io
->i_dev
].dv_close
)(io
);
return ((*devsw
[io
->i_dev
].dv_ioctl
)(io
, cmd
, arg
));
int nullsys(), nullioctl();
int wdstrategy(), wdopen()/*, wdioctl()*/;
int fdstrategy(), fdopen()/*, fdioctl()*/;
/*{ "xx", xxstrategy, xxopen, nullsys, nullioctl },*/
{ "wd", wdstrategy
, wdopen
, nullsys
,/*wdioctl*/ nullioctl
},
{ "", 0, 0, 0, 0 }, /* swapdev place holder */
{ "fd", fdstrategy
, fdopen
, nullsys
,/*fdioctl*/ nullioctl
},