Lines Matching defs:ret
65 int ret = 0;
71 ret = UserPathCopy(path, &pathRet);
72 if (ret != 0) {
85 ret = fs_getfilep(fd, &file);
86 if (ret < 0) {
87 ret = -EPERM;
91 ret = stat(file->f_path, &bufRet);
92 if (!ret) {
95 ret = -ENOTDIR;
100 ret = vfs_normalize_pathat(fd, pathRet, fullpath);
105 return ret;
110 int ret;
117 ret = LOS_StrncpyFromUser(*pathBuf, userPath, PATH_MAX + 1);
118 if (ret < 0) {
121 return ret;
122 } else if (ret > PATH_MAX) {
127 (*pathBuf)[ret] = '\0';