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
7fbc4e96
Unverified
Commit
7fbc4e96
authored
5 years ago
by
Yuki Okushi
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1648 from reitermarkus/newlib-clock
Add Newlib clock constants and functions.
parents
e15be472
b1d6c663
No related branches found
Branches containing commit
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/unix/newlib/mod.rs
+16
-0
16 additions, 0 deletions
src/unix/newlib/mod.rs
with
16 additions
and
0 deletions
src/unix/newlib/mod.rs
+
16
−
0
View file @
7fbc4e96
...
...
@@ -417,6 +417,10 @@ pub const AF_UNSPEC: ::c_int = 0;
pub
const
AF_INET
:
::
c_int
=
2
;
pub
const
AF_INET6
:
::
c_int
=
23
;
pub
const
CLOCK_REALTIME
:
::
clockid_t
=
1
;
pub
const
CLOCK_MONOTONIC
:
::
clockid_t
=
4
;
pub
const
CLOCK_BOOTTIME
:
::
clockid_t
=
4
;
pub
const
SOCK_STREAM
:
::
c_int
=
1
;
pub
const
SOCK_DGRAM
:
::
c_int
=
2
;
...
...
@@ -597,6 +601,18 @@ extern "C" {
pub
fn
bind
(
fd
:
::
c_int
,
addr
:
*
const
sockaddr
,
len
:
socklen_t
)
->
::
c_int
;
pub
fn
clock_settime
(
clock_id
:
::
clockid_t
,
tp
:
*
const
::
timespec
,
)
->
::
c_int
;
pub
fn
clock_gettime
(
clock_id
:
::
clockid_t
,
tp
:
*
mut
::
timespec
,
)
->
::
c_int
;
pub
fn
clock_getres
(
clock_id
:
::
clockid_t
,
res
:
*
mut
::
timespec
,
)
->
::
c_int
;
pub
fn
closesocket
(
sockfd
:
::
c_int
)
->
::
c_int
;
pub
fn
ioctl
(
fd
:
::
c_int
,
request
:
::
c_ulong
,
...
)
->
::
c_int
;
pub
fn
recvfrom
(
...
...
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