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
bf5b72be
Commit
bf5b72be
authored
8 years ago
by
Raphael Cohn
Browse files
Options
Downloads
Patches
Plain Diff
Changing android to not use id_t
parent
fa53abb7
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/unix/notbsd/android/mod.rs
+18
-2
18 additions, 2 deletions
src/unix/notbsd/android/mod.rs
with
18 additions
and
2 deletions
src/unix/notbsd/android/mod.rs
+
18
−
2
View file @
bf5b72be
...
...
@@ -21,6 +21,7 @@ pub type nfds_t = ::c_uint;
pub
type
rlim_t
=
::
c_ulong
;
pub
type
dev_t
=
::
c_ulong
;
pub
type
ino_t
=
::
c_ulong
;
pub
type
__CPU_BITTYPE
=
::
c_ulong
;
s!
{
pub
struct
dirent
{
...
...
@@ -87,6 +88,13 @@ s! {
pub
l_len
:
::
off_t
,
pub
l_pid
:
::
pid_t
,
}
pub
struct
cpu_set_t
{
#[cfg(target_pointer_width
=
"64"
)]
__bits
:
[
__CPU_BITTYPE
;
16
],
#[cfg(target_pointer_width
=
"32"
)]
__bits
:
[
__CPU_BITTYPE
;
1
],
}
}
pub
const
BUFSIZ
:
::
c_uint
=
1024
;
...
...
@@ -460,6 +468,11 @@ pub const RTLD_NOLOAD: ::c_int = 0x4;
pub
const
RTLD_NOW
:
::
c_int
=
0
;
pub
const
RTLD_DEFAULT
:
*
mut
::
c_void
=
-
1isize
as
*
mut
::
c_void
;
#[cfg(target_pointer_width
=
"64"
)]
pub
const
CPU_SETSIZE
:
::
size_t
=
1024
;
#[cfg(target_pointer_width
=
"32"
)]
pub
const
CPU_SETSIZE
:
::
size_t
=
32
;
#[cfg(target_pointer_width
=
"64"
)]
pub
const
__CPU_BITS
:
::
size_t
=
64
;
#[cfg(target_pointer_width
=
"32"
)]
pub
const
__CPU_BITS
:
::
size_t
=
32
;
f!
{
pub
fn
sigemptyset
(
set
:
*
mut
sigset_t
)
->
::
c_int
{
*
set
=
0
;
...
...
@@ -543,8 +556,11 @@ extern {
sevlen
:
::
size_t
,
flags
:
::
c_int
)
->
::
c_int
;
pub
fn
ptrace
(
request
:
::
c_int
,
...
)
->
::
c_long
;
pub
fn
getpriority
(
which
:
::
c_int
,
who
:
::
id_t
)
->
::
c_int
;
pub
fn
setpriority
(
which
:
::
c_int
,
who
:
::
id_t
,
prio
:
::
c_int
)
->
::
c_int
;
pub
fn
getpriority
(
which
:
::
c_int
,
who
:
::
c_int
)
->
::
c_int
;
pub
fn
setpriority
(
which
:
::
c_int
,
who
:
::
c_int
,
prio
:
::
c_int
)
->
::
c_int
;
pub
fn
__sched_cpualloc
(
count
:
::
size_t
)
->
*
mut
::
cpu_set_t
;
pub
fn
__sched_cpufree
(
set
:
*
mut
::
cpu_set_t
);
pub
fn
__sched_cpucount
(
setsize
:
::
size_t
,
set
:
*
mut
cpu_set_t
)
->
::
c_int
;
}
cfg_if!
{
...
...
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