Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relibc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
relibc
Commits
de0339ee
Verified
Commit
de0339ee
authored
6 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Fix issue with open flag overflow
parent
a614c402
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#1917
passed
6 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/header/fcntl/redox.rs
+17
-17
17 additions, 17 deletions
src/header/fcntl/redox.rs
src/platform/redox/mod.rs
+1
-1
1 addition, 1 deletion
src/platform/redox/mod.rs
with
18 additions
and
18 deletions
src/header/fcntl/redox.rs
+
17
−
17
View file @
de0339ee
use
platform
::
types
::
*
;
pub
const
O_RDONLY
:
c_int
=
0x0001
_0000
;
pub
const
O_WRONLY
:
c_int
=
0x0002
_0000
;
pub
const
O_RDWR
:
c_int
=
0x0003
_0000
;
pub
const
O_NONBLOCK
:
c_int
=
0x0004
_0000
;
pub
const
O_APPEND
:
c_int
=
0x0008
_0000
;
pub
const
O_SHLOCK
:
c_int
=
0x0010
_0000
;
pub
const
O_EXLOCK
:
c_int
=
0x0020
_0000
;
pub
const
O_ASYNC
:
c_int
=
0x0040
_0000
;
pub
const
O_FSYNC
:
c_int
=
0x0080
_0000
;
pub
const
O_CLOEXEC
:
c_int
=
0x0100
_0000
;
pub
const
O_CREAT
:
c_int
=
0x0200
_0000
;
pub
const
O_TRUNC
:
c_int
=
0x0400
_0000
;
pub
const
O_EXCL
:
c_int
=
0x0800
_0000
;
pub
const
O_DIRECTORY
:
c_int
=
0x1000
_0000
;
pub
const
O_PATH
:
c_int
=
0x2000
_0000
;
pub
const
O_SYMLINK
:
c_int
=
0x4000
_0000
;
pub
const
O_NOFOLLOW
:
c_int
=
0x8000
_0000
;
pub
const
O_RDONLY
:
c_int
=
0x0001
;
pub
const
O_WRONLY
:
c_int
=
0x0002
;
pub
const
O_RDWR
:
c_int
=
0x0003
;
pub
const
O_NONBLOCK
:
c_int
=
0x0004
;
pub
const
O_APPEND
:
c_int
=
0x0008
;
pub
const
O_SHLOCK
:
c_int
=
0x0010
;
pub
const
O_EXLOCK
:
c_int
=
0x0020
;
pub
const
O_ASYNC
:
c_int
=
0x0040
;
pub
const
O_FSYNC
:
c_int
=
0x0080
;
pub
const
O_CLOEXEC
:
c_int
=
0x0100
;
pub
const
O_CREAT
:
c_int
=
0x0200
;
pub
const
O_TRUNC
:
c_int
=
0x0400
;
pub
const
O_EXCL
:
c_int
=
0x0800
;
pub
const
O_DIRECTORY
:
c_int
=
0x1000
;
pub
const
O_PATH
:
c_int
=
0x2000
;
pub
const
O_SYMLINK
:
c_int
=
0x4000
;
pub
const
O_NOFOLLOW
:
c_int
=
0x8000
;
pub
const
O_ACCMODE
:
c_int
=
O_RDONLY
|
O_WRONLY
|
O_RDWR
;
This diff is collapsed.
Click to expand it.
src/platform/redox/mod.rs
+
1
−
1
View file @
de0339ee
...
...
@@ -695,7 +695,7 @@ impl Pal for Sys {
fn
open
(
path
:
&
CStr
,
oflag
:
c_int
,
mode
:
mode_t
)
->
c_int
{
e
(
syscall
::
open
(
path
.to_bytes
(),
(
oflag
as
usize
)
|
(
mode
as
usize
),
(
(
oflag
as
usize
)
<<
16
)
|
(
mode
as
usize
),
))
as
c_int
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment