Date: Fri, 16 May 2008 02:07:57 +0000 (UTC) From: Sean Farley <scf@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libutil Makefile gr_util.c libutil.h Message-ID: <200805160207.m4G27vIW039943@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805160207.m4G27vIW039943>