示例#1
0
文件: tools.c 项目: pb2bee/dynamorio
/* 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
文件: tools.c 项目: Safe3/dynamorio
/* 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));
}