this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Handle compat_mode, used from uname(1)

This change is suggested by Yoshi. Thanks!

+10
+8
libmac/mac.c
··· 1301 1301 return newlocale(linux_category_mask, locale, base); 1302 1302 } 1303 1303 1304 + int __darwin_compat_mode(const char* function, const char* mode) { 1305 + LOGF("compat_mode: %s %s\n", function, mode); 1306 + // We don't consider bootstrap, legacy, and error. 1307 + // http://opensource.apple.com/source/Libc/Libc-763.13/gen/get_compat.c 1308 + // TODO(hamaji): Support binary operators. 1309 + return !strcasecmp(mode, "unix2003"); 1310 + } 1311 + 1304 1312 __attribute__((constructor)) void initMac() { 1305 1313 __darwin_stdin = __init_darwin_FILE(stdin); 1306 1314 __darwin_stdout = __init_darwin_FILE(stdout);
+2
rename.tab
··· 151 151 WRAP(qsort_r) 152 152 153 153 WRAP(newlocale) 154 + 155 + WRAP(compat_mode)