Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!ginosko!brutus.cs.uiuc.edu!apple!dchen From: dchen@Apple.COM (Dennis Chen) Newsgroups: comp.unix.aux Subject: Re: Where is fgetpwent? Keywords: fgetpwent fgetgrent getpwent getgrent passwd group Message-ID: <35139@apple.Apple.COM> Date: 30 Sep 89 00:53:05 GMT References: <14126@shamash.cdc.com> Organization: Apple Computer Inc, Cupertino, CA Lines: 20 In article <14126@shamash.cdc.com> jdh@shamash.cdc.com (Jeff Holmbeck) writes: >Has anyone else run into this problem? I am programming on AUX 1.1 and >want to read local passwd and group files. According to the Programmer's >Reference Manual, fgetpwent(3) and fgetgrent(3) are available to do >this. However, if I try to compile a program with these functions, cc >issues an ld error message claiming fgetpwent and fgetgrent are >undefined. The functions getpwent(3) and getgrent(3) which read the >system passwd and group files work fine. > >Any insight would be appreciated. Thanks. > >Jeff Holmbeck >Control Data Corporation There seems was a name misuse on the fgetpwent() function in the getpwlocal.o module of /lib/libc.a in A/UX 1.1. The work around for this is to use local_fgetpwent() instead of fgetpwent() Dennis Chen Apple Computer, Inc.