• Home
  • Raw
  • Download

Lines Matching refs:ret

419 	long ret;  in sys_stat()  local
423 ret = my_syscall4(__NR_newfstatat, AT_FDCWD, path, &stat, 0); in sys_stat()
425 ret = my_syscall2(__NR_stat, path, &stat); in sys_stat()
442 return ret; in sys_stat()
515 void *ret = sys_brk(addr); in brk() local
517 if (!ret) { in brk()
533 int ret = sys_chdir(path); in chdir() local
535 if (ret < 0) { in chdir()
536 SET_ERRNO(-ret); in chdir()
537 ret = -1; in chdir()
539 return ret; in chdir()
545 int ret = sys_chmod(path, mode); in chmod() local
547 if (ret < 0) { in chmod()
548 SET_ERRNO(-ret); in chmod()
549 ret = -1; in chmod()
551 return ret; in chmod()
557 int ret = sys_chown(path, owner, group); in chown() local
559 if (ret < 0) { in chown()
560 SET_ERRNO(-ret); in chown()
561 ret = -1; in chown()
563 return ret; in chown()
569 int ret = sys_chroot(path); in chroot() local
571 if (ret < 0) { in chroot()
572 SET_ERRNO(-ret); in chroot()
573 ret = -1; in chroot()
575 return ret; in chroot()
581 int ret = sys_close(fd); in close() local
583 if (ret < 0) { in close()
584 SET_ERRNO(-ret); in close()
585 ret = -1; in close()
587 return ret; in close()
593 int ret = sys_dup(fd); in dup() local
595 if (ret < 0) { in dup()
596 SET_ERRNO(-ret); in dup()
597 ret = -1; in dup()
599 return ret; in dup()
605 int ret = sys_dup2(old, new); in dup2() local
607 if (ret < 0) { in dup2()
608 SET_ERRNO(-ret); in dup2()
609 ret = -1; in dup2()
611 return ret; in dup2()
618 int ret = sys_dup3(old, new, flags); in dup3() local
620 if (ret < 0) { in dup3()
621 SET_ERRNO(-ret); in dup3()
622 ret = -1; in dup3()
624 return ret; in dup3()
631 int ret = sys_execve(filename, argv, envp); in execve() local
633 if (ret < 0) { in execve()
634 SET_ERRNO(-ret); in execve()
635 ret = -1; in execve()
637 return ret; in execve()
643 pid_t ret = sys_fork(); in fork() local
645 if (ret < 0) { in fork()
646 SET_ERRNO(-ret); in fork()
647 ret = -1; in fork()
649 return ret; in fork()
655 int ret = sys_fsync(fd); in fsync() local
657 if (ret < 0) { in fsync()
658 SET_ERRNO(-ret); in fsync()
659 ret = -1; in fsync()
661 return ret; in fsync()
667 int ret = sys_getdents64(fd, dirp, count); in getdents64() local
669 if (ret < 0) { in getdents64()
670 SET_ERRNO(-ret); in getdents64()
671 ret = -1; in getdents64()
673 return ret; in getdents64()
679 pid_t ret = sys_getpgid(pid); in getpgid() local
681 if (ret < 0) { in getpgid()
682 SET_ERRNO(-ret); in getpgid()
683 ret = -1; in getpgid()
685 return ret; in getpgid()
691 pid_t ret = sys_getpgrp(); in getpgrp() local
693 if (ret < 0) { in getpgrp()
694 SET_ERRNO(-ret); in getpgrp()
695 ret = -1; in getpgrp()
697 return ret; in getpgrp()
703 pid_t ret = sys_getpid(); in getpid() local
705 if (ret < 0) { in getpid()
706 SET_ERRNO(-ret); in getpid()
707 ret = -1; in getpid()
709 return ret; in getpid()
715 int ret = sys_gettimeofday(tv, tz); in gettimeofday() local
717 if (ret < 0) { in gettimeofday()
718 SET_ERRNO(-ret); in gettimeofday()
719 ret = -1; in gettimeofday()
721 return ret; in gettimeofday()
727 int ret = sys_ioctl(fd, req, value); in ioctl() local
729 if (ret < 0) { in ioctl()
730 SET_ERRNO(-ret); in ioctl()
731 ret = -1; in ioctl()
733 return ret; in ioctl()
739 int ret = sys_kill(pid, signal); in kill() local
741 if (ret < 0) { in kill()
742 SET_ERRNO(-ret); in kill()
743 ret = -1; in kill()
745 return ret; in kill()
751 int ret = sys_link(old, new); in link() local
753 if (ret < 0) { in link()
754 SET_ERRNO(-ret); in link()
755 ret = -1; in link()
757 return ret; in link()
763 off_t ret = sys_lseek(fd, offset, whence); in lseek() local
765 if (ret < 0) { in lseek()
766 SET_ERRNO(-ret); in lseek()
767 ret = -1; in lseek()
769 return ret; in lseek()
775 int ret = sys_mkdir(path, mode); in mkdir() local
777 if (ret < 0) { in mkdir()
778 SET_ERRNO(-ret); in mkdir()
779 ret = -1; in mkdir()
781 return ret; in mkdir()
787 int ret = sys_mknod(path, mode, dev); in mknod() local
789 if (ret < 0) { in mknod()
790 SET_ERRNO(-ret); in mknod()
791 ret = -1; in mknod()
793 return ret; in mknod()
801 int ret = sys_mount(src, tgt, fst, flags, data); in mount() local
803 if (ret < 0) { in mount()
804 SET_ERRNO(-ret); in mount()
805 ret = -1; in mount()
807 return ret; in mount()
813 int ret = sys_open(path, flags, mode); in open() local
815 if (ret < 0) { in open()
816 SET_ERRNO(-ret); in open()
817 ret = -1; in open()
819 return ret; in open()
825 int ret = sys_pivot_root(new, old); in pivot_root() local
827 if (ret < 0) { in pivot_root()
828 SET_ERRNO(-ret); in pivot_root()
829 ret = -1; in pivot_root()
831 return ret; in pivot_root()
837 int ret = sys_poll(fds, nfds, timeout); in poll() local
839 if (ret < 0) { in poll()
840 SET_ERRNO(-ret); in poll()
841 ret = -1; in poll()
843 return ret; in poll()
849 ssize_t ret = sys_read(fd, buf, count); in read() local
851 if (ret < 0) { in read()
852 SET_ERRNO(-ret); in read()
853 ret = -1; in read()
855 return ret; in read()
861 int ret = sys_reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd, 0); in reboot() local
863 if (ret < 0) { in reboot()
864 SET_ERRNO(-ret); in reboot()
865 ret = -1; in reboot()
867 return ret; in reboot()
873 void *ret; in sbrk() local
876 if ((ret = sys_brk(0)) && (sys_brk(ret + inc) == ret + inc)) in sbrk()
877 return ret + inc; in sbrk()
886 int ret = sys_sched_yield(); in sched_yield() local
888 if (ret < 0) { in sched_yield()
889 SET_ERRNO(-ret); in sched_yield()
890 ret = -1; in sched_yield()
892 return ret; in sched_yield()
898 int ret = sys_select(nfds, rfds, wfds, efds, timeout); in select() local
900 if (ret < 0) { in select()
901 SET_ERRNO(-ret); in select()
902 ret = -1; in select()
904 return ret; in select()
910 int ret = sys_setpgid(pid, pgid); in setpgid() local
912 if (ret < 0) { in setpgid()
913 SET_ERRNO(-ret); in setpgid()
914 ret = -1; in setpgid()
916 return ret; in setpgid()
922 pid_t ret = sys_setsid(); in setsid() local
924 if (ret < 0) { in setsid()
925 SET_ERRNO(-ret); in setsid()
926 ret = -1; in setsid()
928 return ret; in setsid()
958 int ret = sys_stat(path, buf); in stat() local
960 if (ret < 0) { in stat()
961 SET_ERRNO(-ret); in stat()
962 ret = -1; in stat()
964 return ret; in stat()
970 int ret = sys_symlink(old, new); in symlink() local
972 if (ret < 0) { in symlink()
973 SET_ERRNO(-ret); in symlink()
974 ret = -1; in symlink()
976 return ret; in symlink()
994 int ret = sys_umount2(path, flags); in umount2() local
996 if (ret < 0) { in umount2()
997 SET_ERRNO(-ret); in umount2()
998 ret = -1; in umount2()
1000 return ret; in umount2()
1006 int ret = sys_unlink(path); in unlink() local
1008 if (ret < 0) { in unlink()
1009 SET_ERRNO(-ret); in unlink()
1010 ret = -1; in unlink()
1012 return ret; in unlink()
1018 pid_t ret = sys_wait4(pid, status, options, rusage); in wait4() local
1020 if (ret < 0) { in wait4()
1021 SET_ERRNO(-ret); in wait4()
1022 ret = -1; in wait4()
1024 return ret; in wait4()
1030 pid_t ret = sys_waitpid(pid, status, options); in waitpid() local
1032 if (ret < 0) { in waitpid()
1033 SET_ERRNO(-ret); in waitpid()
1034 ret = -1; in waitpid()
1036 return ret; in waitpid()
1042 pid_t ret = sys_wait(status); in wait() local
1044 if (ret < 0) { in wait()
1045 SET_ERRNO(-ret); in wait()
1046 ret = -1; in wait()
1048 return ret; in wait()
1054 ssize_t ret = sys_write(fd, buf, count); in write() local
1056 if (ret < 0) { in write()
1057 SET_ERRNO(-ret); in write()
1058 ret = -1; in write()
1060 return ret; in write()
1073 void *ret = dst; in memmove() local
1079 return ret; in memmove()
1107 char *ret = dst; in strcpy() local
1110 return ret; in strcpy()
1127 const char *ret = NULL; in strrchr() local
1131 ret = s; in strrchr()
1134 return (char *)ret; in strrchr()
1161 unsigned long ret = 0; in atol() local
1174 ret *= 10; in atol()
1175 ret += d; in atol()
1178 return neg ? -ret : ret; in atol()