BPX1STV (statvfs) example
The following code obtains information about the file
system containing the file identified by pathname.
For the callable service, see statvfs (BPX1STV, BPX4STV) — Get the file system status.
For the data structure, see BPXYSSTF — Map response structure for file system status. AMODE 64 callers
use BPX4STV (statvfs) example.
MVC BUFFERA(8),=CL8'/usr/inv'
MVC BUFLENA,=F'8'
SPACE ,
CALL BPX1STV, Get file system status +
(BUFLENA, Input: Pathname length +
BUFFERA, Input: Pathname +
SSTFL, Input: Length of BPXYSSTF +
SSTF, Buffer, BPXYSSTF +
RETVAL, Return value: -1 or length status +
RETCODE, Return code +
RSNCODE), Reason code +
VL,MF=(E,PLIST) ----------------------------------