Back to index

enigmail  1.4.3
Defines | Functions
IPCProcess.h File Reference
#include "ipc.h"
#include "nspr.h"
#include "prproces.h"

Go to the source code of this file.

Defines

#define IPCProcess   PRProcess
#define IPCFileDesc   PRFileDesc
#define IPC_NULL_HANDLE   nsnull
#define IPC_CreateProcessRedirected   IPC_CreateProcessRedirectedNSPR
#define IPC_CreateInheritablePipe   IPC_CreateInheritablePipeNSPR
#define IPC_WaitProcess   PR_WaitProcess
#define IPC_KillProcess   PR_KillProcess
#define IPC_GetProcessId   IPC_GetProcessIdNSPR
#define IPC_Read   PR_Read
#define IPC_Write   PR_Write
#define IPC_Close   PR_Close
#define IPC_GetError   PR_GetError

Functions

PRProcess * IPC_CreateProcessRedirectedNSPR (const char *path, char *const *argv, char *const *envp, const char *cwd, PRFileDesc *std_in, PRFileDesc *std_out, PRFileDesc *std_err, IPCBool detach)
 Creates a process and assigns the stdin/stdout/stderr file descriptors.
PRStatus IPC_CreateInheritablePipeNSPR (PRFileDesc **readPipe, PRFileDesc **writePipe, IPCBool readInherit, IPCBool writeInherit)
 Set the file descriptors of a pipe, e.g.
PRStatus IPC_GetProcessIdNSPR (IPCProcess *process, PRInt32 *pid)
 Get the process ID of a running subprocess.
void IPC_Shutdown ()

Define Documentation

#define IPC_Close   PR_Close

Definition at line 90 of file IPCProcess.h.

Definition at line 83 of file IPCProcess.h.

Definition at line 82 of file IPCProcess.h.

#define IPC_GetError   PR_GetError

Definition at line 91 of file IPCProcess.h.

Definition at line 87 of file IPCProcess.h.

#define IPC_KillProcess   PR_KillProcess

Definition at line 86 of file IPCProcess.h.

#define IPC_NULL_HANDLE   nsnull

Definition at line 80 of file IPCProcess.h.

#define IPC_Read   PR_Read

Definition at line 88 of file IPCProcess.h.

#define IPC_WaitProcess   PR_WaitProcess

Definition at line 85 of file IPCProcess.h.

#define IPC_Write   PR_Write

Definition at line 89 of file IPCProcess.h.

#define IPCFileDesc   PRFileDesc

Definition at line 79 of file IPCProcess.h.

#define IPCProcess   PRProcess

Definition at line 78 of file IPCProcess.h.


Function Documentation

PRStatus IPC_CreateInheritablePipeNSPR ( PRFileDesc **  readPipe,
PRFileDesc **  writePipe,
IPCBool  readInherit,
IPCBool  writeInherit 
)

Set the file descriptors of a pipe, e.g.

STDIN, to (not) inheritable Usually the file descriptor of the intended direction is inheritable (e.g. "write" for STDIN.

Parameters:
readPipeFile descriptor of the reading pipe
writePipeFile descriptor of the writing pipe
readInheritTrue if reader should be inheritable
writeInheritTrue if writer should be inheritable
PRProcess* IPC_CreateProcessRedirectedNSPR ( const char *  path,
char *const *  argv,
char *const *  envp,
const char *  cwd,
PRFileDesc *  std_in,
PRFileDesc *  std_out,
PRFileDesc *  std_err,
IPCBool  detach 
)

Creates a process and assigns the stdin/stdout/stderr file descriptors.

Parameters:
pathPath to the executable file in native encoding
argvArray of arguments to the process in native encoding
envpArray of environment variables in native encoding
cwdThe subprocess' woring directory in native encoding
std_inThe STDIN file descriptor of the subprocess
std_outThe STDOUT file descriptor of the subprocess
std_errThe STDERR file descriptor of the subprocess
detachTrue if the process should be detached from the parent
PRStatus IPC_GetProcessIdNSPR ( IPCProcess process,
PRInt32 *  pid 
)

Get the process ID of a running subprocess.

void IPC_Shutdown ( )