z/OS UNIX System Services File System Interface Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


BPX1VRA, BPX4VRA (v_readlink)

z/OS UNIX System Services File System Interface Reference
SA23-2285-00

The following code reads the contents of a previously looked up symbolic link file whose vnode token is in VNODETOK, into the buffer provided. This will be the path name that was specified when the symbolic link was defined. For the callable service, see v_readlink (BPX1VRA, BPX4VRA) — Read a symbolic link. For the data structures, see Mapping macros in z/OS UNIX System Services Programming: Assembler Callable Services Reference.
         MVC   OSSSTOR,OSS           Initialize BPXYOSS area
         MVC   FUIOSTOR,FUIO         Initialize BPXYFUIO area
         LA    R5,FUIOSTOR           Address and
         USING FUIO,R5               map BPXYFUIO area
         LA    R15,BUFFERA           Set address of buffer
         ST    R15,FUIOBUFFERADDR    for symlink in FUIO
         MVC   FUIOIBYTESRW,=F'1023' Max number of bytes to read
         DROP  R5
         SPACE ,
         CALL  BPX1VRA,              Read the value of a symbolic link +
               (VNODETOK,            Input: Vnode token for file       +
               OSSSTOR,              Input/output: BPXYOSS             +
               FUIOSTOR,             Input/output: BPXYFUIO            +
               RETVAL,               Return value: 0, -1 or char count +
               RETCODE,              Return code                       +
               RSNCODE),             Reason code                       +
               VL,MF=(E,PLIST)       ----------------------------------

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014