os_symbian.c File Reference

Go to the source code of this file.

Classes

struct  unixFile

Defines

#define SQLITE_DEFAULT_FILE_PERMISSIONS   0644
#define MAX_PATHNAME   256
#define O_LARGEFILE   0
#define O_NOFOLLOW   0
#define O_BINARY   0
#define SEP_CH   '/'
#define SEP_STR   "/"
#define fdatasync   fsync
#define HAVE_FULLFSYNC   0
#define IOMETHODS(xClose, xLock, xUnlock, xCheckReservedLock)
#define UNIXVFS(zVfsName, pVfsAppData)

Typedefs

typedef struct unixFile unixFile
typedef void nolockLockingContext

Functions

static int seekAndRead (unixFile *id, sqlite3_int64 offset, void *pBuf, int cnt)
static int unixRead (sqlite3_file *id, void *pBuf, int amt, sqlite3_int64 offset)
static int seekAndWrite (unixFile *id, i64 offset, const void *pBuf, int cnt)
static int unixWrite (sqlite3_file *id, const void *pBuf, int amt, sqlite3_int64 offset)
static int full_fsync (int fd, int fullSync, int dataOnly)
static int unixSync (sqlite3_file *id, int flags)
static int unixTruncate (sqlite3_file *id, i64 nByte)
static int unixFileSize (sqlite3_file *id, i64 *pSize)
static int closeUnixFile (sqlite3_file *id)
static int nolockCheckReservedLock (sqlite3_file *id, int *pResOut)
static int nolockLock (sqlite3_file *id, int locktype)
static int nolockUnlock (sqlite3_file *id, int locktype)
static int nolockClose (sqlite3_file *id)
static int unixFileControl (sqlite3_file *id, int op, void *pArg)
static int unixSectorSize (sqlite3_file *id)
static int unixDeviceCharacteristics (sqlite3_file *id)
static int fillInUnixFile (sqlite3_vfs *pVfs, int h, sqlite3_file *pId, const char *zFilename)
static int getTempname (int nBuf, char *zBuf)
static int unixOpen (sqlite3_vfs *pVfs, const char *zPath, sqlite3_file *pFile, int flags, int *pOutFlags)
static int unixDelete (sqlite3_vfs *pVfs, const char *zPath, int dirSync)
static int unixAccess (sqlite3_vfs *pVfs, const char *zPath, int flags, int *pResOut)
static int unixFullPathname (sqlite3_vfs *pVfs, const char *zPath, int nOut, char *zOut)
static int unixRandomness (sqlite3_vfs *pVfs, int nBuf, char *zBuf)
static int unixSleep (sqlite3_vfs *pVfs, int microseconds)
static int unixCurrentTime (sqlite3_vfs *pVfs, double *prNow)
static int unixGetLastError (sqlite3_vfs *pVfs, int nBuf, char *zBuf)
int sqlite3_os_init (void)
int sqlite3_os_end (void)

Define Documentation

#define fdatasync   fsync

Definition at line 255 of file os_symbian.c.

Referenced by full_fsync().

#define HAVE_FULLFSYNC   0

Definition at line 266 of file os_symbian.c.

Referenced by unixSync().

#define IOMETHODS ( xClose,
xLock,
xUnlock,
xCheckReservedLock   ) 
Value:
{    \
    1,                          /* iVersion */                           \
    xClose,                     /* xClose */                             \
    unixRead,                   /* xRead */                              \
    unixWrite,                  /* xWrite */                             \
    unixTruncate,               /* xTruncate */                          \
    unixSync,                   /* xSync */                              \
    unixFileSize,               /* xFileSize */                          \
    xLock,                      /* xLock */                              \
    xUnlock,                    /* xUnlock */                            \
    xCheckReservedLock,         /* xCheckReservedLock */                 \
    unixFileControl,            /* xFileControl */                       \
    unixSectorSize,             /* xSectorSize */                        \
    unixDeviceCharacteristics   /* xDeviceCapabilities */                \
  }

Referenced by fillInUnixFile().

#define MAX_PATHNAME   256

Definition at line 78 of file os_symbian.c.

Referenced by openDirectory(), unixFullPathname(), and unixOpen().

#define O_BINARY   0

Definition at line 117 of file os_symbian.c.

Referenced by openDirectory(), and unixOpen().

#define O_LARGEFILE   0

Definition at line 107 of file os_symbian.c.

Referenced by unixOpen().

#define O_NOFOLLOW   0

Definition at line 114 of file os_symbian.c.

Referenced by unixOpen().

#define SEP_CH   '/'

Definition at line 124 of file os_symbian.c.

Referenced by unixFullPathname().

#define SEP_STR   "/"

Definition at line 125 of file os_symbian.c.

Referenced by getTempname(), and unixFullPathname().

#define SQLITE_DEFAULT_FILE_PERMISSIONS   0644

Definition at line 67 of file os_symbian.c.

Referenced by unixOpen().

#define UNIXVFS ( zVfsName,
pVfsAppData   ) 
Value:
{                  \
    1,                    /* iVersion */                    \
    sizeof(unixFile),     /* szOsFile */                    \
    MAX_PATHNAME,         /* mxPathname */                  \
    0,                    /* pNext */                       \
    zVfsName,             /* zName */                       \
    (void *)pVfsAppData,  /* pAppData */                    \
    unixOpen,             /* xOpen */                       \
    unixDelete,           /* xDelete */                     \
    unixAccess,           /* xAccess */                     \
    unixFullPathname,     /* xFullPathname */               \
    unixDlOpen,           /* xDlOpen */                     \
    unixDlError,          /* xDlError */                    \
    unixDlSym,            /* xDlSym */                      \
    unixDlClose,          /* xDlClose */                    \
    unixRandomness,       /* xRandomness */                 \
    unixSleep,            /* xSleep */                      \
    unixCurrentTime,      /* xCurrentTime */                \
    unixGetLastError      /* xGetLastError */               \
  }

Referenced by sqlite3_os_init().


Typedef Documentation

typedef void nolockLockingContext

Definition at line 433 of file os_symbian.c.

typedef struct unixFile unixFile

Definition at line 85 of file os_symbian.c.


Function Documentation

static int closeUnixFile ( sqlite3_file id  )  [static]

Definition at line 417 of file os_symbian.c.

References unixFile::h, OpenCounter, OSTRACE2, and SQLITE_OK.

Referenced by nolockClose().

static int fillInUnixFile ( sqlite3_vfs pVfs,
int  h,
sqlite3_file pId,
const char *  zFilename 
) [static]
static int full_fsync ( int  fd,
int  fullSync,
int  dataOnly 
) [static]

Definition at line 281 of file os_symbian.c.

References fdatasync, and SQLITE_OK.

Referenced by unixSync().

static int getTempname ( int  nBuf,
char *  zBuf 
) [static]
static int nolockCheckReservedLock ( sqlite3_file id,
int *  pResOut 
) [static]

Definition at line 435 of file os_symbian.c.

References SQLITE_OK.

Referenced by fillInUnixFile().

static int nolockClose ( sqlite3_file id  )  [static]

Definition at line 451 of file os_symbian.c.

References closeUnixFile().

Referenced by fillInUnixFile().

static int nolockLock ( sqlite3_file id,
int  locktype 
) [static]

Definition at line 440 of file os_symbian.c.

References SQLITE_OK.

Referenced by fillInUnixFile().

static int nolockUnlock ( sqlite3_file id,
int  locktype 
) [static]

Definition at line 444 of file os_symbian.c.

References SQLITE_OK.

Referenced by fillInUnixFile().

static int seekAndRead ( unixFile id,
sqlite3_int64  offset,
void *  pBuf,
int  cnt 
) [static]

Definition at line 138 of file os_symbian.c.

References unixFile::h, OSTRACE5, SimulateIOError, TIMER_ELAPSED, TIMER_END, and TIMER_START.

Referenced by unixRead().

static int seekAndWrite ( unixFile id,
i64  offset,
const void *  pBuf,
int  cnt 
) [static]

Definition at line 190 of file os_symbian.c.

References unixFile::h, OSTRACE5, TIMER_ELAPSED, TIMER_END, and TIMER_START.

Referenced by unixWrite().

int sqlite3_os_end ( void   ) 

Definition at line 952 of file os_symbian.c.

Referenced by sqlite3_shutdown().

int sqlite3_os_init ( void   ) 

Definition at line 917 of file os_symbian.c.

Referenced by sqlite3_initialize().

static int unixAccess ( sqlite3_vfs pVfs,
const char *  zPath,
int  flags,
int *  pResOut 
) [static]
static int unixCurrentTime ( sqlite3_vfs pVfs,
double *  prNow 
) [static]

Definition at line 892 of file os_symbian.c.

static int unixDelete ( sqlite3_vfs pVfs,
const char *  zPath,
int  dirSync 
) [static]

Definition at line 729 of file os_symbian.c.

References SimulateIOError, SQLITE_IOERR_DELETE, and SQLITE_OK.

static int unixDeviceCharacteristics ( sqlite3_file id  )  [static]

Definition at line 486 of file os_symbian.c.

static int unixFileControl ( sqlite3_file id,
int  op,
void *  pArg 
) [static]

Definition at line 459 of file os_symbian.c.

References SQLITE_ERROR, SQLITE_FCNTL_LOCKSTATE, SQLITE_LOCK_NONE, and SQLITE_OK.

static int unixFileSize ( sqlite3_file id,
i64 pSize 
) [static]

Definition at line 388 of file os_symbian.c.

References SimulateIOError, SQLITE_IOERR_FSTAT, and SQLITE_OK.

static int unixFullPathname ( sqlite3_vfs pVfs,
const char *  zPath,
int  nOut,
char *  zOut 
) [static]
static int unixGetLastError ( sqlite3_vfs pVfs,
int  nBuf,
char *  zBuf 
) [static]

Definition at line 910 of file os_symbian.c.

static int unixOpen ( sqlite3_vfs pVfs,
const char *  zPath,
sqlite3_file pFile,
int  flags,
int *  pOutFlags 
) [static]
static int unixRandomness ( sqlite3_vfs pVfs,
int  nBuf,
char *  zBuf 
) [static]

Definition at line 827 of file os_symbian.c.

static int unixRead ( sqlite3_file id,
void *  pBuf,
int  amt,
sqlite3_int64  offset 
) [static]

Definition at line 166 of file os_symbian.c.

References seekAndRead(), SQLITE_IOERR_READ, SQLITE_IOERR_SHORT_READ, and SQLITE_OK.

static int unixSectorSize ( sqlite3_file id  )  [static]

Definition at line 479 of file os_symbian.c.

References SQLITE_DEFAULT_SECTOR_SIZE.

static int unixSleep ( sqlite3_vfs pVfs,
int  microseconds 
) [static]

Definition at line 868 of file os_symbian.c.

static int unixSync ( sqlite3_file id,
int  flags 
) [static]
static int unixTruncate ( sqlite3_file id,
i64  nByte 
) [static]

Definition at line 373 of file os_symbian.c.

References SimulateIOError, SQLITE_IOERR_TRUNCATE, and SQLITE_OK.

static int unixWrite ( sqlite3_file id,
const void *  pBuf,
int  amt,
sqlite3_int64  offset 
) [static]

ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:50:00 2011 by Doxygen 1.6.1