1 /* Check error message for invalid sysctl call.
3 #output: Unimplemented _sysctl syscall *\n
4 #output: program stopped with signal 4.\n
9 #include <sys/syscall.h>
17 static int sysctl_args
[] = { 99, 99 };
20 struct __sysctl_args
{
27 unsigned long __unused
[4];
32 sizeof (sysctl_args
) / sizeof (sysctl_args
[0]),
33 (void *) -1, &x
, NULL
, 0
36 int err
= syscall (SYS__sysctl
, &scargs
);
37 if (err
== -1 && errno
== ENOSYS
)
This page took 0.031112 seconds and 4 git commands to generate.