ezmlmx 0.68
ezmlmx
Loading...
Searching...
No Matches
wrap_execv.c
Go to the documentation of this file.
1#include "error.h"
2#include "errtxt.h"
3#include "wrap.h"
4#include "idx.h"
5#include "logmsg.h"
6
7#define WHO "wrapper"
8
14
15static void wrapper(int (*fn)(char*,char**), const char **args)
16{
17 fn((char*)*args, (char**)args);
18 logmsg(WHO,(errno == ETXTBSY || errno == ENOMEM || errno == EIO) ?
19 111 : 100,FATAL,B(ERR_EXECUTE,args[0]));
20}
21
22extern int execv(char*,char**);
23extern int execvp(char*,char**);
24
25void wrap_execv(const char **args)
26{
27 wrapper(execv, args);
28}
29
30void wrap_execvp(const char **args)
31{
32 wrapper(execvp, args);
33}
Error messages. If you translate these, I would urge you to keep the English version as well....
#define ERR_EXECUTE
Definition errtxt.h:104
#define WHO
Definition author.c:1
int execvp(char *, char **)
void wrap_execv(const char **args)
Definition wrap_execv.c:25
int execv(char *, char **)
void wrap_execvp(const char **args)
Definition wrap_execv.c:30
stralloc fn
const char * logmsg(const char *dir, unsigned long num, unsigned long listno, unsigned long subs, int done)
Definition loginfo.c:32