fldata() behavior
The format of the fldata() function
is as follows:
int fldata(FILE *file, char *filename,
fldata_t
*info);
The fldata() function is used to retrieve information about an open stream. The name of the file is returned in filename and other information is returned in the fldata_t structure, shown in Figure 1. Values specific to this category of I/O are shown in the comment beside the structure element. Additional notes pertaining to this category of I/O follow the figure. For more information on the fldata() function, refer to z/OS XL C/C++ Runtime Library Reference.
Notes:
- The filename is the same as specified
on the
fopen()
orfreopen()
function call. - The
__maxreclen
value is 0 for regular I/O (binary). For record I/O the value islrecl
or the default of 1024 whenlrecl
is not specified. - The
__dsname
value is the real POSIX pathname.