Пример #1
0
/* 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));
}
Пример #2
0
/* 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));
}