+
+PUBLIC_FN int fnetopen(FILE **in, FILE **out, const char *node, const char *service, const struct addrinfo *hints) {
+ int fd = netopen(node, service, hints);
+ if (fd < 0) return EAI_SYSTEM;
+ int ret = fopen_bistream(in, out, fd, 0);
+ if (ret) close(fd);
+ return ret;
+}
\ No newline at end of file