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
573c5fe9
Commit
573c5fe9
authored
8 years ago
by
Alexander von Gluck IV
Browse files
Options
Downloads
Patches
Plain Diff
Haiku: Add in final missing pthread pubs
parent
9f0696e1
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/haiku/mod.rs
+8
-0
8 additions, 0 deletions
src/unix/haiku/mod.rs
with
8 additions
and
0 deletions
src/unix/haiku/mod.rs
+
8
−
0
View file @
573c5fe9
...
...
@@ -8,6 +8,7 @@ pub type tcflag_t = ::c_uint;
pub
type
speed_t
=
::
c_uint
;
pub
type
c_char
=
i8
;
pub
type
clock_t
=
i32
;
pub
type
clockid_t
=
i32
;
pub
type
time_t
=
i32
;
pub
type
suseconds_t
=
i32
;
pub
type
wchar_t
=
i32
;
...
...
@@ -615,6 +616,9 @@ pub const PTHREAD_RWLOCK_INITIALIZER: pthread_rwlock_t = pthread_rwlock_t {
waiters
:
[
0
as
*
mut
_
;
2
],
};
pub
const
PTHREAD_MUTEX_DEFAULT
:
::
c_int
=
0
;
pub
const
PTHREAD_MUTEX_NORMAL
:
::
c_int
=
1
;
pub
const
PTHREAD_MUTEX_ERRORCHECK
:
::
c_int
=
2
;
pub
const
PTHREAD_MUTEX_RECURSIVE
:
::
c_int
=
3
;
pub
const
FIOCLEX
:
c_ulong
=
0
;
// TODO: does not exist on Haiku!
...
...
@@ -703,6 +707,10 @@ extern {
pub
fn
pthread_attr_getstack
(
attr
:
*
const
::
pthread_attr_t
,
stackaddr
:
*
mut
*
mut
::
c_void
,
stacksize
:
*
mut
::
size_t
)
->
::
c_int
;
pub
fn
pthread_condattr_getclock
(
attr
:
*
const
pthread_condattr_t
,
clock_id
:
*
mut
clockid_t
)
->
::
c_int
;
pub
fn
pthread_condattr_setclock
(
attr
:
*
mut
pthread_condattr_t
,
clock_id
:
clockid_t
)
->
::
c_int
;
pub
fn
memalign
(
align
:
::
size_t
,
size
:
::
size_t
)
->
*
mut
::
c_void
;
pub
fn
setgroups
(
ngroups
:
::
size_t
,
ptr
:
*
const
::
gid_t
)
->
::
c_int
;
...
...
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