Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git] / memcheck / tests / solaris / getzoneoffset.c
blobeac0724e9c4320365acc80ef2b85604eac166a50
1 /* Test for get_zone_offset fasttrap. */
3 #include "config.h"
4 #include <stdio.h>
5 #include <sys/time.h>
6 #include <sys/trap.h>
8 int main(void)
10 #if defined(VGP_x86_solaris)
11 __asm__ ( \
12 "movl %[FASTTRAP],%%eax\n"
13 "int $0xd2\n"
15 : [FASTTRAP] "i" (T_GETZONEOFFSET)
16 : "eax", "edx", "cc");
17 #elif defined(VGP_amd64_solaris)
18 __asm__ ( \
19 "movq %[FASTTRAP],%%rax\n"
20 "int $0xd2\n"
22 : [FASTTRAP] "i" (T_GETZONEOFFSET)
23 : "rax", "rdx", "cc");
24 #else
25 # error "Unknown platform"
26 #endif
28 return 0;