. service tells you which device it couldn't stat
[minix3.git] / servers / vfs / write.c
blob4a8390b408525f6ff59974c9e99df9da8d8f5e9c
1 /* This file is the counterpart of "read.c". It contains the code for writing
2 * insofar as this is not contained in read_write().
4 * The entry points into this file are
5 * do_write: call read_write to perform the WRITE system call
6 */
8 #include "fs.h"
9 #include <string.h>
10 #include "file.h"
11 #include "fproc.h"
14 /*===========================================================================*
15 * do_write *
16 *===========================================================================*/
17 PUBLIC int do_write()
19 /* Perform the write(fd, buffer, nbytes) system call. */
20 return(read_write(WRITING));