WIP - ATA devices

This commit is contained in:
thomas committed 2017-03-27 23:09:10 +02:00
1 parent 4bb9021885
commit 8671007f19
5 files changed
+260 -25

No files matched your search

-23
View File
@@ -8,29 +8,6 @@ int main(int argc, char **argv)
(void) argv;
int fd[2];
pipe(fd);
pid_t childpid = fork();
if(childpid)
{
printf("I am parent!\n");
close(fd[1]);
write(fd[0], "Hi, pipe!\n", 10);
close(fd[0]);
}
else
{
printf("I am child!\n");
close(fd[0]);
char buffer[255];
read(fd[1], buffer, 255);
printf("Received string: %s\n", buffer);
close(fd[1]);
}
for(;;);
return 0;
}