Lines Matching refs:path

29 #define SAFE_ACCESS(path, mode) \
30 safe_access(__FILE__, __LINE__, (path), (mode))
32 #define SAFE_BASENAME(path) \
33 safe_basename(__FILE__, __LINE__, NULL, (path))
35 #define SAFE_CHDIR(path) \
36 safe_chdir(__FILE__, __LINE__, NULL, (path))
46 #define SAFE_CHROOT(path) \
47 safe_chroot(__FILE__, __LINE__, (path))
48 int safe_chroot(const char *file, const int lineno, const char *path);
50 #define SAFE_DIRNAME(path) \
51 safe_dirname(__FILE__, __LINE__, NULL, (path))
174 #define SAFE_READLINK(path, buf, bufsize) \
175 safe_readlink(__FILE__, __LINE__, NULL, (path), (buf), (bufsize))
195 #define SAFE_CHMOD(path, mode) \
196 safe_chmod(__FILE__, __LINE__, NULL, (path), (mode))
201 #define SAFE_CHOWN(path, owner, group) \
202 safe_chown(__FILE__, __LINE__, NULL, (path), (owner), (group))
322 const char *path, off_t length)
326 rval = truncate(path, length);
330 "truncate(%s,%ld) failed", path, (long)length);
333 "Invalid truncate(%s,%ld) return value %d", path,
339 #define SAFE_TRUNCATE(path, length) \
340 safe_truncate(__FILE__, __LINE__, (path), (length))
343 const char *path, struct stat *buf)
347 rval = stat(path, buf);
351 "stat(%s,%p) failed", path, buf);
354 "Invalid stat(%s,%p) return value %d", path, buf,
360 #define SAFE_STAT(path, buf) \
361 safe_stat(__FILE__, __LINE__, (path), (buf))
384 const char *path, struct stat *buf)
388 rval = lstat(path, buf);
392 "lstat(%s,%p) failed", path, buf);
395 "Invalid lstat(%s,%p) return value %d", path, buf,
401 #define SAFE_LSTAT(path, buf) \
402 safe_lstat(__FILE__, __LINE__, (path), (buf))
405 const char *path, struct statfs *buf)
409 rval = statfs(path, buf);
413 "statfs(%s,%p) failed", path, buf);
416 "Invalid statfs(%s,%p) return value %d", path, buf,
422 #define SAFE_STATFS(path, buf) \
423 safe_statfs(__FILE__, __LINE__, (path), (buf))
567 ssize_t safe_getxattr(const char *file, const int lineno, const char *path,
569 #define SAFE_GETXATTR(path, name, value, size) \
570 safe_getxattr(__FILE__, __LINE__, (path), (name), (value), (size))
572 int safe_setxattr(const char *file, const int lineno, const char *path,
574 #define SAFE_SETXATTR(path, name, value, size, flags) \
575 safe_setxattr(__FILE__, __LINE__, (path), (name), (value), (size), (flags))
577 int safe_lsetxattr(const char *file, const int lineno, const char *path,
579 #define SAFE_LSETXATTR(path, name, value, size, flags) \
580 safe_lsetxattr(__FILE__, __LINE__, (path), (name), (value), (size), (flags))
587 int safe_removexattr(const char *file, const int lineno, const char *path,
589 #define SAFE_REMOVEXATTR(path, name) \
590 safe_removexattr(__FILE__, __LINE__, (path), (name))
592 int safe_lremovexattr(const char *file, const int lineno, const char *path,
594 #define SAFE_LREMOVEXATTR(path, name) \
595 safe_lremovexattr(__FILE__, __LINE__, (path), (name))