Date: Fri, 15 Feb 2013 21:05:35 -0500 From: Aaron Brubacher <aaron_bru@auracom.com> To: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: new system call: Operation not permitted Message-ID: <BLU002-W22598AA14677540E5A7270A860D0@phx.gbl>
next in thread | raw e-mail | index | archive | help
Hi=2C
I'm trying to learn system calls on FreeBSD 4.2-RELEASE and I've added this=
system call:
int aaronflag(struct proc *p=2C struct aaronflag_args *uap)
{
return 1=3B
}
with this entry in syscalls.master:
364 STD BSD { int aaronflag()=3B }
After running make syscalls.c and compiling=2C installing the kernel=2C whe=
n I call it with syscall(364)=3B I get errno 1 "Operation not permitted". A=
ny ideas what could cause this?
thanks
-Aaron =
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BLU002-W22598AA14677540E5A7270A860D0>
