1XDF_CLOSE(3)               xdffileio library manual               XDF_CLOSE(3)
2
3
4

NAME

6       xdf_close - Close a xDF file
7

SYNOPSIS

9       #include <xdfio.h>
10
11       int xdf_close(struct xdf* xdf);
12

DESCRIPTION

14       xdf_close()  closes the xDF file referenced by the handle xdf. When the
15       file is closed, if a record is not full, it will be completed by zeros.
16       After a call to xdf_close(), xdf should not be used anymore even if the
17       call fails since all resources associated will be freed anyways.
18

RETURN VALUE

20       The function returns 0 in case of succes. Otherwise, -1 is returned and
21       errno is set accordingly.
22

ERRORS

24       EINVAL xdf is NULL
25
26       EFBIG  An attempt was made to write a file that exceeds the implementa‐
27              tion-defined maximum file size or the process's file size limit,
28              or to write at a position past the maximum allowed offset.
29
30       EINTR  The  call  was interrupted by a signal before any data was writ‐
31              ten; see signal(7).
32
33       EIO    A low-level I/O error occurred while modifying the inode.
34
35       ENOSPC The device containing the xDF file has no room for the data.
36
37       ESTALE Stale file handle. This error can occur for NFS  and  for  other
38              file systems
39
40
41
42
43EPFL                                 2010                         XDF_CLOSE(3)
Impressum