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) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"