7 const char test_name[] = "syn-read";
9 static char buf[BUF_SIZE];
16 pid_t children[CHILD_CNT];
19 CHECK (create (filename, sizeof buf), "create \"%s\"", filename);
20 CHECK ((fd = open (filename)) > 1, "open \"%s\"", filename);
21 random_bytes (buf, sizeof buf);
22 CHECK (write (fd, buf, sizeof buf) > 0, "write \"%s\"", filename);
23 msg ("close \"%s\"", filename);
26 exec_children ("child-syn-read", children, CHILD_CNT);
27 join_children (children, CHILD_CNT);