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
8603874a
Commit
8603874a
authored
Dec 20, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]; Convert over to compat_clock_t and compat_sys_times.
parent
11d38e01
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
34 deletions
+5
-34
arch/sparc64/kernel/sys_sparc32.c
arch/sparc64/kernel/sys_sparc32.c
+0
-30
arch/sparc64/kernel/systbls.S
arch/sparc64/kernel/systbls.S
+1
-1
include/asm-sparc64/posix_types.h
include/asm-sparc64/posix_types.h
+0
-1
include/asm-sparc64/siginfo.h
include/asm-sparc64/siginfo.h
+4
-2
No files found.
arch/sparc64/kernel/sys_sparc32.c
View file @
8603874a
...
...
@@ -1953,36 +1953,6 @@ sys32_rt_sigqueueinfo(int pid, int sig, siginfo_t32 *uinfo)
return
ret
;
}
struct
tms32
{
__kernel_clock_t32
tms_utime
;
__kernel_clock_t32
tms_stime
;
__kernel_clock_t32
tms_cutime
;
__kernel_clock_t32
tms_cstime
;
};
extern
asmlinkage
long
sys_times
(
struct
tms
*
tbuf
);
asmlinkage
long
sys32_times
(
struct
tms32
*
tbuf
)
{
struct
tms
t
;
long
ret
;
mm_segment_t
old_fs
=
get_fs
();
int
err
;
set_fs
(
KERNEL_DS
);
ret
=
sys_times
(
tbuf
?
&
t
:
NULL
);
set_fs
(
old_fs
);
if
(
tbuf
)
{
err
=
put_user
(
t
.
tms_utime
,
&
tbuf
->
tms_utime
);
err
|=
__put_user
(
t
.
tms_stime
,
&
tbuf
->
tms_stime
);
err
|=
__put_user
(
t
.
tms_cutime
,
&
tbuf
->
tms_cutime
);
err
|=
__put_user
(
t
.
tms_cstime
,
&
tbuf
->
tms_cstime
);
if
(
err
)
ret
=
-
EFAULT
;
}
return
ret
;
}
#define RLIM_INFINITY32 0x7fffffff
#define RESOURCE32(x) ((x > RLIM_INFINITY32) ? RLIM_INFINITY32 : x)
...
...
arch/sparc64/kernel/systbls.S
View file @
8603874a
...
...
@@ -27,7 +27,7 @@ sys_call_table32:
/*
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
,
compat_sys_newstat
,
sys32_sendfile
/*
40
*/
.
word
compat_sys_newlstat
,
sys_dup
,
sys_pipe
,
sys32
_times
,
sys_getuid
/*
40
*/
.
word
compat_sys_newlstat
,
sys_dup
,
sys_pipe
,
compat_sys
_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
...
...
include/asm-sparc64/posix_types.h
View file @
8603874a
...
...
@@ -49,7 +49,6 @@ typedef struct {
/* Now 32bit compatibility types */
typedef
int
__kernel_ptrdiff_t32
;
typedef
int
__kernel_clock_t32
;
typedef
int
__kernel_pid_t32
;
typedef
unsigned
short
__kernel_ipc_pid_t32
;
typedef
unsigned
short
__kernel_uid_t32
;
...
...
include/asm-sparc64/siginfo.h
View file @
8603874a
...
...
@@ -13,6 +13,8 @@
#ifdef __KERNEL__
#include <asm/compat.h>
typedef
union
sigval32
{
int
sival_int
;
u32
sival_ptr
;
...
...
@@ -50,8 +52,8 @@ typedef struct siginfo32 {
__kernel_pid_t32
_pid
;
/* which child */
unsigned
int
_uid
;
/* sender's uid */
int
_status
;
/* exit code */
__kernel_clock_t32
_utime
;
__kernel_clock_t32
_stime
;
compat_clock_t
_utime
;
compat_clock_t
_stime
;
}
_sigchld
;
/* SIGILL, SIGFPE, SIGSEGV, SIGBUS, SIGEMT */
...
...
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