2 $ rm -rf temp_testdir
\r
6 < #include <unistd.h>
\r
7 < #include <stdlib.h>
\r
9 < #include <sys/types.h>
\r
10 < #include <sys/stat.h>
\r
11 < #include <fcntl.h>
\r
19 < in = open("tmp_fich",O_RDONLY|O_CREAT);
\r
21 < perror("Cannot open tmp_fich: ");
\r
24 < while ((got = read(in,&buff,2048))>0) {
\r
25 < int w = write(1,&buff,got);
\r
27 < perror("Error while writing:");
\r
32 < perror("Error while reading:");
\r
37 $ cat > delayed_cat.c
\r
39 $ gcc -Wall -o delayed_cat delayed_cat.c
\r
49 $ rm -rf temp_testdir
\r