@@ -174,22 +174,17 @@ fn C.toupper(c int) int
174174[trusted]
175175fn C.isspace (c int ) int
176176
177- [trusted]
178177fn C.strchr (s & char, c int ) & char
179178
180179[trusted]
181180fn C.getchar () int
182181
183- [trusted]
184182fn C.strdup (s & char) & char
185183
186- [trusted]
187184fn C.strncasecmp (s & char, s2 & char, n int ) int
188185
189- [trusted]
190186fn C.strcasecmp (s & char, s2 & char) int
191187
192- [trusted]
193188fn C.strncmp (s & char, s2 & char, n int ) int
194189
195190[trusted]
@@ -359,6 +354,7 @@ fn C.Sleep(dwMilliseconds u32)
359354
360355fn C.WSAStartup (u16 , & voidptr ) int
361356
357+ [trusted]
362358fn C.WSAGetLastError () int
363359
364360fn C.closesocket (int ) int
@@ -371,6 +367,7 @@ fn C.vschannel_cleanup(&C.TlsContext)
371367
372368fn C.URLDownloadToFile (int , & u16 , & u16 , int , int )
373369
370+ [trusted]
374371fn C.GetLastError () u32
375372
376373fn C.CreateDirectory (& byte , int ) bool
@@ -455,12 +452,14 @@ fn C.sem_timedwait(voidptr, voidptr) int
455452fn C.sem_destroy (voidptr ) int
456453
457454// MacOS semaphore functions
455+ [trusted]
458456fn C.dispatch_semaphore_create (i64 ) voidptr
459457
460458fn C.dispatch_semaphore_signal (voidptr ) i64
461459
462460fn C.dispatch_semaphore_wait (voidptr , u64 ) i64
463461
462+ [trusted]
464463fn C.dispatch_time (u64 , i64 ) u64
465464
466465fn C.dispatch_release (voidptr )
0 commit comments