2006-10-25 15:40:36 +02:00
|
|
|
/* This file is the counterpart of "read.c". It contains the code for writing
|
|
|
|
* insofar as this is not contained in read_write().
|
|
|
|
*
|
|
|
|
* The entry points into this file are
|
|
|
|
* do_write: call read_write to perform the WRITE system call
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "fs.h"
|
|
|
|
#include "file.h"
|
|
|
|
|
|
|
|
|
|
|
|
/*===========================================================================*
|
|
|
|
* do_write *
|
|
|
|
*===========================================================================*/
|
2012-03-25 20:25:53 +02:00
|
|
|
int do_write()
|
2006-10-25 15:40:36 +02:00
|
|
|
{
|
|
|
|
/* Perform the write(fd, buffer, nbytes) system call. */
|
2012-02-13 16:28:04 +01:00
|
|
|
return(do_read_write(WRITING));
|
2006-10-25 15:40:36 +02:00
|
|
|
}
|