ezmlmx 0.68
ezmlmx
Loading...
Searching...
No Matches
wrap_stat.c
Go to the documentation of this file.
1#include <sys/types.h>
2#include <sys/stat.h>
3#include "error.h"
4#include "errtxt.h"
5#include "wrap.h"
6#include "idx.h"
7#include "logmsg.h"
8
9#define WHO "wrap_stat"
10
16
17int wrap_stat(const char *fn,struct stat *st)
18{
19 int r;
20 if ((r = stat(fn,st)) == -1 && errno != ENOENT)
21 logmsg(WHO,111,FATAL,B(ERR_STAT,fn));
22 return r;
23}
24
25
Error messages. If you translate these, I would urge you to keep the English version as well....
#define ERR_STAT
Definition errtxt.h:24
#define WHO
Definition author.c:1
stralloc fn
int wrap_stat(const char *fn, struct stat *st)
Definition wrap_stat.c:17
const char * logmsg(const char *dir, unsigned long num, unsigned long listno, unsigned long subs, int done)
Definition loginfo.c:32