Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Apr 1995 20:34:12 -0800 (PST)
From:      Bill Paul <wpaul>
To:        bde@zeta.org.au (Bruce Evans)
Cc:        cvs-commiters, cvs-usrsbin
Subject:   Re: cvs commit: src/usr.sbin/ypbind ypbind.c
Message-ID:  <199504020434.UAA22398@freefall.cdrom.com>
In-Reply-To: <199504020336.NAA29929@godzilla.zeta.org.au> from "Bruce Evans" at Apr 2, 95 01:36:18 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> open() is spec'ed to return -1 for errors.  When doesn't it?  It is also
> spec'ed to return a non-negative integer so checking for < 0 is safer,
> but I prefer -1 for consistency with syscalls like read().
> 
> Bruce
> 

I must be going insane. You're right, of course. But I've seen ypbind
goof up in this situation before -- I know I have! Now I feel *really*
silly.

-Bill



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