Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

PUT_SETMODE(2) OSS System Calls Reference Manual
Link the application to the zputdll library (/G/system/zdllnnn/zputdll).
On systems running H06.24 or later H-series RVUs or J06.13 or later J-series RVUs, you can use
this function with 32-bit or 64-bit applications.
To use this function in a 32-bit application on systems running H06.24 or later RVUs or J06.13 or
later RVUs, perform the same tasks (described above) used to enable the function on systems
running H06.21/J06.10 or later RVUs.
To use this function in a 64-bit application on systems running H06.24 or later RVUs or J06.13 or
later RVUs, you must perform all of the following tasks:
Include the pthread.h header file in the application.
Compile the application using the _PUT_MODEL_ feature test macro or equivalent
compiler command option.
Compile the application using the -Wlp64 compiler command option.
Link the application to the yputdll library (/G/system/zdllnnn/yputdll).
Considerations
Default settings
The PUT_SETMODE() settings designated as default in the Guardian Pro-
cedure Calls Reference Manual are the values that apply when a file is opened
(not if a particular function value is omitted when PUT_SETMODE() is called).
Waited PUT_SETMODE() use
The PUT_SETMODE() function is used on a file as a waited operation even if
filenum has been opened for nowait operations. Use the Guardian SETMO-
DENOWAIT procedure for nowait operations.
Use for Telserv processes
No PUT_SETMODE() calls on Telserv are allowed before doing an
PUT_CONTROL() function 11.
Ownership and security of a disk file
"Set disk file security" and "set disk file owner" are rejected unless the requester
is the owner of the file or the super ID.
Interprocess Communication Considerations
Nonstandard parameter values
You can specify any value for the function, param1, and param2 parameters.
Establish an application-defined protocol for interpreting nonstandard parameter
values.
User-defined functions
Use of function code numbers 100 to 109 avoids any potential conflict with
PUT_SETMODE() function codes defined by HP.
Incorrect use of last_params
Guardian file-system error 2 is returned when the last_params parameter is sup-
plied but the target process does not correctly return values for this parameter.
5270 Hewlett-Packard Company 527186-023