refactor(ffi-linkage): Phase 6.3 — migrate std/ #foreign→extern
Pure source rename across 11 std modules (~60 sites): cli/core/fmt/fs/log/ net/kqueue/process/socket/thread/time/trace. All fn-decl markers — bare '#foreign;', '#foreign libc;'/'#foreign tlib;' (LIB ref), and '#foreign libc "csym";' (LIB+rename) → the same 'extern …' tail (extern carries the identical [LIB] ["csym"] axis). Plus 2 stale comment mentions (fmt/fs). No class forms in std. These modules ARE host-corpus-exercised, so the empty snapshot diff is direct validation. Suite green (647 corpus / 444 unit, 0 failed).
This commit is contained in:
@@ -32,8 +32,8 @@ KqTimespec :: struct {
|
||||
nsec: i64 = 0;
|
||||
}
|
||||
|
||||
kqueue :: () -> i32 #foreign libc;
|
||||
kevent :: (kq: i32, changelist: *Kevent, nchanges: i32, eventlist: *Kevent, nevents: i32, timeout: *KqTimespec) -> i32 #foreign libc;
|
||||
kqueue :: () -> i32 extern libc;
|
||||
kevent :: (kq: i32, changelist: *Kevent, nchanges: i32, eventlist: *Kevent, nevents: i32, timeout: *KqTimespec) -> i32 extern libc;
|
||||
|
||||
// Filters (darwin)
|
||||
EVFILT_READ :i16: -1;
|
||||
@@ -82,4 +82,4 @@ kq_wait :: (kq: i32, events: *Kevent, cap: i32, timeout_ms: i64) -> i32 {
|
||||
}
|
||||
|
||||
// errno, bound locally (the std.socket accessor is module-scoped there).
|
||||
errno_slot_kq :: () -> *i32 #foreign libc "__error";
|
||||
errno_slot_kq :: () -> *i32 extern libc "__error";
|
||||
|
||||
Reference in New Issue
Block a user