write.c

Go to the documentation of this file.
00001 /*
00002  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
00003  * See the copyright notice in the ACK home directory, in the file "Copyright".
00004  */
00005 /* $Header: /opt/proj/minix/cvsroot/src/commands/aal/write.c,v 1.1.1.1 2005/04/21 14:53:58 beng Exp $ */
00006 
00007 #include <system.h>
00008 
00009 int
00010 sys_write(fp, bufptr, nbytes)
00011         File *fp;
00012         char *bufptr;
00013         int nbytes;
00014 {
00015         if (! fp) return 0;
00016         return write(fp->o_fd, bufptr, nbytes) == nbytes;
00017 }

Generated on Fri Apr 14 22:56:38 2006 for minix by  doxygen 1.4.6