Skip to content

Commit 06a6d59

Browse files
authored
Add files via upload
1 parent 6a76bf6 commit 06a6d59

20 files changed

Lines changed: 637 additions & 0 deletions

LIBS/BLOCKADE/ALLSTDS.H

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#include <stdio.h>
2+
#include <stdarg.h>
3+
#include <stddef.h>
4+
#include <stdlib.h>
5+
#include <string.h>
6+
#include <ctype.h>
7+
#include <time.h>
8+

LIBS/BLOCKADE/BLKADE1.C

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
/*---------------------------------------------------------------------*/
3+
/* Contains messages corresponding to the error codes returned */
4+
/* by blockade() & calc_crc_file(). */
5+
/* */
6+
/* Returns a read only pointer to the appropriate message. */
7+
/* */
8+
/* */
9+
/*---------------------------------------------------------------------*/
10+
11+
char * get_blk_err_msg(int num)
12+
{
13+
char *sp;
14+
static char *blk_err_msgs[] = {
15+
"No error", /* 0 */
16+
"No memory for buffer", /* 1 */
17+
"Error opening file", /* 2 */
18+
"No memory for file buffering",
19+
"File buffering failure", /* 4 */
20+
"Fseek error",
21+
"Error reading data block", /* 6 */
22+
"Invalid data block info",
23+
"Error reading file", /* 8 */
24+
"Error reading file", /* 9 */
25+
"Error reading file", /* 10 */
26+
"Check Value error", /* 11 */
27+
"File size error", /* 12 */
28+
"Invalid error number" }; /* 13 */
29+
30+
if (num == -1) num = 11;
31+
if (num == -2) num = 12;
32+
if ((num < 0) || (num > 12)) num = 13; /* out of range */
33+
sp = blk_err_msgs[num];
34+
return(sp);
35+
}
36+
37+
/*---------------------------------------------------------------------*/

LIBS/BLOCKADE/BLKDMOBL.LIB

5.31 KB
Binary file not shown.

LIBS/BLOCKADE/BLKDMOBS.LIB

4.81 KB
Binary file not shown.

LIBS/BLOCKADE/BLKDMOML.LIB

4.53 KB
Binary file not shown.

LIBS/BLOCKADE/BLKDMOMS.LIB

4.03 KB
Binary file not shown.

LIBS/BLOCKADE/BLKDMOTL.LIB

4.81 KB
Binary file not shown.

LIBS/BLOCKADE/BLKDMOTS.LIB

4.81 KB
Binary file not shown.

LIBS/BLOCKADE/BLKPROTO.H

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
3+
#ifndef Blk_Protos_Loaded
4+
#define Blk_Protos_Loaded
5+
6+
/* -------- blkade.c -------- */
7+
8+
int blockade( char *filename, size_t bufsize);
9+
int calc_crc_file( char *filename, long offset, size_t bufsize, long *crcptr);
10+
long blk_fsize( FILE *);
11+
12+
/* ------ chkblk.c ------ */
13+
14+
unsigned long chkblk(char *buffer, int size, unsigned long init);
15+
16+
/* ------ blkade1.c ------ */
17+
18+
char *get_blk_err_msg( int );
19+
20+
/* ------ blkade2.c ------ */
21+
22+
unsigned long chksum8( char *, int , unsigned long);
23+
24+
/* ------ blkade3.c ------ */
25+
26+
unsigned long chksum32( char *, int , unsigned long);
27+
28+
/* ------ blkade4.c ------ */
29+
30+
unsigned long crc32(char *buffer, int size, unsigned long init);
31+
int showcrc( long crc);
32+
33+
/* ------ end ------ */
34+
#endif
35+

0 commit comments

Comments
 (0)