next up previous
Next: Implementation of Interface Procedures Up: No Title Previous: Monolithic processes

The Unix I/O Interface to the User

cat file.txt > /dev/tty
cat file.txt > /dev/lpr
cat file.au > /dev/audio

fd = open(filename, mode)
close(fd)

nbytesread = read(fd,buffer,nbytes)
nbyteswritten = write(fd, buffer, nbytes)
pos = lseek(fd,offset,offsettype)

Requests are made to the file manager via a request queue

  figure81
Figure 3: Filemanager

Each descriptor within the request queue is as follows :

  figure86
Figure 4: FileMan request queue

What additional information is needed for an open request ?



Omer F Rana
Fri Feb 14 18:33:29 GMT 1997