blob: 193b6b61dcf1c29eb831d5900f3336edb1153e1e [file] [log] [blame]
/* Test for system_stats syscall which is available on newer Solaris. */
#include "scalar.h"
#include <sys/system_stats.h>
int main(void)
{
/* Uninitialised, but we know px[0] is 0x0. */
long *px = malloc(sizeof(long));
x0 = px[0];
/* SYS_system_stats 154 */
GO(SYS_system_stats, "1s 0m");
SY(SYS_system_stats, x0 + SYSTEM_STATS_START); SUCC;
return 0;
}