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
199709bd
Commit
199709bd
authored
Sep 01, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch/sparc64/kernel/ioctl32.c: Translate PPPIOCS{PASS,ACTIVE}
parent
bd039e05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
1 deletion
+38
-1
arch/sparc64/kernel/ioctl32.c
arch/sparc64/kernel/ioctl32.c
+38
-1
No files found.
arch/sparc64/kernel/ioctl32.c
View file @
199709bd
...
...
@@ -99,6 +99,7 @@
#include <linux/usbdevice_fs.h>
#include <linux/nbd.h>
#include <linux/random.h>
#include <linux/filter.h>
/* Use this to get at 32-bit user passed pointers.
See sys_sparc32.c for description about these. */
...
...
@@ -1668,6 +1669,35 @@ static int sg_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long arg)
return
err
;
}
struct
sock_fprog32
{
__u16
len
;
__u32
filter
;
};
#define PPPIOCSPASS32 _IOW('t', 71, struct sock_fprog32)
#define PPPIOCSACTIVE32 _IOW('t', 70, struct sock_fprog32)
static
int
ppp_sock_fprog_ioctl_trans
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
struct
sock_fprog32
*
u_fprog32
=
(
struct
sock_fprog32
*
)
arg
;
struct
sock_fprog
*
u_fprog64
=
alloc_user_space
(
sizeof
(
struct
sock_fprog
));
void
*
fptr64
;
u32
fptr32
;
u16
flen
;
if
(
get_user
(
flen
,
&
u_fprog32
->
len
)
||
get_user
(
fptr32
,
&
u_fprog32
->
filter
))
return
-
EFAULT
;
fptr64
=
(
void
*
)
A
(
fptr32
);
if
(
put_user
(
flen
,
&
u_fprog64
->
len
)
||
put_user
(
fptr64
,
&
u_fprog64
->
filter
))
return
-
EFAULT
;
return
sys_ioctl
(
fd
,
cmd
,
(
unsigned
long
)
u_fprog64
);
}
struct
ppp_option_data32
{
__kernel_caddr_t32
ptr
;
__u32
length
;
...
...
@@ -4237,13 +4267,16 @@ COMPATIBLE_IOCTL(PPPIOCGMRU)
COMPATIBLE_IOCTL
(
PPPIOCSMRU
)
COMPATIBLE_IOCTL
(
PPPIOCSMAXCID
)
COMPATIBLE_IOCTL
(
PPPIOCGXASYNCMAP
)
COMPATIBLE_IOCTL
(
LPGETSTATUS
)
COMPATIBLE_IOCTL
(
PPPIOCSXASYNCMAP
)
COMPATIBLE_IOCTL
(
PPPIOCXFERUNIT
)
/* PPPIOCSCOMPRESS is translated */
COMPATIBLE_IOCTL
(
PPPIOCGNPMODE
)
COMPATIBLE_IOCTL
(
PPPIOCSNPMODE
)
/* PPPIOCSPASS is translated */
/* PPPIOCSACTIVE is translated */
COMPATIBLE_IOCTL
(
PPPIOCGDEBUG
)
COMPATIBLE_IOCTL
(
PPPIOCSDEBUG
)
/* PPPIOCGIDLE is translated */
COMPATIBLE_IOCTL
(
PPPIOCNEWUNIT
)
COMPATIBLE_IOCTL
(
PPPIOCATTACH
)
COMPATIBLE_IOCTL
(
PPPIOCDETACH
)
...
...
@@ -4252,6 +4285,8 @@ COMPATIBLE_IOCTL(PPPIOCCONNECT)
COMPATIBLE_IOCTL
(
PPPIOCDISCONN
)
COMPATIBLE_IOCTL
(
PPPIOCATTCHAN
)
COMPATIBLE_IOCTL
(
PPPIOCGCHAN
)
/* LP */
COMPATIBLE_IOCTL
(
LPGETSTATUS
)
/* PPPOX */
COMPATIBLE_IOCTL
(
PPPOEIOCSFWD
)
COMPATIBLE_IOCTL
(
PPPOEIOCDFWD
)
...
...
@@ -4677,6 +4712,8 @@ HANDLE_IOCTL(FDWERRORGET32, fd_ioctl_trans)
HANDLE_IOCTL
(
SG_IO
,
sg_ioctl_trans
)
HANDLE_IOCTL
(
PPPIOCGIDLE32
,
ppp_ioctl_trans
)
HANDLE_IOCTL
(
PPPIOCSCOMPRESS32
,
ppp_ioctl_trans
)
HANDLE_IOCTL
(
PPPIOCSPASS32
,
ppp_sock_fprog_ioctl_trans
)
HANDLE_IOCTL
(
PPPIOCSACTIVE32
,
ppp_sock_fprog_ioctl_trans
)
HANDLE_IOCTL
(
MTIOCGET32
,
mt_ioctl_trans
)
HANDLE_IOCTL
(
MTIOCPOS32
,
mt_ioctl_trans
)
HANDLE_IOCTL
(
MTIOCGETCONFIG32
,
mt_ioctl_trans
)
...
...
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