Files
Arquivotheca.Solaris-2.5/lib/libc/port/sys/execl.c
seta75D 7c4988eac0 Init
2021-10-11 19:38:01 -03:00

43 lines
767 B
C
Executable File

/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "@(#)execl.c 1.9 92/07/14 SMI" /* SVr4.0 1.5.1.6 */
/*
* execl(name, arg0, arg1, ..., argn, 0)
* environment automatically passed.
*/
#ifdef __STDC__
#pragma weak execl = _execl
#endif
#include "synonyms.h"
#include <stdarg.h>
extern int execve();
/*VARARGS1*/
int
#ifdef __STDC__
execl(char *name, ...)
#else
execl(name, va_alist)
char *name;
va_dcl
#endif
{
va_list args;
extern char **environ;
#ifdef __STDC__
va_start(args,);
#else
va_start(args);
#endif
return (execve(name, (char **)args, environ));
}