RTEMS 6.3
Loading...
Searching...
No Matches

Header file for TFS transactions, used by both application and monnitor. More...

Go to the source code of this file.

Data Structures

struct  tfshdr

Macros

#define TFSINFOSIZE   23
#define TFSNAMESIZE   23
#define TFS_CHANGELOG_SIZE   0
#define TFS_CHANGELOG_FILE   ".tfschlog"
#define SYMFILE   "symtbl"
#define MINUSRLEVEL   0
#define MAXUSRLEVEL   3
#define TFS_RESERVED   4
#define TFS_EXEC   0x00000001
#define TFS_BRUN   0x00000002
#define TFS_QRYBRUN   0x00000004
#define TFS_SYMLINK   0x00000008
#define TFS_EBIN   0x00000010
#define TFS_CPRS   0x00000040
#define TFS_IPMOD   0x00000080
#define TFS_UNREAD   0x00000100
#define TFS_ULVLMSK   0x00000600
#define TFS_ULVL0   0x00000000
#define TFS_ULVL1   0x00000200
#define TFS_ULVL2   0x00000400
#define TFS_ULVL3   0x00000600
#define TFS_NSTALE   0x00000800
#define TFS_ACTIVE   0x00008000
#define TFS_ULVLMAX   TFS_ULVL3
#define TFS_USRLVL(f)
#define TFS_RDONLY   0x00010000
#define TFS_CREATE   0x00020000
#define TFS_APPEND   0x00040000
#define TFS_ALLFFS   0x00080000
#define TFS_CREATERM   0x00100000
#define TFS_RCFILE   "monrc"
#define TFS_ERRMSG   1
#define TFS_MEMUSE   2
#define TFS_MEMDEAD   3
#define TFS_DEFRAG   4
#define TFS_TELL   5
#define TFS_UNOPEN   7
#define TFS_FATOB   8
#define TFS_FBTOA   9
#define TFS_MEMAVAIL   10
#define TFS_TIMEFUNCS   11
#define TFS_DOCOMMAND   12
#define TFS_INITDEV   13
#define TFS_CHECKDEV   14
#define TFS_DEFRAGDEV   15
#define TFS_DEFRAGOFF   16
#define TFS_DEFRAGON   17
#define TFS_HEADROOM   18
#define TFS_FCOUNT   19
#define TFSHDRSIZ   sizeof(struct tfshdr)
#define TFS_OKAY   0
#define TFSERR_NOFILE   -1
#define TFSERR_NOSLOT   -2
#define TFSERR_EOF   -3
#define TFSERR_BADARG   -4
#define TFSERR_NOTEXEC   -5
#define TFSERR_BADCRC   -6
#define TFSERR_FILEEXISTS   -7
#define TFSERR_FLASHFAILURE   -8
#define TFSERR_WRITEMAX   -9
#define TFSERR_RDONLY   -10
#define TFSERR_BADFD   -11
#define TFSERR_BADHDR   -12
#define TFSERR_CORRUPT   -13
#define TFSERR_MEMFAIL   -14
#define TFSERR_NOTIPMOD   -16
#define TFSERR_MUTEXFAILURE   -17
#define TFSERR_FLASHFULL   -18
#define TFSERR_USERDENIED   -19
#define TFSERR_NAMETOOBIG   -20
#define TFSERR_FILEINUSE   -21
#define TFSERR_NOTCPRS   -22
#define TFSERR_NOTAVAILABLE   -23
#define TFSERR_BADFLAG   -24
#define TFSERR_CLEANOFF   -25
#define TFSERR_FLAKEYSOURCE   -26
#define TFSERR_BADEXTENSION   -27
#define TFSERR_MIN   -100
#define TFS_BEGIN   1
#define TFS_CURRENT   2
#define TFS_END   3
#define TFS_DELETED(fp)
#define TFS_FILEEXISTS(fp)
#define TFS_ISCPRS(fp)
#define TFS_ISEXEC(fp)
#define TFS_ISBOOT(fp)
#define TFS_ISLINK(fp)
#define TFS_STALE(fp)
#define TFS_FLAGS(fp)
#define TFS_NAME(fp)
#define TFS_SIZE(fp)
#define TFS_TIME(fp)
#define TFS_INFO(fp)
#define TFS_NEXT(fp)
#define TFS_CRC(fp)
#define TFS_ENTRY(fp)
#define TFS_BASE(fp)

Typedefs

typedef struct tfshdr TFILE

Detailed Description

Header file for TFS transactions, used by both application and monnitor.

Macro Definition Documentation

◆ TFS_BASE

#define TFS_BASE ( fp)
Value:
((char *)(fp)+(fp)->hdrsize)
#define fp
frame-pointer *‍/
Definition regs.h:65

◆ TFS_CRC

#define TFS_CRC ( fp)
Value:
((fp)->filcrc)

◆ TFS_DELETED

#define TFS_DELETED ( fp)
Value:
(!((fp)->flags & TFS_ACTIVE))

◆ TFS_ENTRY

#define TFS_ENTRY ( fp)
Value:
((fp)->entry)

◆ TFS_FILEEXISTS

#define TFS_FILEEXISTS ( fp)
Value:
((fp)->flags & TFS_ACTIVE)

◆ TFS_FLAGS

#define TFS_FLAGS ( fp)
Value:
((fp)->flags)

◆ TFS_INFO

#define TFS_INFO ( fp)
Value:
((fp)->info)

◆ TFS_ISBOOT

#define TFS_ISBOOT ( fp)
Value:
((fp)->flags & TFS_BRUN)

◆ TFS_ISCPRS

#define TFS_ISCPRS ( fp)
Value:
((fp)->flags & TFS_CPRS)

◆ TFS_ISEXEC

#define TFS_ISEXEC ( fp)
Value:
((fp)->flags & TFS_EXEC)

◆ TFS_ISLINK

#define TFS_ISLINK ( fp)
Value:
((fp)->flags & TFS_SYMLINK)

◆ TFS_NAME

#define TFS_NAME ( fp)
Value:
((fp)->name)

◆ TFS_NEXT

#define TFS_NEXT ( fp)
Value:
((fp)->next)

◆ TFS_SIZE

#define TFS_SIZE ( fp)
Value:
((fp)->filsize)

◆ TFS_STALE

#define TFS_STALE ( fp)
Value:
(!((fp)->flags & TFS_NSTALE))

◆ TFS_TIME

#define TFS_TIME ( fp)
Value:
((fp)->modtime)

◆ TFS_USRLVL

#define TFS_USRLVL ( f)
Value:
((f->flags & TFS_ULVLMSK) >> 9)