File:
[DVB] /
dietlibc /
lib /
execv.c
Revision
1.4:
download - view:
text,
annotated -
select for diffs
Thu May 31 17:03:41 2001 UTC (23 years ago) by
fefe
Branches:
MAIN
CVS tags:
finnland_test_200301,
branch_rc14_fieldtest_finnland,
branch_rc13_fieldtest_finnland,
branch_rc12_fieldtest_finnland,
branch_rc10_fieldtest_finnland,
RELEASE_finnland_200301_1,
RC12_FIELDTEST_FINNLAND,
RC10_FIELDTEST_FINNLAND,
HEAD
lots of errno cleanups,
lots of errno related thread-safeness cleanups in librpc (don't ask).
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include "exec_lib.h"
#include "dietfeatures.h"
int execv(const char *file, char *const argv[]) {
if (execve(file,argv,environ)==-1) {
if (errno==ENOEXEC)
__exec_shell(file,argv);
}
return -1;
}
LinuxTV legacy CVS <linuxtv.org/cvs>