home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / bsd / 5123 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  847 b 

  1. Xref: sparky comp.unix.bsd:5123 comp.protocols.tcp-ip:4301
  2. Newsgroups: comp.unix.bsd,comp.protocols.tcp-ip
  3. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!mstar!mstar!bob
  4. From: bob@MorningStar.Com (Bob Sutterfield)
  5. Subject: getnetmaskent()?
  6. Message-ID: <BOB.92Sep4120430@volitans.MorningStar.Com>
  7. Sender: news@MorningStar.Com
  8. Nntp-Posting-Host: volitans.morningstar.com
  9. Organization: Morning Star Technologies
  10. Date: Fri, 4 Sep 1992 16:04:38 GMT
  11. Lines: 7
  12.  
  13. BSD's getnetent() family of routines works with the contents of
  14. /etc/networks.  Is there a similar getnetmaskent() family for the
  15. information contained in /etc/netmasks?  I note that the Tahoe (or is
  16. it Reno?) <netdb.h> has no mention of a subnet mask, nor of a file
  17. where it might be found.
  18.  
  19. Must I actually open() the file and parse it myself?  How barbaric! :-)
  20.