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


BPX1VLK, BPX4VLK (v_lookup)

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

The following code looks up a file named fnewprots in a previously looked-up directory whose vnode token is in DIRVNODETOK. In the returned attribute structure, ATTRFID contains the file identifier (FID) which can be used to obtain a vnode token for the file, subsequent to freeing the vnode token returned by v_lookup via v_rel. For the callable service, see v_lookup (BPX1VLK, BPX4VLK) — Look up a file or directory. For the data structures, see BPXYATTR — Map file attributes for v_ system calls and BPXYOSS — Map operating system specific information.
         MVC   BUFFERA(9),=CL9'fnewprots'
         MVC   BUFLENA,=F'9'
         MVC   OSSSTOR,OSS           Initialize BPXYOSS area
         SPACE ,
         CALL  BPX1VLK,              Lookup a file                     +
               (DIRVNODETOK,         Input: Directory Vnode token      +
               OSSSTOR,              Input/output: BPXYOSS             +
               BUFLENA,              Input: File name length           +
               BUFFERA,              Input: File name                  +
               =A(ATTR#LENGTH),      Input: BPXYATTR length            +
               ATTRSTOR,             Output: BPXYATTR                  +
               VNODETOK,             Output: File Vnode token          +
               RETVAL,               Return value: 0 or -1             +
               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