Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Functions
os.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  IoMethod
struct  OsFile

Defines

#define OS_OTHER   0
#define OS_WIN   0
#define OS_UNIX   1
#define OS_OS2   0
#define OS_BEOS   0
#define SQLITE_TEMPNAME_SIZE   200
#define SET_FULLSYNC(x, y)
#define TEMP_FILE_PREFIX   "sqlite_"
#define sqlite3OsOpenReadWrite   sqlite3UnixOpenReadWrite
#define sqlite3OsOpenExclusive   sqlite3UnixOpenExclusive
#define sqlite3OsOpenReadOnly   sqlite3UnixOpenReadOnly
#define sqlite3OsDelete   sqlite3UnixDelete
#define sqlite3OsFileExists   sqlite3UnixFileExists
#define sqlite3OsFullPathname   sqlite3UnixFullPathname
#define sqlite3OsIsDirWritable   sqlite3UnixIsDirWritable
#define sqlite3OsSyncDirectory   sqlite3UnixSyncDirectory
#define sqlite3OsTempFileName   sqlite3UnixTempFileName
#define sqlite3OsRandomSeed   sqlite3UnixRandomSeed
#define sqlite3OsSleep   sqlite3UnixSleep
#define sqlite3OsCurrentTime   sqlite3UnixCurrentTime
#define sqlite3OsEnterMutex   sqlite3UnixEnterMutex
#define sqlite3OsLeaveMutex   sqlite3UnixLeaveMutex
#define sqlite3OsInMutex   sqlite3UnixInMutex
#define sqlite3OsThreadSpecificData   sqlite3UnixThreadSpecificData
#define sqlite3OsMalloc   sqlite3GenericMalloc
#define sqlite3OsRealloc   sqlite3GenericRealloc
#define sqlite3OsFree   sqlite3GenericFree
#define sqlite3OsAllocationSize   sqlite3GenericAllocationSize
#define NO_LOCK   0
#define SHARED_LOCK   1
#define RESERVED_LOCK   2
#define PENDING_LOCK   3
#define EXCLUSIVE_LOCK   4
#define PENDING_BYTE   0x40000000 /* First byte past the 1GB boundary */
#define RESERVED_BYTE   (PENDING_BYTE+1)
#define SHARED_FIRST   (PENDING_BYTE+2)
#define SHARED_SIZE   510

Typedefs

typedef struct OsFile
typedef struct IoMethod

Functions

int sqlite3OsClose (OsFile **)
int sqlite3OsOpenDirectory (OsFile *, const char *)
int sqlite3OsRead (OsFile *, void *, int amt)
int sqlite3OsWrite (OsFile *, const void *, int amt)
int sqlite3OsSeek (OsFile *, i64 offset)
int sqlite3OsTruncate (OsFile *, i64 size)
int sqlite3OsSync (OsFile *, int)
void sqlite3OsSetFullSync (OsFile *id, int setting)
int sqlite3OsFileHandle (OsFile *id)
int sqlite3OsFileSize (OsFile *, i64 *pSize)
int sqlite3OsLock (OsFile *, int)
int sqlite3OsUnlock (OsFile *, int)
int sqlite3OsLockState (OsFile *id)
int sqlite3OsCheckReservedLock (OsFile *id)
int sqlite3OsOpenReadWrite (const char *, OsFile **, int *)
int sqlite3OsOpenExclusive (const char *, OsFile **, int)
int sqlite3OsOpenReadOnly (const char *, OsFile **)
int sqlite3OsDelete (const char *)
int sqlite3OsFileExists (const char *)
char * sqlite3OsFullPathname (const char *)
int sqlite3OsIsDirWritable (char *)
int sqlite3OsSyncDirectory (const char *)
int sqlite3OsTempFileName (char *)
int sqlite3OsRandomSeed (char *)
int sqlite3OsSleep (int ms)
int sqlite3OsCurrentTime (double *)
void sqlite3OsEnterMutex (void)
void sqlite3OsLeaveMutex (void)
int sqlite3OsInMutex (int)
ThreadDatasqlite3OsThreadSpecificData (int)
voidsqlite3OsMalloc (int)
voidsqlite3OsRealloc (void *, int)
void sqlite3OsFree (void *)
int sqlite3OsAllocationSize (void *)

Define Documentation

Definition at line 260 of file os.h.

#define NO_LOCK   0

Definition at line 256 of file os.h.

#define OS_BEOS   0

Definition at line 46 of file os.h.

#define OS_OS2   0

Definition at line 45 of file os.h.

#define OS_OTHER   0

Definition at line 25 of file os.h.

#define OS_UNIX   1

Definition at line 44 of file os.h.

#define OS_WIN   0

Definition at line 43 of file os.h.

#define PENDING_BYTE   0x40000000 /* First byte past the 1GB boundary */

Definition at line 320 of file os.h.

Definition at line 259 of file os.h.

Definition at line 326 of file os.h.

Definition at line 258 of file os.h.

#define SET_FULLSYNC (   x,
  y 
)

Definition at line 81 of file os.h.

Definition at line 327 of file os.h.

Definition at line 257 of file os.h.

#define SHARED_SIZE   510

Definition at line 328 of file os.h.

Definition at line 120 of file os.h.

Definition at line 112 of file os.h.

Definition at line 104 of file os.h.

Definition at line 113 of file os.h.

Definition at line 105 of file os.h.

Definition at line 119 of file os.h.

Definition at line 106 of file os.h.

Definition at line 115 of file os.h.

Definition at line 107 of file os.h.

Definition at line 114 of file os.h.

Definition at line 117 of file os.h.

Definition at line 102 of file os.h.

Definition at line 103 of file os.h.

Definition at line 101 of file os.h.

Definition at line 110 of file os.h.

Definition at line 118 of file os.h.

Definition at line 111 of file os.h.

Definition at line 108 of file os.h.

Definition at line 109 of file os.h.

Definition at line 116 of file os.h.

Definition at line 74 of file os.h.

#define TEMP_FILE_PREFIX   "sqlite_"

Definition at line 94 of file os.h.


Typedef Documentation

typedef struct IoMethod

Definition at line 204 of file os.h.

typedef struct OsFile

Definition at line 203 of file os.h.


Function Documentation

Definition at line 75 of file os.c.

                                          {
  return id->pMethod->xCheckReservedLock(id);
}

Here is the caller graph for this function:

Definition at line 26 of file os.c.

                                {
  OsFile *id;
  if( pId!=0 && (id = *pId)!=0 ){
    return id->pMethod->xClose(pId);
  }else{
    return SQLITE_OK;
  }
}

Here is the caller graph for this function:

int sqlite3OsCurrentTime ( double *  )

Here is the caller graph for this function:

int sqlite3OsDelete ( const char *  )

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

int sqlite3OsFileSize ( OsFile ,
i64 pSize 
)

Definition at line 63 of file os.c.

                                             {
  return id->pMethod->xFileSize(id, pSize);
}

Here is the caller graph for this function:

Here is the caller graph for this function:

char* sqlite3OsFullPathname ( const char *  )

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

int sqlite3OsLock ( OsFile ,
int   
)

Definition at line 66 of file os.c.

                                           {
  return id->pMethod->xLock(id, lockType);
}

Here is the caller graph for this function:

Definition at line 72 of file os.c.

                                  {
  return id->pMethod->xLockState(id);
}

Here is the caller graph for this function:

int sqlite3OsOpenDirectory ( OsFile ,
const char *   
)

Definition at line 34 of file os.c.

                                                         {
  return id->pMethod->xOpenDirectory(id, zName);
}

Here is the caller graph for this function:

int sqlite3OsOpenExclusive ( const char *  ,
OsFile **  ,
int   
)

Here is the caller graph for this function:

int sqlite3OsOpenReadOnly ( const char *  ,
OsFile **   
)

Here is the caller graph for this function:

int sqlite3OsOpenReadWrite ( const char *  ,
OsFile **  ,
int  
)

Here is the caller graph for this function:

int sqlite3OsRandomSeed ( char *  )

Here is the caller graph for this function:

int sqlite3OsRead ( OsFile ,
void ,
int  amt 
)

Definition at line 37 of file os.c.

                                                  {
  return id->pMethod->xRead(id, pBuf, amt);
}

Here is the caller graph for this function:

void* sqlite3OsRealloc ( void ,
int   
)
int sqlite3OsSeek ( OsFile ,
i64  offset 
)

Definition at line 43 of file os.c.

                                         {
  return id->pMethod->xSeek(id, offset);
}

Here is the caller graph for this function:

void sqlite3OsSetFullSync ( OsFile id,
int  setting 
)

Definition at line 52 of file os.c.

                                                {
  id->pMethod->xSetFullSync(id, value);
}

Here is the caller graph for this function:

Here is the caller graph for this function:

int sqlite3OsSync ( OsFile ,
int   
)

Definition at line 49 of file os.c.

                                           {
  return id->pMethod->xSync(id, fullsync);
}

Here is the caller graph for this function:

Here is the caller graph for this function:

int sqlite3OsTempFileName ( char *  )

Here is the caller graph for this function:

Here is the caller graph for this function:

int sqlite3OsTruncate ( OsFile ,
i64  size 
)

Definition at line 46 of file os.c.

                                           {
  return id->pMethod->xTruncate(id, size);
}

Here is the caller graph for this function:

int sqlite3OsUnlock ( OsFile ,
int   
)

Definition at line 69 of file os.c.

                                             {
  return id->pMethod->xUnlock(id, lockType);
}

Here is the caller graph for this function:

int sqlite3OsWrite ( OsFile ,
const void ,
int  amt 
)

Definition at line 40 of file os.c.

                                                         {
  return id->pMethod->xWrite(id, pBuf, amt);
}

Here is the caller graph for this function: