package embox.compat.posix.net

@DefaultImpl(gethostent_with_file)
abstract module gethostent {
}

static module gethostent_with_file extends gethostent {
	option string path_to_hosts="/hosts"
	source "gethostent.c"
	@InitFS
	source "hosts"

	depends embox.compat.posix.net.inet_addr
	depends embox.compat.libc.stdio.open
	depends embox.net.util.hostent
}

static module gethostent_without_file extends gethostent {
	option string path_to_hosts="/hosts"
	source "gethostent.c"
/*
	@InitFS
	source "hosts"
*/
	depends embox.compat.posix.net.inet_addr
	depends embox.compat.libc.stdio.open
	depends embox.net.util.hostent
}
