#include <sys/types.h> #include <lclib.h> pid_t oeattache(const char *file, char *const argv[], char *const envp[]);
oeattche
function is identical to the oeattach
function with one exception: it has an additional argument.
The envp
argument is a pointer to an array of pointers to
null-terminated strings, which define the environment variables for
the new process. A NULL
pointer is used to mark the end of the array.
oeattache
is successful, it returns the process ID of the
new process. If it is unsuccessful, it returns -1
.
oeattach
.
fork
, execv
, oeattach
Copyright (c) 1998 SAS Institute Inc. Cary, NC, USA. All rights reserved.