1RFIO_PWRITE(3) Rfio Library Functions RFIO_PWRITE(3)
2
3
4
6 rfio_pwrite - writes to a file
7
9 #include <sys/types.h>
10 #include "rfio_api.h"
11
12 int rfio_pwrite (char *ptr, int size, int items, FILE *fd);
13
15 rfio_pwrite 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_popen.
18
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
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
41 rfio_popen(3)
42
44 LCG Grid Deployment Team
45
46
47
48LCG $Date: 2008/09/24 11:25:01 $ RFIO_PWRITE(3)