From owner-cvs-all@FreeBSD.ORG Thu May 10 14:43:11 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 05D7716A403; Thu, 10 May 2007 14:43:11 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id D44C713C459; Thu, 10 May 2007 14:43:10 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l4AEhArL008398; Thu, 10 May 2007 14:43:10 GMT (envelope-from des@repoman.freebsd.org) Received: (from des@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l4AEhAXZ008396; Thu, 10 May 2007 14:43:10 GMT (envelope-from des) Message-Id: <200705101443.l4AEhAXZ008396@repoman.freebsd.org> From: Dag-Erling Smorgrav Date: Thu, 10 May 2007 14:43:10 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libutil Makefile flopen.3 libutil.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 May 2007 14:43:11 -0000 des 2007-05-10 14:43:10 UTC FreeBSD src repository Modified files: lib/libutil Makefile libutil.h Added files: lib/libutil flopen.3 Log: I'm tired of seeing this done incorrectly and non-portably, so add a flopen(3) function which reliably opens and locks a file. MFC after: 3 weeks Revision Changes Path 1.64 +6 -6 src/lib/libutil/Makefile 1.1 +79 -0 src/lib/libutil/flopen.3 (new) 1.43 +1 -0 src/lib/libutil/libutil.h