|
|
1.1 root 1: /* read.c - read */
2:
3: #include <conf.h>
4: #include <kernel.h>
5: #include <io.h>
6:
7: /*------------------------------------------------------------------------
8: * read - read one or more bytes from a device
9: *------------------------------------------------------------------------
10: */
11: SYSCALL read(descrp, buff, count)
12: int descrp, count;
13: char *buff;
14: {
15: struct devsw *devptr;
16:
17: if (isbaddev(descrp) )
18: return(SYSERR);
19: devptr = &devtab[descrp];
20: return( (*devptr->dvread)(devptr,buff,count) );
21: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.