From owner-freebsd-hackers Sun Jan 21 11:15:46 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 0E03737B401; Sun, 21 Jan 2001 11:15:29 -0800 (PST) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id UAA66787; Sun, 21 Jan 2001 20:15:27 +0100 (CET) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Adrian Chadd Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: linux_connect() is broken References: <20010121190007.A39518@roaming.cacheboy.net> From: Dag-Erling Smorgrav Date: 21 Jan 2001 20:15:26 +0100 In-Reply-To: Adrian Chadd's message of "Sun, 21 Jan 2001 19:00:07 +0100" Message-ID: Lines: 19 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Adrian Chadd writes: > * inside a syscall, if I return (value); what happens? errno gets set to that value, and if it's non-zero, the userland syscall code returns -1 to the caller. > * inside a syscall, if I set p->p_retval[0] to something, and then > return (value); what happens ? If the value you return is non-zero, see above. If it's zero, the userland syscall code returns p->p_retval[0] to the caller. > * Does this logic also apply to the Linux syscall stuff in the kernel? I think so. Marcel would be better placed to answer that. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message