• Home
  • Raw
  • Download

Lines Matching full:if

28  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
68 if (times) { in CheckNewAttrTime()
69 if (times[0].tv_nsec == UTIME_OMIT) { in CheckNewAttrTime()
71 } else if (times[0].tv_nsec == UTIME_NOW) { in CheckNewAttrTime()
73 if (ret < 0) { in CheckNewAttrTime()
83 if (times[1].tv_nsec == UTIME_OMIT) { in CheckNewAttrTime()
85 } else if (times[1].tv_nsec == UTIME_NOW) { in CheckNewAttrTime()
87 if (ret < 0) { in CheckNewAttrTime()
98 if (ret < 0) { in CheckNewAttrTime()
116 if ((fd != AT_FDCWD) && (path == NULL)) { in GetFullpathNull()
119 if (ret < 0) { in GetFullpathNull()
123 if (fullPath == NULL) { in GetFullpathNull()
128 if (ret < 0) { in GetFullpathNull()
141 if (iov[i].iov_len == 0) { in UserIovItemCheck()
145 if (!LOS_IsUserAddressRange((vaddr_t)(UINTPTR)iov[i].iov_base, iov[i].iov_len)) { in UserIovItemCheck()
156 if (bufLen < 0) { in UserIovCopy()
161 if (*iovBuf == NULL) { in UserIovCopy()
165 if (LOS_ArchCopyFromUser(*iovBuf, iov, bufLen) != 0) { in UserIovCopy()
171 if (ret == 0) { in UserIovCopy()
182 if ((nfds != 0 && fds == NULL) || (pollFdsBak == NULL)) { in PollfdToSystem()
186 if (nfds == 0) { in PollfdToSystem()
190 if (pollFds == NULL) { in PollfdToSystem()
197 if (p_fds->fd < 0) { in PollfdToSystem()
210 if ((fds == NULL) || (pollFds == NULL)) { in RestorePollfd()
223 if (ret < 0) { in UserPoll()
243 if (ret < 0) { in SysClose()
255 if (nbytes == 0) { in SysRead()
259 if (!LOS_IsUserAddressRange((vaddr_t)(UINTPTR)buf, nbytes)) { in SysRead()
267 if (ret < 0) { in SysRead()
277 if (nbytes == 0) { in SysWrite()
281 if (!LOS_IsUserAddressRange((vaddr_t)(UINTPTR)buf, nbytes)) { in SysWrite()
288 if (ret < 0) { in SysWrite()
301 if (path != NULL) { in SysOpen()
303 if (ret != 0) { in SysOpen()
309 if (procFd < 0) { in SysOpen()
314 if (oflags & O_CLOEXEC) { in SysOpen()
318 if ((unsigned int)oflags & O_DIRECTORY) { in SysOpen()
331 if (ret < 0) { in SysOpen()
337 if (pathRet != NULL) { in SysOpen()
343 if (pathRet != NULL) { in SysOpen()
346 if (procFd >= 0) { in SysOpen()
357 if (pathname != NULL) { in SysCreat()
359 if (ret != 0) { in SysCreat()
365 if (procFd < 0) { in SysCreat()
371 if (ret < 0) { in SysCreat()
380 if (pathRet != NULL) { in SysCreat()
392 if (oldpath != NULL) { in SysLink()
394 if (ret != 0) { in SysLink()
399 if (newpath != NULL) { in SysLink()
401 if (ret != 0) { in SysLink()
407 if (ret < 0) { in SysLink()
412 if (oldpathRet != NULL) { in SysLink()
415 if (newpathRet != NULL) { in SysLink()
426 if (bufsize == 0) { in SysReadlink()
430 if (pathname != NULL) { in SysReadlink()
432 if (ret != 0) { in SysReadlink()
437 if (!LOS_IsUserAddressRange((vaddr_t)(UINTPTR)buf, bufsize)) { in SysReadlink()
443 if (ret < 0) { in SysReadlink()
448 if (pathRet != NULL) { in SysReadlink()
460 if (target != NULL) { in SysSymlink()
462 if (ret != 0) { in SysSymlink()
467 if (linkpath != NULL) { in SysSymlink()
469 if (ret != 0) { in SysSymlink()
475 if (ret < 0) { in SysSymlink()
480 if (pathRet != NULL) { in SysSymlink()
484 if (targetRet != NULL) { in SysSymlink()
495 if (pathname != NULL) { in SysUnlink()
497 if (ret != 0) { in SysUnlink()
503 if (ret < 0) { in SysUnlink()
508 if (pathRet != NULL) { in SysUnlink()
528 if (sysFd < 0) { in SysFchdir()
533 if (ret < 0) { in SysFchdir()
538 if (ret < 0) { in SysFchdir()
550 if (path != NULL) { in SysChdir()
552 if (ret != 0) { in SysChdir()
558 if (ret < 0) { in SysChdir()
563 if (pathRet != NULL) { in SysChdir()
587 if (ret != 0) { in SysLseek64()
592 if (retVal != 0) { in SysLseek64()
608 if ((serverIpAndPath == NULL) || (mountPath == NULL)) { in NfsMount()
612 if (ret < 0) { in NfsMount()
628 if (!IsCapPermit(CAP_FS_MOUNT)) { in SysMount()
632 if (target != NULL) { in SysMount()
634 if (ret != 0) { in SysMount()
639 if (filesystemtype != NULL) { in SysMount()
641 if (ret < 0) { in SysMount()
643 } else if (ret > FILESYSTEM_TYPE_MAX) { in SysMount()
648 if (strcmp(fstypeRet, "ramfs") && (source != NULL)) { in SysMount()
650 if (ret != 0) { in SysMount()
655 if (strcmp(fstypeRet, "nfs") == 0) { in SysMount()
662 if (data != NULL) { in SysMount()
664 if (ret != 0) { in SysMount()
670 if (ret < 0) { in SysMount()
675 if (sourceRet != NULL) { in SysMount()
678 if (targetRet != NULL) { in SysMount()
681 if (dataRet != NULL) { in SysMount()
692 if (!IsCapPermit(CAP_FS_MOUNT)) { in SysUmount()
696 if (target != NULL) { in SysUmount()
698 if (ret != 0) { in SysUmount()
704 if (ret < 0) { in SysUmount()
709 if (pathRet != NULL) { in SysUmount()
720 if (path != NULL) { in SysAccess()
722 if (ret != 0) { in SysAccess()
728 if (ret < 0) { in SysAccess()
733 if (pathRet != NULL) { in SysAccess()
746 if (oldpath != NULL) { in SysRename()
748 if (ret != 0) { in SysRename()
753 if (newpath != NULL) { in SysRename()
755 if (ret != 0) { in SysRename()
762 if (ret < 0) { in SysRename()
767 if (pathOldRet != NULL) { in SysRename()
770 if (pathNewRet != NULL) { in SysRename()
781 if (pathname != NULL) { in SysMkdir()
783 if (ret != 0) { in SysMkdir()
789 if (ret < 0) { in SysMkdir()
794 if (pathRet != NULL) { in SysMkdir()
805 if (pathname != NULL) { in SysRmdir()
807 if (ret != 0) { in SysRmdir()
813 if (ret < 0) { in SysRmdir()
818 if (pathRet != NULL) { in SysRmdir()
827 /* Check if the param is valid, note that: socket fd is not support dup2 */ in SysDup()
828 if ((sysfd < 0) || (sysfd >= CONFIG_NFILE_DESCRIPTORS)) { in SysDup()
833 if (dupfd < 0) { in SysDup()
849 if (flags != 0) { in SysUmount2()
860 if ((size == 0) && (dir != _IOC_NONE)) { in SysIoctl()
864 if ((dir != _IOC_NONE) && (((void *)(uintptr_t)arg) == NULL)) { in SysIoctl()
868 if ((dir & _IOC_READ) || (dir & _IOC_WRITE)) { in SysIoctl()
869 if (!LOS_IsUserAddressRange((uintptr_t)arg, size)) { in SysIoctl()
878 if (ret < 0) { in SysIoctl()
890 if (ret == CONTINE_NUTTX_FCNTL) { in SysFcntl()
894 if (ret < 0) { in SysFcntl()
907 if (procFd0 < 0) { in SysPipe()
911 if (procFd1 < 0) { in SysPipe()
917 if (ret < 0) { in SysPipe()
932 if (ret != 0) { in SysPipe()
949 /* Check if the param is valid, note that: socket fd is not support dup2 */ in SysDup2()
950 if ((sysfd1 < 0) || (sysfd1 >= CONFIG_NFILE_DESCRIPTORS) || (CheckProcessFd(fd2) != OK)) { in SysDup2()
955 if (fd1 == fd2) { in SysDup2()
960 if (ret != OK) { in SysDup2()
965 if (sysfd2 >= 0) { in SysDup2()
967 if (ret < 0) { in SysDup2()
976 /* if fd1 is not equal to fd2, the FD_CLOEXEC flag associated with fd2 shall be cleared */ in SysDup2()
988 if (*fdsBuf == NULL) { in SelectParamCheckCopy()
996 if (readfds != NULL) { in SelectParamCheckCopy()
997 if (LOS_ArchCopyFromUser(readfdsRet, readfds, sizeof(fd_set)) != 0) { in SelectParamCheckCopy()
1003 if (writefds != NULL) { in SelectParamCheckCopy()
1004 if (LOS_ArchCopyFromUser(writefdsRet, writefds, sizeof(fd_set)) != 0) { in SelectParamCheckCopy()
1010 if (exceptfds != NULL) { in SelectParamCheckCopy()
1011 if (LOS_ArchCopyFromUser(exceptfdsRet, exceptfds, sizeof(fd_set)) != 0) { in SelectParamCheckCopy()
1030 if (ret != 0) { in SysSelect()
1038 if (timeout != NULL) { in SysSelect()
1039 if (LOS_ArchCopyFromUser(&timeoutRet, timeout, sizeof(struct timeval)) != 0) { in SysSelect()
1046 if (ret < 0) { in SysSelect()
1051 if (readfds != NULL) { in SysSelect()
1052 if (LOS_ArchCopyToUser(readfds, readfdsRet, sizeof(fd_set)) != 0) { in SysSelect()
1057 if (writefds != NULL) { in SysSelect()
1058 if (LOS_ArchCopyToUser(writefds, writefdsRet, sizeof(fd_set)) != 0) { in SysSelect()
1063 if (exceptfds != 0) { in SysSelect()
1064 if (LOS_ArchCopyToUser(exceptfds, exceptfdsRet, sizeof(fd_set)) != 0) { in SysSelect()
1083 if (path != NULL) { in SysTruncate()
1085 if (ret != 0) { in SysTruncate()
1091 if (fd < 0) { in SysTruncate()
1099 if (ret < 0) { in SysTruncate()
1104 if (pathRet != NULL) { in SysTruncate()
1116 if (path != NULL) { in SysTruncate64()
1118 if (ret != 0) { in SysTruncate64()
1124 if (fd < 0) { in SysTruncate64()
1132 if (ret < 0) { in SysTruncate64()
1137 if (pathRet != NULL) { in SysTruncate64()
1151 if (ret < 0) { in SysFtruncate()
1163 if (path != NULL) { in SysStatfs()
1165 if (ret != 0) { in SysStatfs()
1171 if (ret < 0) { in SysStatfs()
1177 if (ret != 0) { in SysStatfs()
1182 if (pathRet != NULL) { in SysStatfs()
1194 if (path != NULL) { in SysStatfs64()
1196 if (ret != 0) { in SysStatfs64()
1201 if (sz != sizeof(*buf)) { in SysStatfs64()
1207 if (ret < 0) { in SysStatfs64()
1213 if (ret != 0) { in SysStatfs64()
1218 if (pathRet != NULL) { in SysStatfs64()
1230 if (path != NULL) { in SysStat()
1232 if (ret != 0) { in SysStat()
1238 if (ret < 0) { in SysStat()
1244 if (ret != 0) { in SysStat()
1249 if (pathRet != NULL) { in SysStat()
1261 if (path != NULL) { in SysLstat()
1263 if (ret != 0) { in SysLstat()
1269 if (ret < 0) { in SysLstat()
1275 if (ret != 0) { in SysLstat()
1280 if (pathRet != NULL) { in SysLstat()
1296 if (ret < 0) { in SysFstat()
1300 if (filep->f_oflags & O_DIRECTORY) { in SysFstat()
1305 if (ret < 0) { in SysFstat()
1310 if (ret != 0) { in SysFstat()
1332 if (ret < 0) { in SysFsync()
1337 if (filep->f_oflags & O_DIRECTORY) { in SysFsync()
1343 if (ret < 0) { in SysFsync()
1357 if ((iov == NULL) || (iovcnt < 0) || (iovcnt > IOV_MAX)) { in SysReadv()
1361 if (iovcnt == 0) { in SysReadv()
1366 if (ret != 0) { in SysReadv()
1370 if (valid_iovcnt <= 0) { in SysReadv()
1376 if (ret < 0) { in SysReadv()
1393 if ((iovcnt < 0) || (iovcnt > IOV_MAX)) { in SysWritev()
1397 if (iovcnt == 0) { in SysWritev()
1401 if (iov == NULL) { in SysWritev()
1406 if (ret != 0) { in SysWritev()
1410 if (valid_iovcnt != iovcnt) { in SysWritev()
1416 if (ret < 0) { in SysWritev()
1430 if ((nfds >= MAX_POLL_NFDS) || (nfds == 0) || (fds == NULL)) { in SysPoll()
1435 if (kfds != NULL) { in SysPoll()
1436 if (LOS_ArchCopyFromUser(kfds, fds, sizeof(struct pollfd) * nfds) != 0) { in SysPoll()
1444 if (ret < 0) { in SysPoll()
1450 if (ret < 0) { in SysPoll()
1455 if (kfds != NULL) { in SysPoll()
1457 if (LOS_ArchCopyToUser(fds, kfds, sizeof(struct pollfd) * nfds) != 0) { in SysPoll()
1477 if (option != PR_SET_NAME) { in SysPrctl()
1484 if (!LOS_IsUserAddress(name)) { in SysPrctl()
1490 if (err != LOS_OK) { in SysPrctl()
1510 if (nbytes == 0) { in SysPread64()
1512 if (ret < 0) { in SysPread64()
1520 if (bufRet == NULL) { in SysPread64()
1525 if (ret < 0) { in SysPread64()
1531 if (retVal != 0) { in SysPread64()
1548 if (nbytes == 0) { in SysPwrite64()
1550 if (ret < 0) { in SysPwrite64()
1557 if (bufRet == NULL) { in SysPwrite64()
1561 if (buf != NULL) { in SysPwrite64()
1563 if (ret != 0) { in SysPwrite64()
1570 if (ret < 0) { in SysPwrite64()
1586 if (bufLen > PATH_MAX) { in SysGetcwd()
1591 if (bufRet == NULL) { in SysGetcwd()
1597 if (ret == NULL) { in SysGetcwd()
1603 if (retVal != 0) { in SysGetcwd()
1619 if (retVal != 0) { in SysSendFile()
1628 if (ret < 0) { in SysSendFile()
1633 if (retVal != 0) { in SysSendFile()
1648 if (ret < 0) { in SysFtruncate64()
1670 if (path != NULL) { in SysOpenat()
1672 if (ret != 0) { in SysOpenat()
1678 if (procFd < 0) { in SysOpenat()
1683 if (oflags & O_CLOEXEC) { in SysOpenat()
1687 if (dirfd != AT_FDCWD) { in SysOpenat()
1693 if (ret < 0) { in SysOpenat()
1699 if (pathRet != NULL) { in SysOpenat()
1705 if (pathRet != NULL) { in SysOpenat()
1708 if (procFd >= 0) { in SysOpenat()
1719 if (pathname != NULL) { in SysMkdirat()
1721 if (ret != 0) { in SysMkdirat()
1726 if (dirfd != AT_FDCWD) { in SysMkdirat()
1732 if (ret < 0) { in SysMkdirat()
1737 if (pathRet != NULL) { in SysMkdirat()
1749 if (oldpath != NULL) { in SysLinkat()
1751 if (ret != 0) { in SysLinkat()
1756 if (newpath != NULL) { in SysLinkat()
1758 if (ret != 0) { in SysLinkat()
1763 if (olddirfd != AT_FDCWD) { in SysLinkat()
1768 if (newdirfd != AT_FDCWD) { in SysLinkat()
1774 if (ret < 0) { in SysLinkat()
1779 if (oldpathRet != NULL) { in SysLinkat()
1782 if (newpathRet != NULL) { in SysLinkat()
1794 if (target != NULL) { in SysSymlinkat()
1796 if (ret != 0) { in SysSymlinkat()
1801 if (linkpath != NULL) { in SysSymlinkat()
1803 if (ret != 0) { in SysSymlinkat()
1808 if (dirfd != AT_FDCWD) { in SysSymlinkat()
1814 if (ret < 0) { in SysSymlinkat()
1819 if (pathRet != NULL) { in SysSymlinkat()
1823 if (targetRet != NULL) { in SysSymlinkat()
1834 if (bufsize == 0) { in SysReadlinkat()
1838 if (pathname != NULL) { in SysReadlinkat()
1840 if (ret != 0) { in SysReadlinkat()
1845 if (dirfd != AT_FDCWD) { in SysReadlinkat()
1850 if (!LOS_IsUserAddressRange((vaddr_t)(UINTPTR)buf, bufsize)) { in SysReadlinkat()
1856 if (ret < 0) { in SysReadlinkat()
1861 if (pathRet != NULL) { in SysReadlinkat()
1872 if (pathname != NULL) { in SysUnlinkat()
1874 if (ret != 0) { in SysUnlinkat()
1879 if (dirfd != AT_FDCWD) { in SysUnlinkat()
1885 if (ret < 0) { in SysUnlinkat()
1890 if (pathRet != NULL) { in SysUnlinkat()
1902 if (oldpath != NULL) { in SysRenameat()
1904 if (ret != 0) { in SysRenameat()
1909 if (newpath != NULL) { in SysRenameat()
1911 if (ret != 0) { in SysRenameat()
1916 if (oldfd != AT_FDCWD) { in SysRenameat()
1920 if (newdfd != AT_FDCWD) { in SysRenameat()
1926 if (ret < 0) { in SysRenameat()
1931 if (pathOldRet != NULL) { in SysRenameat()
1934 if (pathNewRet != NULL) { in SysRenameat()
1948 if (ret < 0) { in SysFallocate()
1962 if (ret < 0) { in SysFallocate64()
1979 if ((iov == NULL) || (iovcnt < 0) || (iovcnt > IOV_MAX)) { in SysPreadv()
1983 if (iovcnt == 0) { in SysPreadv()
1988 if (ret != 0) { in SysPreadv()
1992 if (valid_iovcnt <= 0) { in SysPreadv()
1998 if (ret < 0) { in SysPreadv()
2017 if ((iov == NULL) || (iovcnt < 0) || (iovcnt > IOV_MAX)) { in SysPwritev()
2021 if (iovcnt == 0) { in SysPwritev()
2026 if (ret != 0) { in SysPwritev()
2030 if (valid_iovcnt != iovcnt) { in SysPwritev()
2036 if (ret < 0) { in SysPwritev()
2051 if (!IsCapPermit(CAP_FS_FORMAT)) { in SysFormat()
2055 if (dev != NULL) { in SysFormat()
2057 if (ret != 0) { in SysFormat()
2063 if (ret < 0) { in SysFormat()
2068 if (devRet != NULL) { in SysFormat()
2084 if (ret < 0) { in SysFstat64()
2089 if (ret != 0) { in SysFstat64()
2102 if (ret == CONTINE_NUTTX_FCNTL) { in SysFcntl64()
2106 if (ret < 0) { in SysFcntl64()
2114 if (!LOS_IsUserAddressRange((VADDR_T)(UINTPTR)de_user, count)) { in SysGetdents64()
2124 if (ret < 0) { in SysGetdents64()
2127 if (de_knl != NULL) { in SysGetdents64()
2129 if (cpy_ret != 0) in SysGetdents64()
2144 if (resolved_path == NULL) { in SysRealpath()
2148 if (path != NULL) { in SysRealpath()
2150 if (ret != 0) { in SysRealpath()
2157 if (resolved_pathRet == NULL) { in SysRealpath()
2163 if (ret != 0) { in SysRealpath()
2170 if (pathRet != NULL) { in SysRealpath()
2173 if (resolved_pathRet != NULL) { in SysRealpath()
2191 if (ret < 0) { in SysUtimensat()
2196 if (ret < 0) { in SysUtimensat()
2201 if (ret < 0) { in SysUtimensat()
2215 if (pathname != NULL) { in SysChmod()
2217 if (ret != 0) { in SysChmod()
2223 if (ret < 0) { in SysChmod()
2228 if (pathRet != NULL) { in SysChmod()
2244 if (path != NULL) { in SysFchmodat()
2246 if (ret != 0) { in SysFchmodat()
2251 if (fd != AT_FDCWD) { in SysFchmodat()
2257 if (ret < 0) { in SysFchmodat()
2262 if (ret < 0) { in SysFchmodat()
2284 if (sysFd < 0) { in SysFchmod()
2289 if (ret < 0) { in SysFchmod()
2294 if (ret < 0) { in SysFchmod()
2310 if (ret < 0) { in SysFchownat()
2314 if (owner != (uid_t)-1) { in SysFchownat()
2318 if (group != (gid_t)-1) { in SysFchownat()
2324 if (ret < 0) { in SysFchownat()
2343 if (sysFd < 0) { in SysFchown()
2348 if (ret < 0) { in SysFchown()
2352 if (owner != (uid_t)-1) { in SysFchown()
2356 if (group != (gid_t)-1) { in SysFchown()
2361 if (ret < 0) { in SysFchown()
2373 if (pathname != NULL) { in SysChown()
2375 if (ret != 0) { in SysChown()
2381 if (ret < 0) { in SysChown()
2386 if (pathRet != NULL) { in SysChown()
2399 if (path != NULL) { in SysFstatat64()
2401 if (ret != 0) { in SysFstatat64()
2406 if (dirfd != AT_FDCWD) { in SysFstatat64()
2412 if (ret < 0) { in SysFstatat64()
2417 if (ret < 0) { in SysFstatat64()
2423 if (ret != 0) { in SysFstatat64()
2429 if (pathRet != NULL) { in SysFstatat64()
2433 if (fullpath != NULL) { in SysFstatat64()
2447 if (ret < 0) { in SysFaccessat()
2452 if (ret != 0) { in SysFaccessat()
2457 if ((fsBuf.f_flags & MS_RDONLY) && ((unsigned int)amode & W_OK)) { in SysFaccessat()
2463 if (ret != 0) { in SysFaccessat()
2468 if (VfsPermissionCheck(buf.st_uid, buf.st_gid, buf.st_mode, amode)) { in SysFaccessat()
2488 if (ret < 0) { in SysFstatfs()
2494 if (ret < 0) { in SysFstatfs()
2500 if (ret != 0) { in SysFstatfs()
2511 if (sz != sizeof(struct statfs)) { in SysFstatfs64()
2530 if (tmo_p != NULL) { in SysPpoll()
2532 if (timeout < 0) { in SysPpoll()
2539 if (sigMask != NULL) { in SysPpoll()
2541 if (retVal != 0) { in SysPpoll()
2573 if (timeout != NULL) { in SysPselect6()
2577 if (data != NULL) { in SysPselect6()
2579 if (retVal != 0) { in SysPselect6()
2588 if (ret < 0) { in SysPselect6()
2589 /* do not copy parameter back to user mode if do_select failed */ in SysPselect6()
2610 if (ret < 0) { in DoEpollCreate1()
2616 if (procFd == -1) { in DoEpollCreate1()
2644 if ((fd < 0) || (epfd < 0)) { in SysEpollCtl()
2650 if (ret < 0) { in SysEpollCtl()
2668 if (epfd < 0) { in SysEpollWait()
2674 if (ret < 0) { in SysEpollWait()
2691 if (mask != NULL) { in SysEpollPwait()
2693 if (ret != 0) { in SysEpollPwait()
2702 if (epfd < 0) { in SysEpollPwait()
2709 if (ret < 0) { in SysEpollPwait()