FreeBSD/contrib/ntp/ntpd/ntp_io.c
/*
 * Add and delete functions for the list of open sockets
 */
Add and delete functions for the list of open sockets
Add and delete functions for the list of open sockets
static void
add_fd_to_list(
	SOCKET fd,
	enum desc_type type
	)
{
	vsock_t *lsock = emalloc(sizeof(*lsock));
	lsock->fd = fd;
	lsock->type = type;
	LINK_SLIST(fd_list, lsock, link);
	maintain_activefds(fd, 0);
}
static void add_fd_to_list ( SOCKET fd , enum desc_type type ) { vsock_t * lsock = emalloc ( sizeof ( * lsock ) ) ; lsock -> fd = fd ; lsock -> type = type ; LINK_SLIST ( fd_list , lsock , link ) ; maintain_activefds ( fd , 0 ) ; }
Add and delete functions for the list of open sockets
Add and delete functions for the list of open sockets