Lines Matching defs:old
234 * int dup2(int old, int new);
238 int sys_dup2(int old, int new)
241 return my_syscall3(__NR_dup3, old, new, 0);
243 return my_syscall2(__NR_dup2, old, new);
245 return __nolibc_enosys(__func__, old, new);
250 int dup2(int old, int new)
252 return __sysret(sys_dup2(old, new));
257 * int dup3(int old, int new, int flags);
262 int sys_dup3(int old, int new, int flags)
264 return my_syscall3(__NR_dup3, old, new, flags);
268 int dup3(int old, int new, int flags)
270 return __sysret(sys_dup3(old, new, flags));
564 * int link(const char *old, const char *new);
568 int sys_link(const char *old, const char *new)
571 return my_syscall5(__NR_linkat, AT_FDCWD, old, AT_FDCWD, new, 0);
573 return my_syscall2(__NR_link, old, new);
575 return __nolibc_enosys(__func__, old, new);
580 int link(const char *old, const char *new)
582 return __sysret(sys_link(old, new));
727 * int pivot_root(const char *new, const char *old);
731 int sys_pivot_root(const char *new, const char *old)
733 return my_syscall2(__NR_pivot_root, new, old);
737 int pivot_root(const char *new, const char *old)
739 return __sysret(sys_pivot_root(new, old));
869 * int symlink(const char *old, const char *new);
873 int sys_symlink(const char *old, const char *new)
876 return my_syscall3(__NR_symlinkat, old, AT_FDCWD, new);
878 return my_syscall2(__NR_symlink, old, new);
880 return __nolibc_enosys(__func__, old, new);
885 int symlink(const char *old, const char *new)
887 return __sysret(sys_symlink(old, new));