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

NAME

6       rfio_fwrite - writes to a file
7

SYNOPSIS

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

DESCRIPTION

15       rfio_fwrite  stores  in a file the bytes starting at ptr , a pointer to
16       the memory location in which resides the information, items times  size
17       bytes, using the descriptor fd generated by a previous rfio_fopen.
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        fd is a NULL pointer.
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       rfio_fopen(3)
42

AUTHOR

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