global cleanup to use the new syscall interface
This commit is contained in:
parent
be82e122bf
commit
aa398f56fa
160 changed files with 180 additions and 238 deletions
|
|
@ -3,5 +3,5 @@
|
|||
|
||||
int chmod(const char *path, mode_t mode)
|
||||
{
|
||||
return syscall2(__NR_chmod, (long)path, mode);
|
||||
return syscall(SYS_chmod, path, mode);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@
|
|||
|
||||
int fchmod(int fd, mode_t mode)
|
||||
{
|
||||
return syscall2(__NR_fchmod, fd, mode);
|
||||
return syscall(SYS_fchmod, fd, mode);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@
|
|||
|
||||
int fchmodat(int fd, const char *path, mode_t mode, int flag)
|
||||
{
|
||||
return syscall4(__NR_fchmodat, fd, (long)path, mode, flag);
|
||||
return syscall(SYS_fchmodat, fd, path, mode, flag);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
int fstat(int fd, struct stat *buf)
|
||||
{
|
||||
return syscall2(__NR_fstat, fd, (long)buf);
|
||||
return syscall(SYS_fstat, fd, buf);
|
||||
}
|
||||
|
||||
LFS64(fstat);
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
int fstatat(int fd, const char *path, struct stat *buf, int flag)
|
||||
{
|
||||
return syscall4(__NR_fstatat, fd, (long)path, (long)buf, flag);
|
||||
return syscall(SYS_fstatat, fd, path, buf, flag);
|
||||
}
|
||||
|
||||
LFS64(fstatat);
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
int fstatvfs(int fd, struct statvfs *buf)
|
||||
{
|
||||
return syscall2(__NR_fstatfs, fd, (long)buf);
|
||||
return syscall(SYS_fstatfs, fd, buf);
|
||||
}
|
||||
|
||||
weak_alias(fstatvfs, fstatfs);
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
int lstat(const char *path, struct stat *buf)
|
||||
{
|
||||
return syscall2(__NR_lstat, (long)path, (long)buf);
|
||||
return syscall(SYS_lstat, path, buf);
|
||||
}
|
||||
|
||||
LFS64(lstat);
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@
|
|||
|
||||
int mkdir(const char *path, mode_t mode)
|
||||
{
|
||||
return syscall2(__NR_mkdir, (long)path, mode);
|
||||
return syscall(SYS_mkdir, path, mode);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@
|
|||
|
||||
int mkdirat(int fd, const char *path, mode_t mode)
|
||||
{
|
||||
return syscall3(__NR_mkdirat, fd, (long)path, mode);
|
||||
return syscall(SYS_mkdirat, fd, path, mode);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,5 +6,5 @@ int mknod(const char *path, mode_t mode, dev_t dev)
|
|||
/* since dev_t is system-specific anyway we defer to the idiotic
|
||||
* legacy-compatible bitfield mapping of the type.. at least we've
|
||||
* made it large enough to leave space for future expansion.. */
|
||||
return syscall3(__NR_mknod, (long)path, mode, dev & 0xffff);
|
||||
return syscall(SYS_mknod, path, mode, dev & 0xffff);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@
|
|||
|
||||
int mknodat(int fd, const char *path, mode_t mode, dev_t dev)
|
||||
{
|
||||
return syscall4(__NR_mknodat, fd, (long)path, mode, dev & 0xffff);
|
||||
return syscall(SYS_mknodat, fd, path, mode, dev & 0xffff);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
int stat(const char *path, struct stat *buf)
|
||||
{
|
||||
return syscall2(__NR_stat, (long)path, (long)buf);
|
||||
return syscall(SYS_stat, path, buf);
|
||||
}
|
||||
|
||||
LFS64(stat);
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
int statvfs(const char *path, struct statvfs *buf)
|
||||
{
|
||||
return syscall2(__NR_statfs, (long)path, (long)buf);
|
||||
return syscall(SYS_statfs, path, buf);
|
||||
}
|
||||
|
||||
weak_alias(statvfs, statfs);
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@
|
|||
|
||||
mode_t umask(mode_t mode)
|
||||
{
|
||||
return syscall1(__NR_umask, mode);
|
||||
return syscall(SYS_umask, mode);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@
|
|||
|
||||
int utimensat(int fd, const char *path, const struct timespec times[2], int flags)
|
||||
{
|
||||
return syscall4(__NR_utimensat, fd, (long)path, (long)times, flags);
|
||||
return syscall(SYS_utimensat, fd, path, times, flags);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue