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

NAME

6       rfio_fileno - maps stream pointer to file descriptor
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "rfio_api.h"
11
12       int rfio_fileno (FILE *fp);
13

DESCRIPTION

15       rfio_fileno  returns  the  integer  file descriptor associated with the
16       stream pointed to by fp.
17

RETURN VALUE

19       Upon successful completion, rfio_fileno() returns the integer value  of
20       the  file  descriptor associated with the stream parameter.  Otherwise,
21       the value -1 is returned and serrno is set appropriately.
22

ERRORS

24       EBADF        fp is not a valid file descriptor.
25

SEE ALSO

27       rfio_fopen(3)
28

AUTHOR

30       LCG Grid Deployment Team
31
32
33
34LCG                      $Date: 2005/03/31 13:13:02 $           RFIO_FILENO(3)
Impressum