forked from xuos/xiuos
feat support SQLite function, need follow README.md, RAM > 512KB, shell task stack > 32KB, TF card mount FATFS
This commit is contained in:
@@ -408,7 +408,7 @@ static int _xizi_io_sector_size(sqlite3_file *file_id)
|
||||
|
||||
static int _xizi_io_device_characteristics(sqlite3_file *file_id)
|
||||
{
|
||||
return 0;
|
||||
return SQLITE_IOCAP_SAFE_APPEND;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -122,7 +122,7 @@ static sqlite3_mutex * _xizi_mtx_alloc(int id)
|
||||
{
|
||||
case SQLITE_MUTEX_FAST:
|
||||
case SQLITE_MUTEX_RECURSIVE:
|
||||
p = PrivMalloc(sizeof(sqlite3_mutex));
|
||||
p = sqlite3_malloc(sizeof(sqlite3_mutex));
|
||||
|
||||
if (p != NULL) {
|
||||
PrivMutexCreate(&p->mutex, 0);
|
||||
|
||||
@@ -101,7 +101,7 @@ int _gettimeofday(struct timeval *tp, void *ignore)
|
||||
|
||||
static int _Access(const char *pathname, int mode)
|
||||
{
|
||||
int fd;
|
||||
int fd = -1;
|
||||
|
||||
fd = PrivOpen(pathname, O_RDONLY);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user