Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Mar 1997 19:45:38 +0400 (MSD)
From:      =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.ru>
To:        Brian Somers <brian@awfulhak.org>
Cc:        Brian Somers <brian@freefall.freebsd.org>, CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-lib@freefall.freebsd.org, cvs-usrbin@freefall.freebsd.org, cvs-sbin@freefall.freebsd.org, cvs-usrsbin@freefall.freebsd.org
Subject:   Re: cvs commit: src/sbin/slattach Makefile src/usr.bin/tip/tip  Makefile src/usr.sbin/ppp Makefile src/lib/libutil uucplock.3 uucplock.c  Makefile libutil.h src/sbin/startslip Makefile uucplock.c
Message-ID:  <Pine.BSF.3.96.970331194355.530E-100000@nagual.ru>
In-Reply-To: <199703311427.PAA04005@awfulhak.demon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 31 Mar 1997, Brian Somers wrote:

> On second thoughts, a return value of UU_LOCK_OPEN_ERR,
> UU_LOCK_READ_ERR, UU_LOCK_SEEK_ERR, UU_LOCK_WRITE_ERR,
> UU_LOCK_INUSE_ERR or UU_LOCK_OK (#define'd in libutil.h)
> with errno set to the error would be more appropriate.

Ok, but you need a wrapper which convert return error
code to diagnostic string in any case. It can be done via something like
uustrerror() or manually into each program.

-- 
Andrey A. Chernov
<ache@null.net>
http://www.nagual.ru/~ache/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970331194355.530E-100000>