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
ddbf9598
Commit
ddbf9598
authored
Dec 02, 2002
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: For ia32 emulation, do not turn on O_LARGEFILE automatically
on open(). Reported by Andi Kleen.
parent
2d8c2c09
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
arch/ia64/ia32/ia32_entry.S
arch/ia64/ia32/ia32_entry.S
+1
-1
arch/ia64/ia32/sys_ia32.c
arch/ia64/ia32/sys_ia32.c
+31
-0
No files found.
arch/ia64/ia32/ia32_entry.S
View file @
ddbf9598
...
...
@@ -196,7 +196,7 @@ ia32_syscall_table:
data8
sys32_fork
data8
sys_read
data8
sys_write
data8
sys
_open
/*
5
*/
data8
sys
32_open
/*
5
*/
data8
sys_close
data8
sys32_waitpid
data8
sys_creat
...
...
arch/ia64/ia32/sys_ia32.c
View file @
ddbf9598
...
...
@@ -3700,6 +3700,37 @@ sys32_brk (unsigned int brk)
return
ret
;
}
/*
* Exactly like fs/open.c:sys_open(), except that it doesn't set the O_LARGEFILE flag.
*/
asmlinkage
long
sys32_open
(
const
char
*
filename
,
int
flags
,
int
mode
)
{
char
*
tmp
;
int
fd
,
error
;
tmp
=
getname
(
filename
);
fd
=
PTR_ERR
(
tmp
);
if
(
!
IS_ERR
(
tmp
))
{
fd
=
get_unused_fd
();
if
(
fd
>=
0
)
{
struct
file
*
f
=
filp_open
(
tmp
,
flags
,
mode
);
error
=
PTR_ERR
(
f
);
if
(
IS_ERR
(
f
))
goto
out_error
;
fd_install
(
fd
,
f
);
}
out:
putname
(
tmp
);
}
return
fd
;
out_error:
put_unused_fd
(
fd
);
fd
=
error
;
goto
out
;
}
#ifdef NOTYET
/* UNTESTED FOR IA64 FROM HERE DOWN */
struct
ncp_mount_data32
{
...
...
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