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
Kirill Smelkov
linux
Commits
54164c1d
Commit
54164c1d
authored
Dec 20, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Convert for stat/utime compat syscall changes.
parent
3c537481
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
41 deletions
+6
-41
arch/sparc64/kernel/sys_sparc32.c
arch/sparc64/kernel/sys_sparc32.c
+2
-37
arch/sparc64/kernel/systbls.S
arch/sparc64/kernel/systbls.S
+3
-3
include/asm-sparc64/stat.h
include/asm-sparc64/stat.h
+1
-1
No files found.
arch/sparc64/kernel/sys_sparc32.c
View file @
54164c1d
...
...
@@ -1397,7 +1397,7 @@ asmlinkage int sys32_select(int n, u32 *inp, u32 *outp, u32 *exp, u32 tvp_x)
return
ret
;
}
static
int
cp_
new_stat32
(
struct
kstat
*
stat
,
struct
stat32
*
statbuf
)
static
int
cp_
compat_stat
(
struct
kstat
*
stat
,
struct
compat_stat
*
statbuf
)
{
int
err
;
...
...
@@ -1425,39 +1425,6 @@ static int cp_new_stat32(struct kstat *stat, struct stat32 *statbuf)
return
err
;
}
asmlinkage
int
sys32_newstat
(
char
*
filename
,
struct
stat32
*
statbuf
)
{
struct
kstat
stat
;
int
error
=
vfs_stat
(
filename
,
&
stat
);
if
(
!
error
)
error
=
cp_new_stat32
(
&
stat
,
statbuf
);
return
error
;
}
asmlinkage
int
sys32_newlstat
(
char
*
filename
,
struct
stat32
*
statbuf
)
{
struct
kstat
stat
;
int
error
=
vfs_lstat
(
filename
,
&
stat
);
if
(
!
error
)
error
=
cp_new_stat32
(
&
stat
,
statbuf
);
return
error
;
}
asmlinkage
int
sys32_newfstat
(
unsigned
int
fd
,
struct
stat32
*
statbuf
)
{
struct
kstat
stat
;
int
error
=
vfs_fstat
(
fd
,
&
stat
);
if
(
!
error
)
error
=
cp_new_stat32
(
&
stat
,
statbuf
);
return
error
;
}
extern
asmlinkage
int
sys_sysfs
(
int
option
,
unsigned
long
arg1
,
unsigned
long
arg2
);
asmlinkage
int
sys32_sysfs
(
int
option
,
u32
arg1
,
u32
arg2
)
...
...
@@ -3463,8 +3430,6 @@ asmlinkage int sys32_settimeofday(struct compat_timeval *tv, struct timezone *tz
return
do_sys_settimeofday
(
tv
?
&
ktv
:
NULL
,
tz
?
&
ktz
:
NULL
);
}
asmlinkage
int
sys_utimes
(
char
*
,
struct
timeval
*
);
asmlinkage
int
sys32_utimes
(
char
*
filename
,
struct
compat_timeval
*
tvs
)
{
char
*
kfilename
;
...
...
@@ -3483,7 +3448,7 @@ asmlinkage int sys32_utimes(char *filename, struct compat_timeval *tvs)
old_fs
=
get_fs
();
set_fs
(
KERNEL_DS
);
ret
=
sys_utimes
(
kfilename
,
&
ktvs
[
0
]
);
ret
=
do_utimes
(
kfilename
,
(
tvs
?
&
ktvs
[
0
]
:
NULL
)
);
set_fs
(
old_fs
);
putname
(
kfilename
);
...
...
arch/sparc64/kernel/systbls.S
View file @
54164c1d
...
...
@@ -26,12 +26,12 @@ sys_call_table32:
/*
20
*/
.
word
sys_getpid
,
sys_capget
,
sys_capset
,
sys32_setuid16
,
sys32_getuid16
/*
25
*/
.
word
sys_time
,
sys_ptrace
,
sys_alarm
,
sys32_sigaltstack
,
sys32_pause
/*
30
*/
.
word
compat_sys_utime
,
sys_lchown
,
sys_fchown
,
sys_access
,
sys_nice
.
word
sys_chown
,
sys_sync
,
sys_kill
,
sys32
_newstat
,
sys32_sendfile
/*
40
*/
.
word
sys32
_newlstat
,
sys_dup
,
sys_pipe
,
sys32_times
,
sys_getuid
.
word
sys_chown
,
sys_sync
,
sys_kill
,
compat_sys
_newstat
,
sys32_sendfile
/*
40
*/
.
word
compat_sys
_newlstat
,
sys_dup
,
sys_pipe
,
sys32_times
,
sys_getuid
.
word
sys_umount
,
sys32_setgid16
,
sys32_getgid16
,
sys_signal
,
sys32_geteuid16
/*
50
*/
.
word
sys32_getegid16
,
sys_acct
,
sys_nis_syscall
,
sys_getgid
,
sys32_ioctl
.
word
sys_reboot
,
sys32_mmap2
,
sys_symlink
,
sys_readlink
,
sys32_execve
/*
60
*/
.
word
sys_umask
,
sys_chroot
,
sys32
_newfstat
,
sys_fstat64
,
sys_getpagesize
/*
60
*/
.
word
sys_umask
,
sys_chroot
,
compat_sys
_newfstat
,
sys_fstat64
,
sys_getpagesize
.
word
sys_msync
,
sys_vfork
,
sys32_pread64
,
sys32_pwrite64
,
sys_geteuid
/*
70
*/
.
word
sys_getegid
,
sys32_mmap
,
sys_setreuid
,
sys_munmap
,
sys_mprotect
.
word
sys_madvise
,
sys_vhangup
,
sys32_truncate64
,
sys_mincore
,
sys32_getgroups16
...
...
include/asm-sparc64/stat.h
View file @
54164c1d
...
...
@@ -6,7 +6,7 @@
#include <linux/compat.h>
#include <linux/time.h>
struct
stat32
{
struct
compat_stat
{
__kernel_dev_t32
st_dev
;
__kernel_ino_t32
st_ino
;
__kernel_mode_t32
st_mode
;
...
...
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