Query: rfio_popen
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
RFIO_POPEN(3) Rfio Library Functions RFIO_POPEN(3)NAMErfio_popen, rfio_pclose - start a process and open a pipe to itSYNOPSIS#include <sys/types.h> #include "rfio_api.h" FILE *rfio_popen (const char *command, const char *type); int rfio_pclose (FILE *fs);DESCRIPTIONrfio_popen starts a process and opens a pipe to it. command is a pointer to a string specifying the shell command to be executed. type is a mode indicator for the pipe. One of the characters "r" or "w". rfio_pclose waits for the forked process to terminate and returns the exit status of the command.EXAMPLEint c; FILE *rf; rf = rfio_popen (command, "r"); if (rf == NULL) { rfio_perror ("rfio_popen"); exit (1); } while ((c = rfio_pread (buf, 1, sizeof(buf), rf)) > 0) { ... } c = rfio_pclose (rf);RETURN VALUEThis routine returns NULL if the operation failed or a non-NULL pointer to a FILE structure if the operation was successful. If it fails, serrno variable is set appropriately.ERRORSENOMEM Not enough memory. EINVAL The mode provided is invalid. ECONNRESET Connection reset by peer ETIMEDOUT Connection timed out ECONNREFUSED Connection refused EHOSTUNREACH No route to host SENOSHOST Host unknown. SENOSSERV Service unknown. SEUMSG2LONG Command string too long. SECOMERR Communication error.SEE ALSOrfio_pread(3), rfio_pwrite(3)AUTHORLCG Grid Deployment TeamLCG$Date: 2008/09/24 11:25:01 $ RFIO_POPEN(3)
Related Man Pages |
---|
rfio_fopen(3) - debian |
rfio_fopen64(3) - debian |
rfio_lockf64(3) - debian |
rfio_lockf(3) - debian |
rfio_pclose(3) - debian |
Similar Topics in the Unix Linux Community |
---|
Grep for NULL in a pipe delimited file |
rdesktop error |
Help me please on my problem |
fatal: Read from socket failed: Connection reset by peer |
nc (netcat): Connection refused problem |