Use standard casing and mangling for internal errno

This commit is contained in:
Peter Limkilde Svendsen
2024-03-01 00:25:42 +00:00
committed by Jeremy Soller
parent 7074432184
commit a7137512fa
36 changed files with 157 additions and 159 deletions
+1 -1
View File
@@ -214,7 +214,7 @@ pub unsafe extern "C" fn strndup(s1: *const c_char, size: size_t) -> *mut c_char
// the "+ 1" is to account for the NUL byte
let buffer = platform::alloc(len + 1) as *mut c_char;
if buffer.is_null() {
platform::errno.set(ENOMEM as c_int);
platform::ERRNO.set(ENOMEM as c_int);
} else {
//memcpy(buffer, s1, len)
for i in 0..len {