cvs commit: src/lib/libutil Makefile gr_util.c libutil.h
Sean Farley
scf at FreeBSD.org
Fri May 16 02:07:57 UTC 2008
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
More information about the cvs-src
mailing list