| ... | @@ -1388,6 +1388,7 @@ pub const libc = struct { | ... | @@ -1388,6 +1388,7 @@ pub const libc = struct { |
| 1388 | // | 1388 | // |
| 1389 | | 1389 | |
| 1390 | pub extern fn __errno_location() *c_int; | 1390 | pub extern fn __errno_location() *c_int; |
| | 1391 | pub extern fn gettid() pid_t; |
| 1391 | }; | 1392 | }; |
| 1392 | | 1393 | |
| 1393 | pub const clock_t = c_long; | 1394 | pub const clock_t = c_long; |
| ... | @@ -1533,3 +1534,7 @@ pub fn mkdirat(fd: c_int, path: [*:0]const u8, mode: mode_t) errno.Error!void { | ... | @@ -1533,3 +1534,7 @@ pub fn mkdirat(fd: c_int, path: [*:0]const u8, mode: mode_t) errno.Error!void { |
| 1533 | pub fn pthread_self() pthread_t { | 1534 | pub fn pthread_self() pthread_t { |
| 1534 | return libc.pthread_self(); | 1535 | return libc.pthread_self(); |
| 1535 | } | 1536 | } |
| | 1537 | |
| | 1538 | pub fn gettid() pid_t { |
| | 1539 | return libc.gettid(); |
| | 1540 | } |