z/OS Using REXX and z/OS UNIX System Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


readlink

z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00

Read syntax diagramSkip visual syntax diagram
>>-readlink--pathname--+----------+----------------------------><
                       '-variable-'   

Function

readlink invokes the readlink callable service to read the contents of a symbolic link. A symbolic link is a file that contains the pathname for another file. The length, in bytes, of the contents of the link is returned in RETVAL. If a variable is specified, the pathname is read into it.

Parameters

pathname
A pathname for the symbolic link.
variable
The name of the variable to hold the contents of the symbolic link. After the link is read, the length of the variable is the length of the symbolic link.

Example

In the following example, assume that sl and linkbuf were assigned a value earlier in the exec:
"readlink (sl) linkbuf"

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014