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

System Functions (s and S) spt_fsyncz(2)
Link the application to the zsptdll library (/G/system/zdllnnn/zsptdll).
RETURN VALUES
Upon successful completion, the spt_fsyncz() function returns the value 0 (zero). Otherwise, it
returns the value -1, and errno is set to indicate the error.
ERRORS
If any of these conditions occurs, the spt_fsyncz( ) function sets errno to the value that
corresponds to the condition:
[EBADF] The filedes parameter is not a valid file descriptor.
[EINTR] The spt_fsyncz() function was interrupted by a signal that was caught.
[EINVAL] The filedes parameter, although valid, does not refer to a file on which this opera-
tion is possible.
[EIO] An I/O error occurred during a write to the fileset.
[EISGUARDIAN]
The value used for the filedes parameter is appropriate only in the Guardian
environment.
[ENETDOWN]
The filedes parameter specifies a file on a remote HP NonStop node, but com-
munication with the remote node has been lost.
[ENXIO] No such device or address. An invalid device or address was specified during an
input or output operation on a special file. One of these events occurred:
A device was specified that does not exist, or a request was made beyond
the limits of the device.
The fileset containing the requestor’s current working directory or root
directory is not mounted. This error can occur after failure and restart of
an OSS name server process until the fileset has been repaired and
remounted.
[EWRONGID] One of these conditions occurred:
The process attempted an operation through an operating system
input/output process (such as a terminal server process) that has failed or
is in the down state.
The processor for the disk process of the specified file failed during an
input or output operation, and takeover by the backup process occurred.
The open file descriptor has migrated to a new processor, but the new
processor lacks a resource or system process needed for using the file
descriptor.
The file descriptor specified by the filedes parameter can only be closed.
For all other error conditions, errno is set to the appropriate Guardian file-system error number.
See the Guardian Procedure Errors and Messages Manual for more information about a specific
Guardian file-system error.
527186-023 Hewlett-Packard Company 7247