CS318 - Pintos
Pintos source browser for JHU CS318 course
Functions | Variables
cksum.c File Reference
#include <stdint.h>
#include "tests/cksum.h"
Include dependency graph for cksum.c:

Go to the source code of this file.

Functions

unsigned long cksum (const void *b_, size_t n)
 This is the algorithm used by the Posix ‘cksum’ utility. More...
 

Variables

static unsigned long crctab []
 crctab[] and cksum() are from the ‘cksum’ entry in SUSv3. More...
 

Function Documentation

◆ cksum()

unsigned long cksum ( const void *  b_,
size_t  n 
)

This is the algorithm used by the Posix ‘cksum’ utility.

tests/cksum.h

Definition at line 63 of file cksum.c.

References crctab, and s.

Referenced by test_main().

Here is the caller graph for this function:

Variable Documentation

◆ crctab

unsigned long crctab[]
static

crctab[] and cksum() are from the ‘cksum’ entry in SUSv3.

Definition at line 6 of file cksum.c.

Referenced by cksum().