Lines Matching refs:sethostname
53 atf_tc_set_md_var(tc, "descr", "A basic test of sethostname(3)");
76 ATF_REQUIRE(sethostname(hosts[i], sizeof(hosts[i]) - 1) == 0);
79 ATF_REQUIRE(sethostname(hosts[i], sizeof(hosts[i])) == 0);
85 (void)sethostname(host, sizeof(host));
90 (void)sethostname(host, sizeof(host));
106 ATF_REQUIRE(sethostname(name, sizeof(name)) == -1);
112 ATF_REQUIRE(sethostname(host, MAXHOSTNAMELEN - 1 ) == 0);
113 ATF_REQUIRE(sethostname(host, MAXHOSTNAMELEN) == -1);
115 (void)sethostname(host, sizeof(host));
130 ATF_REQUIRE_ERRNO(EPERM, sethostname(host, sizeof(host)) == -1);
135 (void)sethostname(host, sizeof(host));