diff options
author | levin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-13 05:42:09 +0000 |
---|---|---|
committer | levin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-13 05:42:09 +0000 |
commit | 422288137b07906eb8c0e7a799c4fcb5df291ad6 (patch) | |
tree | 6dcba5f7f1179e27ab0e96cc491b39f6831257b9 /third_party | |
parent | f5786406f232e8b509f56d10da8185a292c6902d (diff) | |
download | chromium_src-422288137b07906eb8c0e7a799c4fcb5df291ad6.zip chromium_src-422288137b07906eb8c0e7a799c4fcb5df291ad6.tar.gz chromium_src-422288137b07906eb8c0e7a799c4fcb5df291ad6.tar.bz2 |
Revert 31888 - This change depended on a new version of WebKit
which is no longer present in chromium a the moment.
TBR=dumi@google.com
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31889 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/sqlite/src/os_unix.c | 45 |
1 files changed, 24 insertions, 21 deletions
diff --git a/third_party/sqlite/src/os_unix.c b/third_party/sqlite/src/os_unix.c index 88cf834..1eafda1 100644 --- a/third_party/sqlite/src/os_unix.c +++ b/third_party/sqlite/src/os_unix.c @@ -3497,9 +3497,32 @@ typedef const sqlite3_io_methods *(*finder_type)(const char*,unixFile*); */ /* +** Initializes a unixFile structure with zeros. +*/ +void chromium_sqlite3_initialize_unix_sqlite3_file(sqlite3_file* file) { + memset(file, 0, sizeof(unixFile)); +} + +// TODO(dumi): remove as soon as the WebKit patch is landed +void initUnixFile(sqlite3_file* file) { + chromium_sqlite3_initialize_unix_sqlite3_file(file); +} + +int chromium_sqlite3_fill_in_unix_sqlite3_file(sqlite3_vfs* vfs, + int fd, + int dirfd, + sqlite3_file* file, + const char* fileName, + int noLock, + int isDelete) { + return fillInUnixFile(vfs, fd, dirfd, file, fileName, noLock, isDelete); +} + +// TODO(dumi): make this function static again as soon as the WebKit patch is landed +/* ** Initialize the contents of the unixFile structure pointed to by pId. */ -static int fillInUnixFile( +int fillInUnixFile( sqlite3_vfs *pVfs, /* Pointer to vfs object */ int h, /* Open file descriptor of file being opened */ int dirfd, /* Directory file descriptor */ @@ -3813,26 +3836,6 @@ static UnixUnusedFd *findReusableFd(const char *zPath, int flags){ } /* -** Initializes a unixFile structure with zeros. -*/ -void chromium_sqlite3_initialize_unix_sqlite3_file(sqlite3_file* file) { - memset(file, 0, sizeof(unixFile)); -} - -/* -** Fills up a unixFile structure with the given values. -*/ -int chromium_sqlite3_fill_in_unix_sqlite3_file(sqlite3_vfs* vfs, - int fd, - int dirfd, - sqlite3_file* file, - const char* fileName, - int noLock, - int isDelete) { - return fillInUnixFile(vfs, fd, dirfd, file, fileName, noLock, isDelete); -} - -/* ** Search for an unused file descriptor that was opened on the database file. ** If a suitable file descriptor if found, then it is stored in *fd; otherwise, ** *fd is not modified. |