$ man 2 stat
./code48 /etc/passwd /etc /dev/initctl /dev/log /dev/tty \ /dev/sda1 /dev/cdrom
-rw------- 1 ozdogan ozdogan 0 May 8 02:27 foo -rw-rw-rw- 1 ozdogan ozdogan 0 May 8 02:27 barby using touch and chmod commands.
$./code49
$ gcc -c code52.c $ gcc -c code51.c $ gcc -o code50 code50.c code51.o code52.o $ ./code50 . $ ./code50 ..also try with different paths.
$ man nftw
$dd if=/dev/zero of=inputfile bs=8K count=100
100+0 records in 100+0 records out 819200 bytes (819 kB) copied, 0.010789 seconds, 75.9 MB/s
$ time code53 < inputfile > outputfile
BUFFSIZE (byte) | User CPU (sec) | System CPU (sec) | Clock Time (sec) | # of loops |
1 | ||||
2 | ||||
4 | ||||
8 | ||||
16 | ||||
32 | ||||
64 | ||||
128 | ||||
256 | ||||
512 | ||||
1024 | ||||
2048 | ||||
4096 | ||||
8192 | ||||
16384 | ||||
32768 | ||||
65536 | ||||
131072 |
Cem Ozdogan 2010-05-11