Back to index

glibc  2.9
execve.c File Reference
#include <unistd.h>
#include <hurd.h>
#include <fcntl.h>

Go to the source code of this file.


int __execve (char *file_name, argv, envp) const

Function Documentation

int __execve ( char *  file_name,
argv  ,
) const

Definition at line 26 of file execve.c.

  error_t err;
  file_t file = __file_name_lookup (file_name, O_EXEC, 0);

  if (file == MACH_PORT_NULL)
    return -1;

  /* Hopefully this will not return.  */
  err = _hurd_exec (__mach_task_self (), file, argv, envp);

  /* Oh well.  Might as well be tidy.  */
  __mach_port_deallocate (__mach_task_self (), file);

  return __hurd_fail (err);

Here is the call graph for this function: