Date: Wed, 23 Apr 2008 00:49:13 +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 src/tools/regression/lib/libutil Makefile test-grp.c test-grp.t Message-ID: <200804230049.m3N0nDwb030623@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
scf 2008-04-23 00:49:13 UTC FreeBSD src repository Modified files: lib/libutil Makefile libutil.h tools/regression/lib/libutil Makefile Added files: lib/libutil gr_util.c tools/regression/lib/libutil test-grp.c test-grp.t Log: 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()). MFC after: 3 weeks Revision Changes Path 1.67 +1 -1 src/lib/libutil/Makefile 1.1 +234 -0 src/lib/libutil/gr_util.c (new) 1.47 +7 -0 src/lib/libutil/libutil.h 1.3 +1 -1 src/tools/regression/lib/libutil/Makefile 1.1 +117 -0 src/tools/regression/lib/libutil/test-grp.c (new) 1.1 +12 -0 src/tools/regression/lib/libutil/test-grp.t (new)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804230049.m3N0nDwb030623>