2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 ANSI C function write().
10 #include <dos/dosextens.h>
11 #include <proto/exec.h>
12 #include <proto/dos.h>
17 /*****************************************************************************
30 Write an amount of characters to the specified file descriptor.
33 fd - The file descriptor to write to
34 buf - Write these bytes into the file descriptor
35 count - Write that many bytes
38 The number of characters written or -1 on error.
50 ******************************************************************************/
54 fdesc
*fdesc
= __getfdesc(fd
);
61 cnt
= Write ((BPTR
)fdesc
->fh
, (void *)buf
, count
);
64 errno
= IoErr2errno (IoErr ());