Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syscall
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
8
Issues
8
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
redox-os
syscall
Commits
e3fd644b
Verified
Commit
e3fd644b
authored
Jul 04, 2019
by
Jeremy Soller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile on non-redox platforms but return ENOSYS for all system calls
parent
43c562a9
Pipeline
#5079
passed with stage
in 16 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
6 deletions
+40
-6
Cargo.toml
Cargo.toml
+1
-1
src/arch/nonredox.rs
src/arch/nonredox.rs
+31
-0
src/lib.rs
src/lib.rs
+8
-5
No files found.
Cargo.toml
View file @
e3fd644b
[package]
name
=
"redox_syscall"
version
=
"0.1.5
5
"
version
=
"0.1.5
6
"
description
=
"A Rust library to access raw Redox system calls"
license
=
"MIT"
authors
=
[
"Jeremy Soller <jackpot51@gmail.com>"
]
...
...
src/arch/nonredox.rs
0 → 100644
View file @
e3fd644b
use
super
::
error
::{
Error
,
Result
,
ENOSYS
};
pub
unsafe
fn
syscall0
(
_
a
:
usize
)
->
Result
<
usize
>
{
Err
(
Error
::
new
(
ENOSYS
))
}
pub
unsafe
fn
syscall1
(
_
a
:
usize
,
_
b
:
usize
)
->
Result
<
usize
>
{
Err
(
Error
::
new
(
ENOSYS
))
}
// Clobbers all registers - special for clone
pub
unsafe
fn
syscall1_clobber
(
_
a
:
usize
,
_
b
:
usize
)
->
Result
<
usize
>
{
Err
(
Error
::
new
(
ENOSYS
))
}
pub
unsafe
fn
syscall2
(
_
a
:
usize
,
_
b
:
usize
,
_
c
:
usize
)
->
Result
<
usize
>
{
Err
(
Error
::
new
(
ENOSYS
))
}
pub
unsafe
fn
syscall3
(
_
a
:
usize
,
_
b
:
usize
,
_
c
:
usize
,
_
d
:
usize
)
->
Result
<
usize
>
{
Err
(
Error
::
new
(
ENOSYS
))
}
pub
unsafe
fn
syscall4
(
_
a
:
usize
,
_
b
:
usize
,
_
c
:
usize
,
_
d
:
usize
,
_
e
:
usize
)
->
Result
<
usize
>
{
Err
(
Error
::
new
(
ENOSYS
))
}
pub
unsafe
fn
syscall5
(
_
a
:
usize
,
_
b
:
usize
,
_
c
:
usize
,
_
d
:
usize
,
_
e
:
usize
,
_
f
:
usize
)
->
Result
<
usize
>
{
Err
(
Error
::
new
(
ENOSYS
))
}
src/lib.rs
View file @
e3fd644b
#![cfg(target_os
=
"redox"
)]
#![feature(asm)]
#![feature(const_fn)]
#![cfg_attr(not(test),
no_std)]
...
...
@@ -15,22 +14,26 @@ pub use self::io::*;
pub
use
self
::
number
::
*
;
pub
use
self
::
scheme
::
*
;
#[cfg(
target_arch
=
"arm"
)]
#[cfg(
all(target_os
=
"redox"
,
target_arch
=
"arm"
)
)]
#[path=
"arch/arm.rs"
]
mod
arch
;
#[cfg(
target_arch
=
"aarch64"
)]
#[cfg(
all(target_os
=
"redox"
,
target_arch
=
"aarch64"
)
)]
#[path=
"arch/aarch64.rs"
]
mod
arch
;
#[cfg(
target_arch
=
"x86"
)]
#[cfg(
all(target_os
=
"redox"
,
target_arch
=
"x86"
)
)]
#[path=
"arch/x86.rs"
]
mod
arch
;
#[cfg(
target_arch
=
"x86_64"
)]
#[cfg(
all(target_os
=
"redox"
,
target_arch
=
"x86_64"
)
)]
#[path=
"arch/x86_64.rs"
]
mod
arch
;
#[cfg(not(target_os
=
"redox"
))]
#[path=
"arch/nonredox.rs"
]
mod
arch
;
/// Function definitions
pub
mod
call
;
...
...
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