7 const char test_name[] = "syn-rw";
16 pid_t children[CHILD_CNT];
20 CHECK (create (filename, 0), "create \"%s\"", filename);
21 CHECK ((fd = open (filename)) > 1, "open \"%s\"", filename);
23 exec_children ("child-syn-rw", children, CHILD_CNT);
25 random_bytes (buf, sizeof buf);
27 for (ofs = 0; ofs < BUF_SIZE; ofs += CHUNK_SIZE)
28 CHECK (write (fd, buf + ofs, CHUNK_SIZE) > 0,
29 "write %d bytes at offset %zu in \"%s\"",
30 (int) CHUNK_SIZE, ofs, filename);
33 wait_children (children, CHILD_CNT);