日期:2014-05-16 浏览次数:20651 次
int ret; if((ret = getaddrinfo(host_name, "nfs", &hint, &ailist)) != 0) { fprintf(stderr, "getaddrinfo error: %s\n", (gai_strerror(ret)); return -1; }