/* Safe print syscall. */ void nolibc_print(const char *str) { dynamorio_syscall( #ifdef MACOS SYS_write_nocancel, #else SYS_write, #endif 3, stderr->_fileno, str, nolibc_strlen(str)); }
/* Safe print syscall. */ void nolibc_print(const char *str) { dynamorio_syscall( #ifdef MACOS SYS_write_nocancel, #else SYS_write, #endif 3, #if defined(MACOS) || defined(ANDROID) stderr->_file, #else stderr->_fileno, #endif str, nolibc_strlen(str)); }