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


Considerations for servers written in C

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

The BPXYVFSI header file in Interface structures for C language servers and clients contains prototypes and linkage macros for all the callable services in this topic. With this header, you can call each service using the v_name that is shown in the title, and you will not have to linkedit your program with the linkage stubs.

This header also contains definitions for all structures, parameters, and constants that are used on the interface.

The calling parameters are the same for C and assembler, but the call format follows C syntax. For example, the call statement for creating a file would look like this:
v_create(directory_vnode_token, &oss, name_length, name, sizeof(ATTR),
        attribute_structure, &file_vnode_token, &return_value, &return_code,;
        &reason_code);

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014