File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -417,6 +417,10 @@ pub const AF_UNSPEC: ::c_int = 0;
417
417
pub const AF_INET : :: c_int = 2 ;
418
418
pub const AF_INET6 : :: c_int = 23 ;
419
419
420
+ pub const CLOCK_REALTIME : :: clockid_t = 1 ;
421
+ pub const CLOCK_MONOTONIC : :: clockid_t = 4 ;
422
+ pub const CLOCK_BOOTTIME : :: clockid_t = 4 ;
423
+
420
424
pub const SOCK_STREAM : :: c_int = 1 ;
421
425
pub const SOCK_DGRAM : :: c_int = 2 ;
422
426
@@ -597,6 +601,18 @@ extern "C" {
597
601
598
602
pub fn bind ( fd : :: c_int , addr : * const sockaddr , len : socklen_t )
599
603
-> :: c_int ;
604
+ pub fn clock_settime (
605
+ clock_id : :: clockid_t ,
606
+ tp : * const :: timespec ,
607
+ ) -> :: c_int ;
608
+ pub fn clock_gettime (
609
+ clock_id : :: clockid_t ,
610
+ tp : * mut :: timespec ,
611
+ ) -> :: c_int ;
612
+ pub fn clock_getres (
613
+ clock_id : :: clockid_t ,
614
+ res : * mut :: timespec ,
615
+ ) -> :: c_int ;
600
616
pub fn closesocket ( sockfd : :: c_int ) -> :: c_int ;
601
617
pub fn ioctl ( fd : :: c_int , request : :: c_ulong , ...) -> :: c_int ;
602
618
pub fn recvfrom (
You can’t perform that action at this time.
0 commit comments