| author | |
| committer | |
| log | b909bdac4648a27c7a4cde2cb991d90221a36949 |
| tree | 5c9f39115b0b326e0c44f417588005246efb1170 |
| parent | 8b430df52d95956e12163ff976af7fda6712a341 |
2 files changed, 6 insertions(+), 0 deletions(-)
mod.zig+5| ... | ... | @@ -1388,6 +1388,7 @@ pub const libc = struct { |
| 1388 | 1388 | // |
| 1389 | 1389 | |
| 1390 | 1390 | pub extern fn __errno_location() *c_int; |
| 1391 | pub extern fn gettid() pid_t; | |
| 1391 | 1392 | }; |
| 1392 | 1393 | |
| 1393 | 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 | 1534 | pub fn pthread_self() pthread_t { |
| 1534 | 1535 | return libc.pthread_self(); |
| 1535 | 1536 | } |
| 1537 | ||
| 1538 | pub fn gettid() pid_t { | |
| 1539 | return libc.gettid(); | |
| 1540 | } |
test.zig+1| ... | ... | @@ -14,4 +14,5 @@ test { |
| 14 | 14 | _ = &linux.readv; |
| 15 | 15 | _ = &linux.mkdirat; |
| 16 | 16 | _ = &linux.pthread_self; |
| 17 | _ = &linux.gettid; | |
| 17 | 18 | } |