Go to the documentation of this file.
13 #include <sys/syscall.h>
29 if (*a == 0 || *b == 0)
39 static inline long linux_write(
int fd,
const void *
data,
size_t len)
44 "D" (
fd),
"S" (data),
"d" (len) :
45 "cc",
"memory",
"rcx",
46 "r8",
"r9",
"r10",
"r11" );
50 static inline void linux_exit(
int code)
52 asm volatile (
"syscall" : :
"a" (
__NR_exit),
"D" (code));
58 *lastdig = (n % 10) +
'0';
80 gtod_t
gtod = (gtod_t)
vdso_sym(
"LINUX_2.6",
"__vdso_gettimeofday");
86 long ret =
gtod(&tv, 0);
89 char buf[] =
"The time is .000000\n";
92 linux_write(1, buf,
sizeof(buf) - 1);
107 ".type _start,@function\n"