From owner-cvs-src@FreeBSD.ORG Fri May 16 02:07:57 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C9F3106564A; Fri, 16 May 2008 02:07:57 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4E7098FC0A; Fri, 16 May 2008 02:07:57 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m4G27vvg039944; Fri, 16 May 2008 02:07:57 GMT (envelope-from scf@repoman.freebsd.org) Received: (from scf@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m4G27vIW039943; Fri, 16 May 2008 02:07:57 GMT (envelope-from scf) Message-Id: <200805160207.m4G27vIW039943@repoman.freebsd.org> From: Sean Farley Date: Fri, 16 May 2008 02:07:57 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_7 Cc: Subject: cvs commit: src/lib/libutil Makefile gr_util.c libutil.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 May 2008 02:07:57 -0000 scf 2008-05-16 02:07:57 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) lib/libutil Makefile libutil.h Added files: (Branch: RELENG_7) lib/libutil gr_util.c Log: MFC: Add four utility functions related to struct grp processing modeled in-part after similar calls related to struct pwd in libutil/pw_util.c: - gr_equal() Perform a deep comparison of two struct grp's. It does a thorough, yet unoptimized comparison of all the members regardless of order. - gr_make() Create a string (see group(5)) from a struct grp. - gr_dup() Duplicate a struct grp. Returns a value that is a single contiguous block of memory. - gr_scan() Create a struct grp from a string (as produced by gr_make()). src/lib/libutil/Makefile: rev 1.66 -> 1.67 src/lib/libutil/gr_util.c: rev 0 -> 1.1 src/lib/libutil/libutil.h: rev 1.46 -> 1.47 Revision Changes Path 1.66.2.1 +1 -1 src/lib/libutil/Makefile 1.1.2.1 +234 -0 src/lib/libutil/gr_util.c (new) 1.45.2.1 +7 -0 src/lib/libutil/libutil.h