1WRITE(2)                      System Calls Manual                     WRITE(2)
2
3
4

NAME

6       write - write on a file
7

SYNOPSIS

9       write(fildes, buffer, nbytes)
10       char *buffer;
11

DESCRIPTION

13       A  file  descriptor  is  a word returned from a successful open, creat,
14       dup, or pipe(2) call.
15
16       Buffer is the address of nbytes contiguous bytes which are  written  on
17       the  output  file.   The  number  of  characters  actually  written  is
18       returned.  It should be regarded as an error if this is not the same as
19       requested.
20
21       Writes  which  are  multiples  of  512  characters  long and begin on a
22       512-byte boundary in the file are more efficient than any others.
23

SEE ALSO

25       creat(2), open(2), pipe(2)
26

DIAGNOSTICS

28       Returns -1 on error: bad descriptor, buffer address, or count; physical
29       I/O errors.
30

ASSEMBLER

32       (write = 4.)
33       (file descriptor in r0)
34       sys write; buffer; nbytes
35       (byte count in r0)
36
37
38
39                                                                      WRITE(2)
Impressum