fexecve

Executes a file descriptor.

Library:LibC
Classification:Linux
Service:General C Services

Syntax

  #include <unistd.h>
  
  int fexecve (
     int           fildes,
     char *const   argv[],
     char *const   envp[]);
  

Parameters

fildes

(IN) Specifies a file descriptor.

argv

(IN) Points to an array of null-terminated strings that represent the parameter list that is available to the new program. The array must be null terminated.

envp

(IN) Points to an array of null-terminated strings, usually in the form key=value, that represent the environment of the program to execute. This array must be null terminated.

Return Values

If an error occurs, returns -1 and sets errno to indicate the error. Otherwise, nothing is returned.

Remarks

IMPORTANT:This function is only available to NLMs that link with the POSIX semantics flag and load into protected address space (ring3). If these requirements are not met, errno is set to ENOSYS.

See Also