Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (N)
Guardian Procedure Calls Reference Manual522629-013
10-40
NODENAME_TO_NODENUMBER_ Procedure
NODENAME_TO_NODENUMBER_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Summary
The NODENAME_TO_NODENUMBER_ procedure converts a node name (system
name) to the corresponding node number (system number). It can also be used to
obtain the number of the callers node.
Syntax for C Programmers
The parameter length specifies the length in bytes of the character string pointed to
by
nodename. The parameters nodename and length must either both be supplied
or both be absent.
Syntax for TAL Programmers
Parameters
error returned value
INT
is a file-system error number indicating the outcome of the operation.
nodename:length input:input
STRING .EXT:ref:*, INT:value
Note. In the TNS/E environment the CEXTDECS file uses the int data type for 32-bit values.
This is a change from the TNS and TNS/R environments where CEXTDECS uses the long
data type for 32-bit values.
#include <cextdecs(NODENAME_TO_NODENUMBER_)>
short NODENAME_TO_NODENUMBER_ ( [ const char *nodename ]
,[ short length ]
,__int32_t *nodenumber
,[ __int32_t *ldevnum ]);
error := NODENAME_TO_NODENUMBER_ ( [ nodename:length ] ! i:i
,nodenumber ! o
,[ ldevnum ] ); ! o