Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Nov 2000 17:11:53 -0600
From:      "G. Adam Stanislav" <adam@whizkidtech.net>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        Michael Bacarella <mbac@mmap.nyct.net>, hackers@FreeBSD.ORG
Subject:   Re: Kernel calls, are they documented somewhere?
Message-ID:  <20001102171153.A228@whizkidtech.net>
In-Reply-To: <xzp3dhasqax.fsf@flood.ping.uio.no>; from des@ofug.org on Thu, Nov 02, 2000 at 09:59:02AM %2B0100
References:  <20001101222558.A408@whizkidtech.net> <20001102001202.A14447@mmap.nyct.net> <xzp3dhasqax.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 02, 2000 at 09:59:02AM +0100, Dag-Erling Smorgrav wrote:
>Adam, it's really quite simple: if the carry flag is set, the syscall
>failed, and the value returned is the errno (in your example, open(2)
>returned 2, which is ENOENT, i.e. the file didn't exist). If it
>succeeded, the value returned is the result (a file descriptor in
>open(2)'s case).

Aha! Thank you (and everyone else who answered). That did the trick. I
just knew FreeBSD would use a simple and elegant solution, and this one
is both.

Thanks again!
Adam

-- 
Don't send me spam, I'm a vegetarian


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001102171153.A228>