/ Check-in [7a0a26ed]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:We learn that readdir_r() is deprecated in favor of plain old readdir(), which is now suppose to be threadsafe using thread-local storage. So remove the use of readdir_r() from the test code. (SQLite itself never calls readdir() or readdir_r()).
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:7a0a26ed380dd0bdda50b0204b30b53bbbbc70f278eba02f91541ac6c691aef2
User & Date: drh 2019-03-22 13:53:25
Context
2019-03-25
14:24
For the ".archive --update" command in the CLI, only update files if their mtime or mode has changed. To force an update, use the new --insert instead. check-in: 191a023a user: drh tags: trunk
2019-03-22
13:53
We learn that readdir_r() is deprecated in favor of plain old readdir(), which is now suppose to be threadsafe using thread-local storage. So remove the use of readdir_r() from the test code. (SQLite itself never calls readdir() or readdir_r()). check-in: 7a0a26ed user: drh tags: trunk
11:38
Add the --limit N option to dbfuzz2. Set the default callback limit to 250K. check-in: b99f8512 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/test_fs.c.

   233    233   ** Skip the cursor to the next entry.
   234    234   */
   235    235   static int fsdirNext(sqlite3_vtab_cursor *cur){
   236    236     FsdirCsr *pCsr = (FsdirCsr*)cur;
   237    237   
   238    238     if( pCsr->pDir ){
   239    239       struct DIRENT *pRes = 0;
   240         -#if defined(__MINGW_H)
   241    240       pRes = readdir(pCsr->pDir);
   242    241       if( pRes!=0 ){
   243    242         memcpy(&pCsr->entry, pRes, sizeof(struct DIRENT));
   244    243       }
   245         -#else
   246         -    readdir_r(pCsr->pDir, &pCsr->entry, &pRes);
   247         -#endif
   248    244       if( pRes==0 ){
   249    245         closedir(pCsr->pDir);
   250    246         pCsr->pDir = 0;
   251    247       }
   252    248       pCsr->iRowid++;
   253    249     }
   254    250