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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to