Lines Matching defs:path
110 static int GetFullpathNull(int fd, const char *path, char **filePath)
116 if ((fd != AT_FDCWD) && (path == NULL)) {
127 ret = GetFullpath(fd, path, &fullPath);
338 static int ProcRealProcessDirGet(char *path)
344 int ret = vfs_normalize_path(NULL, path, &fullPath);
384 if (snprintf_s(path, PATH_MAX + 1, PATH_MAX, "/proc/%d%s", rootPid, (pidStr + strLen)) < 0) {
395 static int GetPath(const char *path, char **pathRet)
397 int ret = UserPathCopy(path, pathRet);
412 int SysOpen(const char *path, int oflags, ...)
419 if (path != NULL) {
420 ret = GetPath(path, &pathRet);
672 int SysChdir(const char *path)
677 if (path != NULL) {
678 ret = UserPathCopy(path, &pathRet);
684 ret = chdir(path ? pathRet : NULL);
842 int SysAccess(const char *path, int amode)
847 if (path != NULL) {
848 ret = UserPathCopy(path, &pathRet);
1204 int SysTruncate(const char *path, off_t length)
1210 if (path != NULL) {
1211 ret = UserPathCopy(path, &pathRet);
1217 fd = open((path ? pathRet : NULL), O_RDWR);
1237 int SysTruncate64(const char *path, off64_t length)
1243 if (path != NULL) {
1244 ret = UserPathCopy(path, &pathRet);
1250 fd = open((path ? pathRet : NULL), O_RDWR);
1284 int SysStatfs(const char *path, struct statfs *buf)
1290 if (path != NULL) {
1291 ret = UserPathCopy(path, &pathRet);
1297 ret = statfs((path ? pathRet : NULL), (buf ? (&bufRet) : NULL));
1315 int SysStatfs64(const char *path, size_t sz, struct statfs *buf)
1321 if (path != NULL) {
1322 ret = UserPathCopy(path, &pathRet);
1333 ret = statfs((path ? pathRet : NULL), (buf ? (&bufRet) : NULL));
1351 int SysStat(const char *path, struct kstat *buf)
1357 if (path != NULL) {
1358 ret = UserPathCopy(path, &pathRet);
1364 ret = stat((path ? pathRet : NULL), (buf ? (&bufRet) : NULL));
1382 int SysLstat(const char *path, struct kstat *buffer)
1388 if (path != NULL) {
1389 ret = UserPathCopy(path, &pathRet);
1395 ret = stat((path ? pathRet : NULL), (buffer ? (&bufRet) : NULL));
1444 int SysStatx(int fd, const char *restrict path, int flag, unsigned mask, struct statx *restrict stx)
1781 int SysOpenat(int dirfd, const char *path, int oflags, ...)
1797 if (path != NULL) {
1798 ret = UserPathCopy(path, &pathRet);
1819 ret = do_open(dirfd, (path ? pathRet : NULL), oflags, mode);
2273 char *SysRealpath(const char *path, char *resolved_path)
2284 if (path != NULL) {
2285 ret = UserPathCopy(path, &pathRet);
2292 resolved_pathRet = realpath((path ? pathRet : NULL), NULL);
2315 int SysUtimensat(int fd, const char *path, struct timespec times[TIMESPEC_TIMES_NUM], int flag)
2331 ret = GetFullpathNull(fd, path, &filePath);
2370 int SysFchmodat(int fd, const char *path, mode_t mode, int flag)
2380 if (path != NULL) {
2381 ret = UserPathCopy(path, &pathRet);
2437 int SysFchownat(int fd, const char *path, uid_t owner, gid_t group, int flag)
2445 ret = GetFullpath(fd, path, &fullpath);
2528 int SysFstatat64(int dirfd, const char *restrict path, struct kstat *restrict buf, int flag)
2535 if (path != NULL) {
2536 ret = UserPathCopy(path, &pathRet);
2857 int SysChroot(const char *path)
2862 if (path != NULL) {
2863 ret = UserPathCopy(path, &pathRet);
2869 ret = chroot(path ? pathRet : NULL);