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
e676440e
Unverified
Commit
e676440e
authored
7 years ago
by
Jeremy Soller
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #46 from dlrobertson/aarch64
Aarch64: Update syscall usage
parents
54655a4e
89259475
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
src/platform/src/linux/mod.rs
+3
-2
3 additions, 2 deletions
src/platform/src/linux/mod.rs
with
3 additions
and
2 deletions
src/platform/src/linux/mod.rs
+
3
−
2
View file @
e676440e
...
...
@@ -4,6 +4,7 @@ use errno;
use
types
::
*
;
const
AT_FDCWD
:
c_int
=
-
100
;
const
AT_REMOVEDIR
:
c_int
=
0x200
;
pub
fn
e
(
sys
:
usize
)
->
usize
{
if
(
sys
as
isize
)
<
0
&&
(
sys
as
isize
)
>=
-
256
{
...
...
@@ -67,7 +68,7 @@ pub fn fcntl(fildes: c_int, cmd: c_int, arg: c_int) -> c_int {
}
pub
fn
fork
()
->
pid_t
{
e
(
unsafe
{
syscall!
(
FORK
)
})
as
pid_t
e
(
unsafe
{
syscall!
(
CLONE
,
17
,
0
)
})
as
pid_t
}
pub
fn
fsync
(
fildes
:
c_int
)
->
c_int
{
...
...
@@ -135,7 +136,7 @@ pub fn read(fildes: c_int, buf: &mut [u8]) -> ssize_t {
}
pub
fn
rmdir
(
path
:
*
const
c_char
)
->
c_int
{
e
(
unsafe
{
syscall!
(
RMDIR
,
path
)
})
as
c_int
e
(
unsafe
{
syscall!
(
UNLINKAT
,
AT_FDCWD
,
path
,
AT_REMOVEDIR
)
})
as
c_int
}
pub
fn
write
(
fildes
:
c_int
,
buf
:
&
[
u8
])
->
ssize_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