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
a6c451d1
Commit
a6c451d1
authored
4 years ago
by
Max Blachman
Browse files
Options
Downloads
Patches
Plain Diff
add clock_nanosleep to freebsd 12 and netbsd
parent
2cce5515
No related branches found
Branches containing commit
No related tags found
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs
+6
-0
6 additions, 0 deletions
src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs
src/unix/bsd/netbsdlike/netbsd/mod.rs
+6
-0
6 additions, 0 deletions
src/unix/bsd/netbsdlike/netbsd/mod.rs
with
12 additions
and
0 deletions
src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs
+
6
−
0
View file @
a6c451d1
...
...
@@ -221,6 +221,12 @@ extern "C" {
msgtyp
:
::
c_long
,
msgflg
:
::
c_int
,
)
->
::
ssize_t
;
pub
fn
clock_nanosleep
(
clk_id
:
::
clockid_t
,
flags
:
::
c_int
,
rqtp
:
*
const
::
timespec
,
rmtp
:
*
mut
::
timespec
,
)
->
::
c_int
;
}
cfg_if!
{
...
...
This diff is collapsed.
Click to expand it.
src/unix/bsd/netbsdlike/netbsd/mod.rs
+
6
−
0
View file @
a6c451d1
...
...
@@ -1743,6 +1743,12 @@ safe_f! {
extern
"C"
{
pub
fn
ntp_adjtime
(
buf
:
*
mut
timex
)
->
::
c_int
;
pub
fn
ntp_gettime
(
buf
:
*
mut
ntptimeval
)
->
::
c_int
;
pub
fn
clock_nanosleep
(
clk_id
:
::
clockid_t
,
flags
:
::
c_int
,
rqtp
:
*
const
::
timespec
,
rmtp
:
*
mut
::
timespec
,
)
->
::
c_int
;
}
#[link(name
=
"rt"
)]
...
...
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