OSF DCE Application Development Guide--Core Components
OSF DCE Application Development Guide—Core Components
* bound to that server be passed as the binding parameter h.
*
* Operation to OPEN a file; returns context handle for that
* file.
*/
file_handle_t file_open
(
/* RPC handle bound to file server */
[in] handle_t h,
/* File specification of file to open */
[in] filespec_t fs
);
/*
* The file_read call is able to use the context handle
* obtained from the file_open as the binding parameter,
* thus an RPC handle is not necessary.
*
* Operation to read from an opened file; returns true if
* not end-of-file
*/
boolean file_read
(
/* Context handle of opened file */
[in] file_handle_t fh,
/* Maximum number of characters to read */
[in] long buf_size,
/* Actual number of characters of data read */
[out] long *data_size,
/* Buffer for characters read */
[out, size_is(buf_size), length_is(*data_size)] \
buf_t buffer
);
/* Operation to close an opened file */
void file_close
(
/* Valid file context handle goes [in]. On successful close,
* null is returned.
*/
[in,out] file_handle_t *fh
);
}
17 − 64 Tandem Computers Incorporated 124245