#include "os.h"
#include "sqliteInt.h"
'defines' |
#define | TIMER_START |
#define | TIMER_END |
#define | SEEK(X) |
#define | TRACE1(X) |
#define | TRACE2(X, Y) |
#define | TRACE3(X, Y, Z) |
#define | TRACE4(X, Y, Z, A) |
#define | TRACE5(X, Y, Z, A, B) |
#define | SimulateIOError(A) |
#define | OpenCounter(X) |
#define | N_LOCKBYTE 10239 |
#define | FIRST_LOCKBYTE (0xffffffff - N_LOCKBYTE) |
Funciones |
int | sqliteOsDelete (const char *zFilename) |
int | sqliteOsFileExists (const char *zFilename) |
int | sqliteOsOpenReadWrite (const char *zFilename, OsFile *id, int *pReadonly) |
int | sqliteOsOpenExclusive (const char *zFilename, OsFile *id, int delFlag) |
int | sqliteOsOpenReadOnly (const char *zFilename, OsFile *id) |
int | sqliteOsOpenDirectory (const char *zDirname, OsFile *id) |
int | sqliteOsTempFileName (char *zBuf) |
int | sqliteOsClose (OsFile *id) |
int | sqliteOsRead (OsFile *id, void *pBuf, int amt) |
int | sqliteOsWrite (OsFile *id, const void *pBuf, int amt) |
int | sqliteOsSeek (OsFile *id, off_t offset) |
int | sqliteOsSync (OsFile *id) |
int | sqliteOsTruncate (OsFile *id, off_t nByte) |
int | sqliteOsFileSize (OsFile *id, off_t *pSize) |
int | sqliteOsReadLock (OsFile *id) |
int | sqliteOsWriteLock (OsFile *id) |
int | sqliteOsUnlock (OsFile *id) |
int | sqliteOsRandomSeed (char *zBuf) |
int | sqliteOsSleep (int ms) |
void | sqliteOsEnterMutex () |
void | sqliteOsLeaveMutex () |
char * | sqliteOsFullPathname (const char *zRelative) |
int | sqliteOsCurrentTime (double *prNow) |
Documentación de los 'defines'
#define FIRST_LOCKBYTE (0xffffffff - N_LOCKBYTE) |
#define SimulateIOError |
( |
|
A | ) |
|
POSIX advisory lock work-around
#define TRACE3 |
( |
|
X, |
|
|
|
Y, |
|
|
|
Z |
|
) |
| |
#define TRACE4 |
( |
|
X, |
|
|
|
Y, |
|
|
|
Z, |
|
|
|
A |
|
) |
| |
#define TRACE5 |
( |
|
X, |
|
|
|
Y, |
|
|
|
Z, |
|
|
|
A, |
|
|
|
B |
|
) |
| |
Documentación de las funciones
int sqliteOsCurrentTime |
( |
double * |
prNow | ) |
|
int sqliteOsDelete |
( |
const char * |
zFilename | ) |
|
void sqliteOsEnterMutex |
( |
void |
| ) |
|
int sqliteOsFileExists |
( |
const char * |
zFilename | ) |
|
char* sqliteOsFullPathname |
( |
const char * |
zRelative | ) |
|
void sqliteOsLeaveMutex |
( |
void |
| ) |
|
int sqliteOsOpenDirectory |
( |
const char * |
zDirname, |
|
|
OsFile * |
id |
|
) |
| |
int sqliteOsOpenExclusive |
( |
const char * |
zFilename, |
|
|
OsFile * |
id, |
|
|
int |
delFlag |
|
) |
| |
int sqliteOsOpenReadOnly |
( |
const char * |
zFilename, |
|
|
OsFile * |
id |
|
) |
| |
int sqliteOsOpenReadWrite |
( |
const char * |
zFilename, |
|
|
OsFile * |
id, |
|
|
int * |
pReadonly |
|
) |
| |
int sqliteOsRandomSeed |
( |
char * |
zBuf | ) |
|
int sqliteOsTempFileName |
( |
char * |
zBuf | ) |
|
int sqliteOsWrite |
( |
OsFile * |
id, |
|
|
const void * |
pBuf, |
|
|
int |
amt |
|
) |
| |