Lines Matching refs:result
33 int result = gethostname(cbuf, sizeof(cbuf));
34 if (result != 0) {
35 t_error("%s failed: result = %d\n", __func__, result);
39 result = sethostname(name, strlen(name));
40 if (result != 0) {
41 t_error("%s failed: result = %d\n", __func__, result);
46 result = gethostname(buf, sizeof(buf));
47 if (result != 0) {
48 t_error("%s failed: result = %d\n", __func__, result);
56 result = sethostname(cbuf, strlen(cbuf));
57 if (result != 0) {
58 t_error("%s failed: result = %d\n", __func__, result);
72 int result = gethostname(cbuf, sizeof(cbuf));
73 if (result != 0) {
74 t_error("%s failed: result = %d\n", __func__, result);
78 result = sethostname(NULL, 0);
79 if (result != 0) {
80 t_error("%s failed: result = %d\n", __func__, result);
85 result = gethostname(buf, sizeof(buf));
86 if (result != 0) {
87 t_error("%s failed: result = %d\n", __func__, result);
95 result = sethostname(cbuf, strlen(cbuf));
96 if (result != 0) {
97 t_error("%s failed: result = %d\n", __func__, result);
109 int result = sethostname(NULL, -1);
110 if (result == 0) {
111 t_error("%s failed: result = %d\n", __func__, result);