Lines Matching defs:path

125 	virtual fssh_status_t Open(const char *path, int openMode, Node *&node) = 0;
127 virtual fssh_status_t CreateFile(const char *path,
129 virtual fssh_status_t CreateDirectory(const char *path,
131 virtual fssh_status_t CreateSymLink(const char *path, const char *linkTo,
134 virtual fssh_status_t Unlink(const char *path) = 0;
158 virtual fssh_status_t Init(const char *path, int fd,
243 virtual fssh_status_t Init(const char *path, int fd,
246 fssh_status_t error = HostNode::Init(path, fd, st);
250 fDir = opendir(path);
325 virtual fssh_status_t Init(const char *path, int fd,
328 fssh_status_t error = HostNode::Init(path, fd, st);
332 fPath = strdup(path);
355 virtual fssh_status_t Open(const char *path, int openMode, Node *&_node)
358 int fd = fssh_open(path, openMode);
387 fssh_status_t error = node->Init(path, fd, st);
398 virtual fssh_status_t CreateFile(const char *path,
402 int fd = fssh_creat(path, st.fssh_st_mode & FSSH_S_IUMSK);
415 error = file->Init(path, fd, st);
425 virtual fssh_status_t CreateDirectory(const char *path,
429 if (fssh_mkdir(path, st.fssh_st_mode & FSSH_S_IUMSK) < 0)
433 int fd = fssh_open(path, FSSH_O_RDONLY | FSSH_O_NOTRAVERSE);
446 error = dir->Init(path, fd, st);
456 virtual fssh_status_t CreateSymLink(const char *path, const char *linkTo,
460 if (symlink(linkTo, path) < 0)
464 int fd = fssh_open(path, FSSH_O_RDONLY | FSSH_O_NOTRAVERSE);
477 error = link->Init(path, fd, st);
488 virtual fssh_status_t Unlink(const char *path)
490 if (fssh_unlink(path) < 0)
524 virtual fssh_status_t Init(const char *path, int fd,
645 virtual fssh_status_t Init(const char *path, int fd,
648 fssh_status_t error = GuestNode::Init(path, fd, st);
719 virtual fssh_status_t Open(const char *path, int openMode, Node *&_node)
722 int fd = _kern_open(-1, path, openMode, 0);
752 error = node->Init(path, fd, st);
763 virtual fssh_status_t CreateFile(const char *path,
767 int fd = _kern_open(-1, path, FSSH_O_RDWR | FSSH_O_EXCL | FSSH_O_CREAT,
781 error = file->Init(path, fd, st);
791 virtual fssh_status_t CreateDirectory(const char *path,
795 fssh_status_t error = _kern_create_dir(-1, path,
801 int fd = _kern_open(-1, path, FSSH_O_RDONLY | FSSH_O_NOTRAVERSE, 0);
814 error = dir->Init(path, fd, st);
824 virtual fssh_status_t CreateSymLink(const char *path, const char *linkTo,
828 fssh_status_t error = _kern_create_symlink(-1, path, linkTo,
834 int fd = _kern_open(-1, path, FSSH_O_RDONLY | FSSH_O_NOTRAVERSE, 0);
847 error = link->Init(path, fd, st);
857 virtual fssh_status_t Unlink(const char *path)
859 return _kern_unlink(-1, path);
955 // compose a new source path name
958 fprintf(stderr, "Error: Failed to allocate source path!\n");
963 // compose a new target path name
966 fprintf(stderr, "Error: Failed to allocate target path!\n");
1086 fprintf(stderr, "Error: Failed to open source path `%s': %s\n", source,
1404 fprintf(stderr, "Error: Failed to get last path component of "
1430 "although it's last path component is `%s'\n", source,
1441 // compose a new target path name
1444 fprintf(stderr, "Error: Failed to allocate target path!\n");