WIP - ATA devices

This commit is contained in:
2017-03-15 08:57:00 +01:00
parent 4bb9021885
commit 8671007f19
5 changed files with 260 additions and 25 deletions

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;
}