oeattache -- Create a Child Process as a Subtask

SYNOPSIS

 #include <sys/types.h>
 #include <lclib.h>

 pid_t oeattache(const char *file, char *const argv[],
                 char *const envp[]);
 

DESCRIPTION

The 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.

RETURN VALUE

If oeattache is successful, it returns the process ID of the new process. If it is unsuccessful, it returns -1.

CAUTIONS

Refer to the oeattach.

RELATED FUNCTIONS

fork, execv, oeattach


Copyright (c) 1998 SAS Institute Inc. Cary, NC, USA. All rights reserved.