Closes the /etc/services file.
Standard C Library (libc.a)
#include <netdb.h>
void endservent_r(serv_data)
struct servent_data *serv_data;
The endservent_r subroutine closes the /etc/services file, which is opend by a call made to the getservent_r subroutine, getservbyname_r subroutine, or getservbyport_r subroutine opens the /etc/services file.
| Item | Description |
|---|---|
| serv_data | Points to the servent_data structure |
endservent_r(serv_data);
| Item | Description |
|---|---|
| /etc/services | Contains service names. |