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
Peter Limkilde Svendsen
relibc
Commits
7251cbec
Commit
7251cbec
authored
7 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Add definitions for unistd
parent
b720d018
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
unistd/src/lib.rs
+15
-0
15 additions, 0 deletions
unistd/src/lib.rs
with
15 additions
and
0 deletions
unistd/src/lib.rs
+
15
−
0
View file @
7251cbec
...
...
@@ -4,11 +4,26 @@ extern crate libc;
use
libc
::
*
;
pub
const
NULL
:
c_int
=
0
;
pub
const
R_OK
:
c_int
=
1
;
pub
const
W_OK
:
c_int
=
2
;
pub
const
X_OK
:
c_int
=
4
;
pub
const
F_OK
:
c_int
=
8
;
pub
const
SEEK_SET
:
c_int
=
0
;
pub
const
SEEK_CUR
:
c_int
=
1
;
pub
const
SEEK_END
:
c_int
=
2
;
pub
const
F_ULOCK
:
c_int
=
0
;
pub
const
F_LOCK
:
c_int
=
1
;
pub
const
F_TLOCK
:
c_int
=
2
;
pub
const
F_TEST
:
c_int
=
3
;
pub
const
STDIN_FILENO
:
c_int
=
0
;
pub
const
STDOUT_FILENO
:
c_int
=
1
;
pub
const
STDERR_FILENO
:
c_int
=
2
;
#[no_mangle]
pub
extern
"C"
fn
_exit
(
status
:
c_int
)
{
unimplemented!
();
...
...
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