Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libc
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felixmoebius
libc
Commits
246f4be5
Commit
246f4be5
authored
7 years ago
by
Jose Narvaez
Browse files
Options
Downloads
Patches
Plain Diff
Add some permission and misc (mostly 'mode_t' related) constants to Redox.
parent
2a5b50b7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/redox.rs
+31
-0
31 additions, 0 deletions
src/redox.rs
with
31 additions
and
0 deletions
src/redox.rs
+
31
−
0
View file @
246f4be5
...
...
@@ -52,6 +52,37 @@ pub const STDIN_FILENO: ::c_int = 0;
pub
const
STDOUT_FILENO
:
::
c_int
=
1
;
pub
const
STDERR_FILENO
:
::
c_int
=
2
;
pub
const
EXIT_FAILURE
:
::
c_int
=
1
;
pub
const
EXIT_SUCCESS
:
::
c_int
=
0
;
pub
const
S_ISUID
:
::
c_int
=
0x800
;
pub
const
S_ISGID
:
::
c_int
=
0x400
;
pub
const
S_ISVTX
:
::
c_int
=
0x200
;
pub
const
S_IFIFO
:
mode_t
=
4096
;
pub
const
S_IFCHR
:
mode_t
=
8192
;
pub
const
S_IFBLK
:
mode_t
=
24576
;
pub
const
S_IFDIR
:
mode_t
=
16384
;
pub
const
S_IFREG
:
mode_t
=
32768
;
pub
const
S_IFLNK
:
mode_t
=
40960
;
pub
const
S_IFSOCK
:
mode_t
=
49152
;
pub
const
S_IFMT
:
mode_t
=
61440
;
pub
const
S_IEXEC
:
mode_t
=
64
;
pub
const
S_IWRITE
:
mode_t
=
128
;
pub
const
S_IREAD
:
mode_t
=
256
;
pub
const
S_IRWXU
:
mode_t
=
448
;
pub
const
S_IXUSR
:
mode_t
=
64
;
pub
const
S_IWUSR
:
mode_t
=
128
;
pub
const
S_IRUSR
:
mode_t
=
256
;
pub
const
S_IRWXG
:
mode_t
=
56
;
pub
const
S_IXGRP
:
mode_t
=
8
;
pub
const
S_IWGRP
:
mode_t
=
16
;
pub
const
S_IRGRP
:
mode_t
=
32
;
pub
const
S_IRWXO
:
mode_t
=
7
;
pub
const
S_IXOTH
:
mode_t
=
1
;
pub
const
S_IWOTH
:
mode_t
=
2
;
pub
const
S_IROTH
:
mode_t
=
4
;
extern
{
pub
fn
memalign
(
align
:
::
size_t
,
size
:
::
size_t
)
->
*
mut
::
c_void
;
pub
fn
read
(
fd
:
::
c_int
,
buf
:
*
mut
::
c_void
,
count
:
::
size_t
)
...
...
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