Guardian Native C Library Calls Reference Manual (G06.27+)

gleno(3) Guardian Native C Library Calls Reference Manual
NAME
gleno - Maps a stream pointer to a Guardian le number
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRTLSRL
G-series native OSS processes: /G/system/sysnn/zcrtlsrl
H-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
H-series OSS processes: /G/system/zdllnnn/zcrtldll
SYNOPSIS
#include <stdio.h>
int gleno(
FILE *stream);
PARAMETERS
stream Species the open stream.
DESCRIPTION
The gleno() function returns the Guardian le number of a stream.
This function replaces calls to the leno() and fdtogfn( ) functions to obtain the Guardian le
number corresponding to a le stream or le descriptor.
NOTES
The gleno() can be called only by native processes. TNS and accelerated processes can call the
leno() and fdtogfn() functions instead.
RETURN VALUES
Upon successful completion, the gleno() function returns the Guardian le number associated
with the stream parameter. If the function is not successful, -1 is returned and errno is set.
ERRORS
If the following condition occurs, the gleno() function sets errno to the corresponding value:
[EINVAL] The stream is an invalid Guardian stream.
STANDARDS CONFORMANCE
The gleno() function is an HP extension to the XPG4 Version 2 specication.
346 Hewlett-Packard Company 527192-004