From owner-freebsd-questions@FreeBSD.ORG Sat Feb 16 02:06:42 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D20B09F6 for ; Sat, 16 Feb 2013 02:06:42 +0000 (UTC) (envelope-from aaron_bru@hotmail.com) Received: from blu0-omc4-s18.blu0.hotmail.com (blu0-omc4-s18.blu0.hotmail.com [65.55.111.157]) by mx1.freebsd.org (Postfix) with ESMTP id 96B87305 for ; Sat, 16 Feb 2013 02:06:42 +0000 (UTC) Received: from BLU002-W225 ([65.55.111.137]) by blu0-omc4-s18.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 15 Feb 2013 18:05:35 -0800 X-EIP: [VrLYW8Nngtk+YCD44eBx83dWDWc2mviA] X-Originating-Email: [aaron_bru@hotmail.com] Message-ID: From: Aaron Brubacher Sender: To: "freebsd-questions@freebsd.org" Subject: new system call: Operation not permitted Date: Fri, 15 Feb 2013 21:05:35 -0500 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 16 Feb 2013 02:05:35.0983 (UTC) FILETIME=[1BF83FF0:01CE0BEA] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Feb 2013 02:06:42 -0000 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 =