8 const char test_name[] = "syn-write";
16 pid_t children[CHILD_CNT];
19 CHECK (create (filename, sizeof buf1), "create \"%s\"", filename);
21 exec_children ("child-syn-wrt", children, CHILD_CNT);
22 join_children (children, CHILD_CNT);
24 CHECK ((fd = open (filename)) > 1, "open \"%s\"", filename);
25 CHECK (read (fd, buf1, sizeof buf1) > 0, "read \"%s\"", filename);
26 random_bytes (buf2, sizeof buf2);
27 compare_bytes (buf1, buf2, sizeof buf1, 0, filename);