src/commands/simple/readall.c File Reference

#include <sys/types.h>
#include <sys/ioc_disk.h>
#include <minix/partition.h>
#include <minix/u64.h>
#include <time.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>

Go to the source code of this file.

Defines

#define CHUNK   25
#define BLOCK_SIZE   1024
#define RESUME   200
#define DIVISOR   1000
#define STORE   4096
#define WIDTH   77

Functions

 _PROTOTYPE (int main,(int argc, char **argv))
void prettyprogress (long b, long nblocks, time_t starttime)
int main (int argc, argv)

Variables

int chunk = CHUNK
long goodies
long errors
int normal = 1
int total = 0
char * name
char a [CHUNK *BLOCK_SIZE]
long rotten [STORE]


Define Documentation

#define BLOCK_SIZE   1024

Definition at line 29 of file readall.c.

#define CHUNK   25

Definition at line 28 of file readall.c.

#define DIVISOR   1000

Definition at line 31 of file readall.c.

#define RESUME   200

Definition at line 30 of file readall.c.

#define STORE   4096

Definition at line 32 of file readall.c.

#define WIDTH   77


Function Documentation

_PROTOTYPE ( int  main,
(int argc, char **argv)   
)

int main ( int argc  ,
argv   
)

Definition at line 81 of file readall.c.

void prettyprogress ( long  b,
long  nblocks,
time_t  starttime 
)

Definition at line 51 of file readall.c.


Variable Documentation

char a[CHUNK *BLOCK_SIZE]

Definition at line 41 of file readall.c.

int chunk = CHUNK

Definition at line 34 of file readall.c.

long errors

Definition at line 36 of file readall.c.

long goodies

Definition at line 35 of file readall.c.

char* name

Definition at line 39 of file readall.c.

int normal = 1

Definition at line 37 of file readall.c.

long rotten[STORE]

Definition at line 42 of file readall.c.

int total = 0

Definition at line 38 of file readall.c.


Generated on Tue Mar 9 04:36:42 2010 for Minix by  doxygen 1.5.8