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
384ceab5
Commit
384ceab5
authored
Mar 10, 2003
by
Stephen Rothwell
Committed by
Christoph Hellwig
Mar 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] compat_sys_fcntl{,64} parisc part
Here is the parisc part of the patch with Willy's blessing.
parent
d808f621
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
54 deletions
+13
-54
arch/parisc/kernel/sys_parisc32.c
arch/parisc/kernel/sys_parisc32.c
+0
-51
arch/parisc/kernel/syscall.S
arch/parisc/kernel/syscall.S
+2
-3
include/asm-parisc/compat.h
include/asm-parisc/compat.h
+11
-0
No files found.
arch/parisc/kernel/sys_parisc32.c
View file @
384ceab5
...
...
@@ -316,35 +316,6 @@ asmlinkage long sys32_unimplemented(int r26, int r25, int r24, int r23,
return
-
ENOSYS
;
}
extern
asmlinkage
long
sys_fcntl
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
);
asmlinkage
long
sys32_fcntl
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
switch
(
cmd
)
{
case
F_GETLK
:
case
F_SETLK
:
case
F_SETLKW
:
{
struct
flock
f
;
long
ret
;
if
(
get_compat_flock
(
&
f
,
(
struct
compat_flock
*
)
arg
))
return
-
EFAULT
;
KERNEL_SYSCALL
(
ret
,
sys_fcntl
,
fd
,
cmd
,
(
unsigned
long
)
&
f
);
if
(
ret
)
return
ret
;
if
(
f
.
l_start
>=
0x7fffffffUL
||
f
.
l_len
>=
0x7fffffffUL
||
f
.
l_start
+
f
.
l_len
>=
0x7fffffffUL
)
return
-
EOVERFLOW
;
if
(
put_compat_flock
(
&
f
,
(
struct
compat_flock
*
)
arg
))
return
-
EFAULT
;
return
0
;
}
default:
return
sys_fcntl
(
fd
,
cmd
,
(
unsigned
long
)
arg
);
}
}
#ifdef CONFIG_SYSCTL
struct
__sysctl_args32
{
...
...
@@ -1300,28 +1271,6 @@ asmlinkage long sys32_msgrcv(int msqid,
return
err
;
}
/* LFS */
extern
asmlinkage
long
sys_fcntl
(
unsigned
int
,
unsigned
int
,
unsigned
long
);
asmlinkage
long
sys32_fcntl64
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
switch
(
cmd
)
{
case
F_GETLK64
:
cmd
=
F_GETLK
;
break
;
case
F_SETLK64
:
cmd
=
F_SETLK
;
break
;
case
F_SETLKW64
:
cmd
=
F_SETLKW
;
break
;
default:
break
;
}
return
sys32_fcntl
(
fd
,
cmd
,
arg
);
}
/* EXPORT/UNEXPORT */
struct
nfsctl_export32
{
char
ex_client
[
NFSCLNT_IDMAX
+
1
];
...
...
arch/parisc/kernel/syscall.S
View file @
384ceab5
...
...
@@ -409,8 +409,7 @@ sys_call_table:
ENTRY_SAME
(
getpeername
)
/
*
This
one
's a huge ugly mess */
ENTRY_DIFF
(
ioctl
)
/
*
struct
flock
?
*/
ENTRY_DIFF
(
fcntl
)
/*
55
*/
ENTRY_COMP
(
fcntl
)
/*
55
*/
ENTRY_SAME
(
socketpair
)
ENTRY_SAME
(
setpgid
)
ENTRY_SAME
(
send
)
...
...
@@ -589,7 +588,7 @@ sys_call_table:
ENTRY_OURS
(
truncate64
)
ENTRY_OURS
(
ftruncate64
)
/*
200
*/
ENTRY_SAME
(
getdents64
)
ENTRY_
DIFF
(
fcntl64
)
ENTRY_
COMP
(
fcntl64
)
ENTRY_SAME
(
ni_syscall
)
ENTRY_SAME
(
ni_syscall
)
ENTRY_SAME
(
ni_syscall
)
/*
205
*/
...
...
include/asm-parisc/compat.h
View file @
384ceab5
...
...
@@ -72,6 +72,14 @@ struct compat_flock {
compat_pid_t
l_pid
;
};
struct
compat_flock64
{
short
l_type
;
short
l_whence
;
compat_loff_t
l_start
;
compat_loff_t
l_len
;
compat_pid_t
l_pid
;
};
struct
compat_statfs
{
s32
f_type
;
s32
f_bsize
;
...
...
@@ -92,4 +100,7 @@ typedef u32 compat_old_sigset_t; /* at least 32 bits */
typedef
u32
compat_sigset_word
;
#define COMPAT_OFF_T_MAX 0x7fffffff
#define COMPAT_LOFF_T_MAX 0x7fffffffffffffffL
#endif
/* _ASM_PARISC_COMPAT_H */
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