sum.c File Reference

#include <sys/types.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <minix/minlib.h>
#include <stdio.h>

Include dependency graph for sum.c:

Go to the source code of this file.

Defines

#define BUFFER_SIZE   (512)

Functions

 _PROTOTYPE (int main,(int argc, char **argv))
 _PROTOTYPE (void error,(char *s, char *f))
 _PROTOTYPE (void sum,(int fd, char *fname))
 _PROTOTYPE (void putd,(int number, int fw, int zeros))
int main (int argc, argv)
void error (char *s, char *f)
void sum (int fd, char *fname)
void putd (int number, int fw, int zeros)

Variables

int rc = 0
char * defargv [] = {"-", 0}


Define Documentation

#define BUFFER_SIZE   (512)
 

Definition at line 21 of file sum.c.


Function Documentation

_PROTOTYPE void  putd,
(int number, int fw, int zeros) 
 

_PROTOTYPE void  sum,
(int fd, char *fname) 
 

_PROTOTYPE void  error,
(char *s, char *f
 

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

void error char *  s,
char *  f
 

Definition at line 56 of file sum.c.

References std_err().

int main int  argc,
argv 
 

Definition at line 32 of file sum.c.

References close, defargv, error, O_RDONLY, open, rc, and sum().

void putd int  number,
int  fw,
int  zeros
 

Definition at line 102 of file sum.c.

References n, and num().

void sum int  fd,
char *  fname
 

Definition at line 67 of file sum.c.

References BUFFER_SIZE, crc(), i, n, read, size, and tmp.

Referenced by _do_add(), bc_add(), bc_multiply(), burden(), checksum(), file_geom(), gf2_matrix_times(), init_geometry_boot(), ipeth_update_ttl(), main(), oneC_sum(), sum_shortname(), tcp_pack_oneCsum(), tcp_put_pkt(), uInt64_to_double(), wdeth_probe(), writebootcatalog(), and writev().


Variable Documentation

char* defargv[] = {"-", 0}
 

Definition at line 25 of file sum.c.

Referenced by main().

int rc = 0
 

Definition at line 23 of file sum.c.

Referenced by cmd_read(), do_getstat(), el3_checksum(), el3_read_StationAddress(), get_userdata(), inb(), insb(), insw(), inw(), main(), outb(), outsb(), outsw(), outw(), SimpleFileOpen(), and syslog().


Generated on Fri Apr 14 23:07:31 2006 for minix by  doxygen 1.4.6