1 #define _XOPEN_SOURCE_EXTENDED
12 #if !defined __ARCH_USE_MMU__
16 int main(int argc, char *argv[]) {
19 char template[] = "/tmp/test-mkostemp.XXXXXX";
21 fd = mkostemp(template, O_CLOEXEC);
24 snprintf(buff, 5, "%d", fd);
27 if(execl("./test-mkostemp-child", "test-mkostemp-child", buff, NULL) == -1)
33 lseek(fd, 0, SEEK_SET);
35 if(read(fd, buff, 5) == -1)
38 if(!strncmp(buff, "test", 5))