#include <stdio.h>
#include <err.h>
#include <errno.h>
#include <sys/secflags.h>
int
{
int err = 0;
warnx("attempt to set secflags with a NULL procset "
"set errno other than EFAULT (%d)", errno);
} else {
warnx("attempt to set secflags with a NULL procset succeeded");
}
PSF_INHERIT, NULL)) != 0) {
warnx("attempt to set secflags with a bad procset "
"set errno other than EFAULT (%d)", errno);
} else {
warnx("attempt to set secflags with a bad procset succeeded");
}
warnx("attempt to set secflags with a NULL "
"delta set errno to other than EFAULT (%d)",
errno);
} else {
warnx("attempt to set secflags with a NULL delta succeeded");
}
(void*)0xdeadbeef)) != 0) {
warnx("attempt to set secflags with a bad "
"delta set errno to other than EFAULT (%d)",
errno);
} else {
warnx("attempt to set secflags with a bad delta succeeded");
}
warnx("attempt to set secflags of an lwpid set errno "
"to other than EINVAL (%d)", errno);
} else {
warnx("attempt to set secflags of an lwpid succeeded");
}
warnx("attempt to set effective secflags set errno "
"to other than EINVAL (%d)", errno);
} else {
warnx("attempt to set effective secflags succeeded");
}
return (0);
}