7 const char test_name[] = "child-syn-wrt";
12 main (int argc, char *argv[])
19 CHECK (argc == 2, "argc must be 2, actually %d", argc);
20 child_idx = atoi (argv[1]);
23 random_bytes (buf, sizeof buf);
25 CHECK ((fd = open (filename)) > 1, "open \"%s\"", filename);
26 seek (fd, CHUNK_SIZE * child_idx);
27 CHECK (write (fd, buf + CHUNK_SIZE * child_idx, CHUNK_SIZE) > 0,
28 "write \"%s\"", filename);
29 msg ("close \"%s\"", filename);