Commit 39fec8cd authored by Anton Blanchard's avatar Anton Blanchard

ppc64: remove ancient stat syscalls

parent a52ab562
...@@ -522,7 +522,7 @@ _GLOBAL(sys_call_table32) ...@@ -522,7 +522,7 @@ _GLOBAL(sys_call_table32)
.llong .sys_chmod /* 15 */ .llong .sys_chmod /* 15 */
.llong .sys_lchown .llong .sys_lchown
.llong .sys_ni_syscall /* old break syscall holder */ .llong .sys_ni_syscall /* old break syscall holder */
.llong .sys32_stat .llong .sys_ni_syscall /* old stat syscall holder */
.llong .sys32_lseek .llong .sys32_lseek
.llong .sys_getpid /* 20 */ .llong .sys_getpid /* 20 */
.llong .sys32_mount .llong .sys32_mount
...@@ -532,7 +532,7 @@ _GLOBAL(sys_call_table32) ...@@ -532,7 +532,7 @@ _GLOBAL(sys_call_table32)
.llong .ppc64_sys32_stime /* 25 */ .llong .ppc64_sys32_stime /* 25 */
.llong .sys32_ptrace .llong .sys32_ptrace
.llong .sys_alarm .llong .sys_alarm
.llong .sys32_fstat .llong .sys_ni_syscall /* old fstat syscall holder */
.llong .sys32_pause .llong .sys32_pause
.llong .sys32_utime /* 30 */ .llong .sys32_utime /* 30 */
.llong .sys_ni_syscall /* old stty syscall holder */ .llong .sys_ni_syscall /* old stty syscall holder */
...@@ -588,7 +588,7 @@ _GLOBAL(sys_call_table32) ...@@ -588,7 +588,7 @@ _GLOBAL(sys_call_table32)
.llong .sys32_setgroups .llong .sys32_setgroups
.llong .ppc32_select .llong .ppc32_select
.llong .sys_symlink .llong .sys_symlink
.llong .sys32_lstat .llong .sys_ni_syscall /* old sys_lstat syscall holder */
.llong .sys32_readlink /* 85 */ .llong .sys32_readlink /* 85 */
.llong .sys_uselib .llong .sys_uselib
.llong .sys_swapon .llong .sys_swapon
...@@ -756,7 +756,7 @@ _GLOBAL(sys_call_table) ...@@ -756,7 +756,7 @@ _GLOBAL(sys_call_table)
.llong .sys_chmod /* 15 */ .llong .sys_chmod /* 15 */
.llong .sys_lchown .llong .sys_lchown
.llong .sys_ni_syscall /* old break syscall holder */ .llong .sys_ni_syscall /* old break syscall holder */
.llong .sys_stat .llong .sys_ni_syscall /* old stat syscall holder */
.llong .sys_lseek .llong .sys_lseek
.llong .sys_getpid /* 20 */ .llong .sys_getpid /* 20 */
.llong .sys_mount .llong .sys_mount
...@@ -766,7 +766,7 @@ _GLOBAL(sys_call_table) ...@@ -766,7 +766,7 @@ _GLOBAL(sys_call_table)
.llong .ppc64_sys_stime /* 25 */ .llong .ppc64_sys_stime /* 25 */
.llong .sys_ptrace .llong .sys_ptrace
.llong .sys_alarm .llong .sys_alarm
.llong .sys_fstat .llong .sys_ni_syscall /* old sys_fstat syscall holder */
.llong .sys_pause .llong .sys_pause
.llong .sys_utime /* 30 */ .llong .sys_utime /* 30 */
.llong .sys_ni_syscall /* old stty syscall holder */ .llong .sys_ni_syscall /* old stty syscall holder */
...@@ -822,7 +822,7 @@ _GLOBAL(sys_call_table) ...@@ -822,7 +822,7 @@ _GLOBAL(sys_call_table)
.llong .sys_setgroups .llong .sys_setgroups
.llong .sys_select .llong .sys_select
.llong .sys_symlink .llong .sys_symlink
.llong .sys_lstat .llong .sys_ni_syscall /* old sys_lstat syscall holder */
.llong .sys_readlink /* 85 */ .llong .sys_readlink /* 85 */
.llong .sys_uselib .llong .sys_uselib
.llong .sys_swapon .llong .sys_swapon
......
...@@ -2759,69 +2759,6 @@ asmlinkage long sys32_ipc(u32 call, u32 first_parm, u32 second_parm, u32 third_p ...@@ -2759,69 +2759,6 @@ asmlinkage long sys32_ipc(u32 call, u32 first_parm, u32 second_parm, u32 third_p
return err; return err;
} }
/* stat syscall methods. */
extern asmlinkage int sys_stat(char* filename, struct __old_kernel_stat* statbuf);
static int cp_old_stat32(struct kstat *stat, struct __old_kernel_stat32* statbuf)
{
static int warncount = 5;
struct __old_kernel_stat32 tmp;
if (warncount) {
warncount--;
printk("VFS: Warning: %s using old stat() call. Recompile your binary.\n",
current->comm);
}
tmp.st_dev = stat->dev;
tmp.st_ino = stat->ino;
tmp.st_mode = stat->mode;
tmp.st_nlink = stat->nlink;
SET_OLDSTAT_UID(tmp, stat->uid);
SET_OLDSTAT_GID(tmp, stat->gid);
tmp.st_rdev = stat->rdev;
if (stat->size > MAX_NON_LFS)
return -EOVERFLOW;
tmp.st_size = stat->size;
tmp.st_atime = stat->atime;
tmp.st_mtime = stat->mtime;
tmp.st_ctime = stat->ctime;
return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0;
}
asmlinkage long sys32_stat(char* filename, struct __old_kernel_stat32* statbuf)
{
struct kstat stat;
int error = vfs_stat(filename, &stat);
if (!error)
error = cp_old_stat32(&stat, statbuf);
return error;
}
asmlinkage long sys32_fstat(unsigned int fd, struct __old_kernel_stat32* statbuf)
{
struct kstat stat;
int error = vfs_fstat(fd, &stat);
if (!error)
error = cp_old_stat32(&stat, statbuf);
return error;
}
asmlinkage long sys32_lstat(char* filename, struct __old_kernel_stat32* statbuf)
{
struct kstat stat;
int error = vfs_lstat(filename, &stat);
if (!error)
error = cp_old_stat32(&stat, statbuf);
return error;
}
extern asmlinkage ssize_t sys_sendfile(int out_fd, int in_fd, off_t* offset, size_t count); extern asmlinkage ssize_t sys_sendfile(int out_fd, int in_fd, off_t* offset, size_t count);
/* Note: it is necessary to treat out_fd and in_fd as unsigned ints, /* Note: it is necessary to treat out_fd and in_fd as unsigned ints,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment