1RFIO_WRITE(3)               Rfio Library Functions               RFIO_WRITE(3)
2
3
4

NAME

6       rfio_write - writes to a file
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "rfio_api.h"
11
12       int rfio_write (int s, const void *ptr, int size);
13

DESCRIPTION

15       rfio_write stores in a file the bytes starting at ptr, a pointer to the
16       memory location in which resides the information, size bytes, using the
17       descriptor s generated by a previous rfio_open.
18

RETURN VALUE

20       This  routine returns -1 if the operation failed or the number of items
21       actually writen. In case of failure, serrno is set appropriately.
22

ERRORS

24       EBADF        s is not a valid descriptor.
25
26       SENOSHOST    Host unknown.
27
28       SENOSSERV    Service unknown.
29
30       SETIMEDOUT   Timed out.
31
32       SEBADVERSION Version ID mismatch.
33
34       SECONNDROP   Connection closed by remote end.
35
36       SECOMERR     Communication error.
37
38       SENORCODE    Host did not return error number.
39

SEE ALSO

41       Castor_limits(4), rfio_open(3)
42

AUTHOR

44       LCG Grid Deployment Team
45
46
47
48LCG                      $Date: 2005/03/31 13:13:04 $            RFIO_WRITE(3)
Impressum