authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-22 13:56:29 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-22 13:56:29 -07:00
logf2fb41162f712ebc5992e88d74f15fa351de1bf4
tree3e13d1cfbfb728cdc8d9622d64508942153e4cae
parentde1729f572ca74d550f1a998dbfb05b16bb3100e
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

lowercase c callconv


1 files changed, 2 insertions(+), 2 deletions(-)

mod.zig+2-2
...@@ -2221,7 +2221,7 @@ pub const libc = struct {...@@ -2221,7 +2221,7 @@ pub const libc = struct {
22212221
2222 /// int pthread_create(pthread_t *restrict thread, const pthread_attr_t *restrict attr, void *(*start_routine)(void*), void *restrict arg);2222 /// int pthread_create(pthread_t *restrict thread, const pthread_attr_t *restrict attr, void *(*start_routine)(void*), void *restrict arg);
2223 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_create.html2223 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_create.html
2224 pub extern fn pthread_create(noalias newthread: *pthread_t, noalias attr: *const pthread_attr_t, start_routine: *const fn (*anyopaque) callconv(.C) ?*anyopaque, noalias arg: *anyopaque) c_int;2224 pub extern fn pthread_create(noalias newthread: *pthread_t, noalias attr: *const pthread_attr_t, start_routine: *const fn (*anyopaque) callconv(.c) ?*anyopaque, noalias arg: *anyopaque) c_int;
22252225
2226 /// int pthread_detach(pthread_t thread);2226 /// int pthread_detach(pthread_t thread);
2227 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_detach.html2227 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_detach.html
...@@ -3406,7 +3406,7 @@ pub fn pthread_attr_setguardsize(attr: *pthread_attr_t, size: usize) !void {...@@ -3406,7 +3406,7 @@ pub fn pthread_attr_setguardsize(attr: *pthread_attr_t, size: usize) !void {
3406 if (rc != 0) return errno.fromInt(rc);3406 if (rc != 0) return errno.fromInt(rc);
3407 std.debug.assert(rc == 0);3407 std.debug.assert(rc == 0);
3408}3408}
3409pub fn pthread_create(noalias newthread: *pthread_t, noalias attr: *const pthread_attr_t, start_routine: *const fn (*anyopaque) callconv(.C) ?*anyopaque, noalias arg: *anyopaque) !void {3409pub fn pthread_create(noalias newthread: *pthread_t, noalias attr: *const pthread_attr_t, start_routine: *const fn (*anyopaque) callconv(.c) ?*anyopaque, noalias arg: *anyopaque) !void {
3410 const rc = libc.pthread_create(newthread, attr, start_routine, arg);3410 const rc = libc.pthread_create(newthread, attr, start_routine, arg);
3411 if (rc != 0) return errno.fromInt(rc);3411 if (rc != 0) return errno.fromInt(rc);
3412 std.debug.assert(rc == 0);3412 std.debug.assert(rc == 0);