ls_rwrite
Performs a write operation on a file on a remote host.This routine performs operations on files located on remote hosts. This call corresponds to the UNIX write() system calls.
ls_rwrite performs a read operation on an opened file that is referenced by rfd. The file has been previously opened using ls_ropen.
Either the RES must be running at the remote host to service any remote file operation or rcp() be available.
ls_initrex must be called before calling any remote file operation.
This remote file operation makes use of a Remote File Server on the remote host. When this RFS shuts down, its status will be reported to its client. The client should ignore this status.
#include <sys/types.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <limits.h>
#include <lsf/lsf.h>int ls_rwrite(int rfd, char *buf, int len)
Data Structures:
- Parameters:
rfd References the file that is to be written. *buf Write buffer. len Buffer length. Define Statements:
- none
- none
Errors:
- Returns:
- int: 0
Response is the same from its UNIX counterpart.int:-1
Function failed.Equivalent line commands:
- If the function fails, lserrno is set to indicate the error.
Files:
- none
- none
Date Modified: 28 Jun 2011
Platform Support: support@platform.com
Platform Information Development: doc@platform.com
Platform Computing. Accelerating Intelligence(TM).
Copyright © 1994-2011 Platform Computing Corporation. All rights reserved.