Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
39fec8cd
Commit
39fec8cd
authored
Aug 18, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: remove ancient stat syscalls
parent
a52ab562
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
69 deletions
+6
-69
arch/ppc64/kernel/misc.S
arch/ppc64/kernel/misc.S
+6
-6
arch/ppc64/kernel/sys_ppc32.c
arch/ppc64/kernel/sys_ppc32.c
+0
-63
No files found.
arch/ppc64/kernel/misc.S
View file @
39fec8cd
...
...
@@ -522,7 +522,7 @@ _GLOBAL(sys_call_table32)
.
llong
.
sys_chmod
/*
15
*/
.
llong
.
sys_lchown
.
llong
.
sys_ni_syscall
/*
old
break
syscall
holder
*/
.
llong
.
sys
32_stat
.
llong
.
sys
_ni_syscall
/*
old
stat
syscall
holder
*/
.
llong
.
sys32_lseek
.
llong
.
sys_getpid
/*
20
*/
.
llong
.
sys32_mount
...
...
@@ -532,7 +532,7 @@ _GLOBAL(sys_call_table32)
.
llong
.
ppc64_sys32_stime
/*
25
*/
.
llong
.
sys32_ptrace
.
llong
.
sys_alarm
.
llong
.
sys
32_fstat
.
llong
.
sys
_ni_syscall
/*
old
fstat
syscall
holder
*/
.
llong
.
sys32_pause
.
llong
.
sys32_utime
/*
30
*/
.
llong
.
sys_ni_syscall
/*
old
stty
syscall
holder
*/
...
...
@@ -588,7 +588,7 @@ _GLOBAL(sys_call_table32)
.
llong
.
sys32_setgroups
.
llong
.
ppc32_select
.
llong
.
sys_symlink
.
llong
.
sys
32_lstat
.
llong
.
sys
_ni_syscall
/*
old
sys_lstat
syscall
holder
*/
.
llong
.
sys32_readlink
/*
85
*/
.
llong
.
sys_uselib
.
llong
.
sys_swapon
...
...
@@ -756,7 +756,7 @@ _GLOBAL(sys_call_table)
.
llong
.
sys_chmod
/*
15
*/
.
llong
.
sys_lchown
.
llong
.
sys_ni_syscall
/*
old
break
syscall
holder
*/
.
llong
.
sys_
stat
.
llong
.
sys_
ni_syscall
/*
old
stat
syscall
holder
*/
.
llong
.
sys_lseek
.
llong
.
sys_getpid
/*
20
*/
.
llong
.
sys_mount
...
...
@@ -766,7 +766,7 @@ _GLOBAL(sys_call_table)
.
llong
.
ppc64_sys_stime
/*
25
*/
.
llong
.
sys_ptrace
.
llong
.
sys_alarm
.
llong
.
sys_
fstat
.
llong
.
sys_
ni_syscall
/*
old
sys_fstat
syscall
holder
*/
.
llong
.
sys_pause
.
llong
.
sys_utime
/*
30
*/
.
llong
.
sys_ni_syscall
/*
old
stty
syscall
holder
*/
...
...
@@ -822,7 +822,7 @@ _GLOBAL(sys_call_table)
.
llong
.
sys_setgroups
.
llong
.
sys_select
.
llong
.
sys_symlink
.
llong
.
sys_
lstat
.
llong
.
sys_
ni_syscall
/*
old
sys_lstat
syscall
holder
*/
.
llong
.
sys_readlink
/*
85
*/
.
llong
.
sys_uselib
.
llong
.
sys_swapon
...
...
arch/ppc64/kernel/sys_ppc32.c
View file @
39fec8cd
...
...
@@ -2759,69 +2759,6 @@ asmlinkage long sys32_ipc(u32 call, u32 first_parm, u32 second_parm, u32 third_p
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
);
/* Note: it is necessary to treat out_fd and in_fd as unsigned ints,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment