From owner-freebsd-hackers Mon Mar 26 5:37:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from vulture.dmem.strath.ac.uk (vulture.dmem.strath.ac.uk [130.159.232.158]) by hub.freebsd.org (Postfix) with ESMTP id AE11137B71B for ; Mon, 26 Mar 2001 05:37:17 -0800 (PST) (envelope-from roger@cs.strath.ac.uk) Received: from cs.strath.ac.uk (posh [130.159.202.3]) by vulture.dmem.strath.ac.uk (8.9.3/8.9.3) with ESMTP id OAA21414 for ; Mon, 26 Mar 2001 14:37:11 +0100 (BST) (envelope-from roger@cs.strath.ac.uk) Message-ID: <3ABF45B6.DF5A0B7F@cs.strath.ac.uk> Date: Mon, 26 Mar 2001 14:35:50 +0100 From: Roger Hardiman Organization: University of Strathclyde X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: hackers@freebsd.org Subject: Porting a Linux driver to FreeBSD with ioctl return values Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I'm porting the some linux telephony API drivers over to FreeBSD. But the author of the linux driver used the 'hack' of returning values from the ioctls as the error result. eg volume = ioctl (fd, IXJ_GET_VOLUME) instead of using error = ioctl (fd, IXJ_GET_VOLUME, &volume); Naturally I want to keep the API the same on FreeBSD so existing apps will compile without change. But right now it looks like I cannot do this. Is there anything I can do in the FreeBSD driver or in existing source to help, without imposing a new 'BSD' API. Cheers Roger Hardiman roger@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message