NetBurner 3.0
SSH/SshServerUserKey/FileSystemUtils.h
1 /* Revision: 2.8.7 */
2 
3 /******************************************************************************
4 * Copyright 1998-2018 NetBurner, Inc. ALL RIGHTS RESERVED
5 *
6 * Permission is hereby granted to purchasers of NetBurner Hardware to use or
7 * modify this computer program for any use as long as the resultant program
8 * is only executed on NetBurner provided hardware.
9 *
10 * No other rights to use this program or its derivatives in part or in
11 * whole are granted.
12 *
13 * It may be possible to license this or other NetBurner software for use on
14 * non-NetBurner Hardware. Contact sales@Netburner.com for more information.
15 *
16 * NetBurner makes no representation or warranties with respect to the
17 * performance of this computer program, and specifically disclaims any
18 * responsibility for any damages, special or consequential, connected with
19 * the use of this program.
20 *
21 * NetBurner
22 * 5405 Morehouse Dr.
23 * San Diego, CA 92121
24 * www.netburner.com
25 ******************************************************************************/
26 
27 #ifndef _FILESYSUTIL_H
28 #define _FILESYSUTIL_H
29 
30 #include <effs_fat/fat.h>
31 
32 #define MAX_EFFS_ERRORCODE ( 38 )
33 extern char EffsErrorCode[][80];
34 
35 
36 #ifdef __cplusplus
37 extern "C"
38 {
39 #endif
40 
41 
42 void DisplayEffsErrorCode( int code );
43 BYTE FormatEffsStdFlash();
44 BYTE DisplayEffsSpaceStats();
45 BYTE DumpDir();
46 DWORD WriteFile( BYTE* pDataToWrite, char* pFileName, DWORD NumBytes );
47 DWORD AppendFile( BYTE* pDataToWrite, char* pFileName, DWORD NumBytes );
48 DWORD ReadFile( BYTE* pReadBuffer, char* pFileName, DWORD NumBytes );
49 BYTE DeleteFile( char* pFileName );
50 void ReadWriteTest();
51 void DisplayTextFile( char *FileName );
52 void fgets_test( char *FileName );
53 void fprintf_test();
54 void fputs_test( char *FileName );
55 
56 
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 
63 #endif