FreeBSD/usr.sbin/jail/config.c
/*
 * Create a new jail record.
 */
Create a new jail record.
Create a new jail record .
struct cfjail *
add_jail(void)
{
	struct cfjail *j;
	j = emalloc(sizeof(struct cfjail));
	memset(j, 0, sizeof(struct cfjail));
	TAILQ_INIT(&j->params);
	STAILQ_INIT(&j->dep[DEP_FROM]);
	STAILQ_INIT(&j->dep[DEP_TO]);
	j->queue = &cfjails;
	TAILQ_INSERT_TAIL(&cfjails, j, tq);
	return j;
}
struct cfjail * add_jail ( void ) { struct cfjail * j ; j = emalloc ( sizeof ( struct cfjail ) ) ; memset ( j , 0 , sizeof ( struct cfjail ) ) ; TAILQ_INIT ( & j -> params ) ; STAILQ_INIT ( & j -> dep [ DEP_FROM ] ) ; STAILQ_INIT ( & j -> dep [ DEP_TO ] ) ; j -> queue = & cfjails ; TAILQ_INSERT_TAIL ( & cfjails , j , tq ) ; return j ; }
Create a new jail record.
Create a new jail record .