The attached patch adds support for fgetgrent; which is basically a version of getgrent that expects you to open the right file yourself. The main use is software for administering multiple systems; I added it to compile heirloom-pkgtools, which provide that functionality. One could redefine getgrent to call __fgetgrent, but I was more eager to get the software at the time. -- Isaac Dunham