From owner-cvs-lib Mon Mar 31 08:56:57 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA26976 for cvs-lib-outgoing; Mon, 31 Mar 1997 08:56:57 -0800 (PST) Received: from sovcom.kiae.su (sovcom.kiae.su [193.125.152.1]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id IAA26880; Mon, 31 Mar 1997 08:55:11 -0800 (PST) Received: by sovcom.kiae.su id AA17785 (5.65.kiae-1 ); Mon, 31 Mar 1997 18:46:19 +0300 Received: by sovcom.KIAE.su (UUMAIL/2.0); Mon, 31 Mar 97 18:46:19 +0300 Received: (from ache@localhost) by nagual.ru (8.8.5/8.8.5) id TAA00626; Mon, 31 Mar 1997 19:45:40 +0400 (MSD) Date: Mon, 31 Mar 1997 19:45:38 +0400 (MSD) From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= To: Brian Somers Cc: Brian Somers , 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 In-Reply-To: <199703311427.PAA04005@awfulhak.demon.co.uk> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 http://www.nagual.ru/~ache/