#include #include #include #include #include #include static char *str1 = "OP1\n"; static char *str2 = "AB2\n"; int main() { int f1; f1 = open ("mytmp", O_RDWR | O_CREAT, 0777); if (fork() == 0) { write(f1, str1, strlen(str1)); } else { write(f1, str2, strlen(str2)); } return 0; }