Chapter Contents

Previous

Next
oeattache

oeattache



Create a Child Process as a Subtask

Portability: SAS/C extension


SYNOPSIS
DESCRIPTION
RETURN VALUE
CAUTIONS
RELATED FUNCTIONS


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


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.