#endif /* not POSIX_VERSION */
#include <errno.h>
-#ifndef STDC_HEADERS
+#ifndef errno
extern int errno;
#endif
#define R_OK 4
#endif
-#include "safe-stat.h"
-
/* The user's real user id. */
static uid_t uid;
int
eaccess_stat (statp, mode, path)
- struct stat *statp;
+ const struct stat *statp;
int mode;
- char *path;
+ const char *path;
{
int granted;
int
euidaccess (path, mode)
- char *path;
+ const char *path;
int mode;
{
struct stat stats;
return access (path, mode);
}
- if (SAFE_STAT (path, &stats))
+ if (stat (path, &stats))
return -1;
return eaccess_stat (&stats, mode, path);