home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    

3.2.53 getnetent

getnetent
setnetent 

STAYOPEN


endnetent

These functions do the same thing as their like-named system library routines - see getnetent (3). They iterate through your /etc/networks file, or moral equivalent. The return value in list context is:

($name, $aliases, $addrtype, $net)

In scalar context, getnetent returns only the network name.











??????????????@Mail.ru