Lines Matching refs:write
29 int r = write(fd, tmp, sizeof(tmp));
88 // write server, read client
89 ASSERT_EQ(write(ps, "xyzzy", 5), 5, "");
97 // write client, read server
98 ASSERT_EQ(write(pc, "xyzzy", 5), 5, "");
106 // write server until full, then drain
112 // write client until full, then drain
123 // write a ctrl-c
124 ASSERT_EQ(write(ps, "\x03", 1), 1, "");
134 // write something containing a special char
135 // should write up to and including the special char
137 ASSERT_EQ(write(ps, "hello\x03world", 11), 6, "");
161 ASSERT_EQ(write(ps, "\x03", 1), 1, "");
173 ASSERT_EQ(write(pc1, "test", 4), -1, "");
189 ASSERT_EQ(write(pc1, "test", 4), 4, "");