Pascal / BaseUnix / FpExecv
FpAccess, FpAlarm, FpChdir, FpChmod, FpChown, FpClose, FpClosedir, FpDup, FpDup2, » FpExecv, FpExecve, FpExit, FpFcntl, pfdfillset, fpFD_CLR, fpFD_ISSET, fpFD_SET, fpFD_ZERO, FpFork, FPFStat, FpFtruncate, FpGetcwd, FpGetegid, FpGetEnv, fpgeterrno, FpGeteuid, FpGetgid, FpGetgroups, FpGetpgrp, FpGetpid, FpGetppid, fpGetPriority, FpGetuid, FpIOCtl, FpKill, FpLink, FpLseek, fpLstat, FpMkdir, FpMkfifo, Fpmmap, Fpmunmap, FpNanoSleep, fpNice, FpOpen, FpOpendir, FpPause, FpPipe, FpRead, FpReaddir, fpReadLink, FpRename, FpRmdir, fpSelect, fpseterrno, FpSetgid, fpSetPriority, FpSetsid, fpsettimeofday, FpSetuid,
Funcion: FpExecv()
Sintaxis:
function FpExecv(
 
  path: pChar;
 
  argv: ppChar
 
):cInt;
 
function FpExecv(
 
  path: Ans

Descripcion: Remplaza el programa actualmente corriendo con el programa especificado en el path. Este da al programa la opcion en argvp. Este es un apuntador aun arreglo de punteros a cadenas de caracteres. El ultimo puntero en el arreglo quiere decir que fue "nil". El ambiente actual es pasado a el programa. Su fue ejecutado la funcion correctamen, execv no regreza nada.

ERRORES:
Si ocurre un error, es reportado en LinuxError, y quieren decir lo siguiente:

sys_eaccess --> The requested access is denied, either to the file or one of the directories in its path.
sys_einval --> Mode was incorrect.
sys_enoent --> A directory component in Path doesn't exist or is a dangling symbolic link.
sys_enotdir --> A directory component in Path is not a directory.
sys_enomem --> Insufficient kernel memory.
sys_eloop --> Path has a circular symbolic link.

Vea tambien:
fpExecve, fpFork
Ejemplo:
Program Example8;
 
{ Program to demonstrate the Execv function. }
 
Uses Unix, strings;
 
Const Arg0 : PChar = '/bin/ls';
      Arg1 : Pchar = '-l';
 
Var PP : PPchar;
 
 
begin
  GetMem (PP,3*SizeOf(Pchar));
  PP[0]:=Arg0;
  PP[1]:=Arg1;
  PP[3]:=Nil;
  { Execute '/bin/ls -l', with current environment }
  fpExecv ('/bin/ls',pp);
end.

Librerias Pascal

Libreria crt - CRT - Pantalla y teclado del PASCAL de Turbo que maneja la unidad
Libreria dos - DOS - Interface Turbo Pascal MS-DOS
Libreria Graph - Unidad para manipular los graficos de la pantalla compatible con TP
Libreria Objects - Objetos basicos compatible con TP
Libreria math - Rutinas adicionales matematicas
Libreria Printer - Provee de acceso a la impresora
Libreria strings - Rutinas para el manejo de cadenas
Libreria BaseUnix - Funcionalidad Basica de Linux
Libreria System - Manejo de Archivos - Funciones para la manipulacion de archivos en Pascal