source: trunk/minix/lib/posix/_write.c@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 262 bytes
Line 
1#include <lib.h>
2#define write _write
3#include <unistd.h>
4
5PUBLIC ssize_t write(fd, buffer, nbytes)
6int fd;
7_CONST void *buffer;
8size_t nbytes;
9{
10 message m;
11
12 m.m1_i1 = fd;
13 m.m1_i2 = nbytes;
14 m.m1_p1 = (char *) buffer;
15 return(_syscall(FS, WRITE, &m));
16}
Note: See TracBrowser for help on using the repository browser.