. pci driver now returns devices, even when they have been pci_reserve()d
[minix3.git] / lib / posix / _write.c
blob39e96c05f6531275c269328b309da0c21c6c2a64
1 #include <lib.h>
2 #define write _write
3 #include <unistd.h>
5 PUBLIC ssize_t write(fd, buffer, nbytes)
6 int fd;
7 _CONST void *buffer;
8 size_t nbytes;
10 message m;
12 m.m1_i1 = fd;
13 m.m1_i2 = nbytes;
14 m.m1_p1 = (char *) buffer;
15 return(_syscall(FS, WRITE, &m));