Lines Matching defs:errno
10517 ** called to get back the underlying "errno" that caused the problem, such
28598 # include <errno.h> /* amalgamator: dontcache */
36867 #include <errno.h>
36996 int lastErrno; /* The unix errno from last I/O error */
37149 sqlite3_log(SQLITE_WARNING, "Fd %d enable del monitor go wrong, errno = %d", fd, errno);
37500 if( errno==EINTR ) continue;
37622 savedErrno = errno;
37642 errno = savedErrno;
37667 do{ rc = osFtruncate(h,sz); }while( rc<0 && errno==EINTR );
37672 ** This routine translates a standard POSIX errno code into something
38028 ** It is invoked after an error occurs in an OS function and errno has been
38030 ** errno and, if possible, the human-readable equivalent from strerror() or
38047 int iErrno = errno; /* Saved syscall error number */
38051 ** equivalent to errno. Otherwise, use strerror_r().
38197 storeLastErrno(pFile, errno);
38202 sqlite3_log(SQLITE_IOERR, "findInodeInfo-osFstat, fd[%d], errno[%d], osFstat[%d]", fd, errno, rc);
38219 do{ rc = osWrite(fd, "S", 1); }while( rc<0 && errno==EINTR );
38221 storeLastErrno(pFile, errno);
38223 sqlite3_log(SQLITE_IOERR, "findInodeInfo-osWrite, fd[%d], errno[%d], osFstat[%d]", fd, errno, rc);
38229 storeLastErrno(pFile, errno);
38231 sqlite3_log(SQLITE_IOERR, "findInodeInfo-msdos-osFstat, fd[%d], errno[%d], osFstat[%d]", fd, errno, rc);
38361 storeLastErrno(pFile, errno);
38433 ** to fcntl() fails. In this case, errno is set appropriately (by fcntl()).
38599 tErrno = errno;
38621 tErrno = errno;
38631 tErrno = errno;
38667 tErrno = errno;
38792 tErrno = errno;
38802 tErrno = errno;
38814 tErrno = errno;
38834 storeLastErrno(pFile, errno);
38847 storeLastErrno(pFile, errno);
38865 storeLastErrno(pFile, errno);
39131 int tErrno = errno;
39184 int tErrno = errno;
39232 do{ rc = flock(fd,op); }while( rc<0 && errno==EINTR );
39268 int tErrno = errno;
39275 int tErrno = errno;
39342 int tErrno = errno;
39455 int tErrno = errno;
39559 int rc, tErrno = errno;
39655 int tErrno = errno;
40114 ** To avoid stomping the errno value on a failed read the lastErrno value
40137 storeLastErrno((unixFile*)id, errno);
40144 if( errno==EINTR ){ got = 1; continue; }
40146 storeLastErrno((unixFile*)id, errno);
40264 do{ rc = (int)osPwrite(fd, pBuf, nBuf, iOff); }while( rc<0 && errno==EINTR );
40266 do{ rc = (int)osPwrite64(fd, pBuf, nBuf, iOff);}while( rc<0 && errno==EINTR);
40276 }while( rc<0 && errno==EINTR );
40282 if( rc<0 ) *piErrno = errno;
40291 ** To avoid stomping the errno value on a failed write the lastErrno value
40517 if( rc==-1 && errno==ENOTSUP ){
40611 storeLastErrno(pFile, errno);
40656 storeLastErrno(pFile, errno);
40696 storeLastErrno((unixFile*)id, errno);
40798 storeLastErrno(pFile, errno);
43124 if( isNewJrnl && errno==EACCES && osAccess(zName, F_OK) ){
43128 }else if( errno!=EISDIR && isReadWrite ){
43192 storeLastErrno(p, errno);
43195 sqlite3_log(SQLITE_IOERR_ACCESS, "unixOpen, fd[%d], flags[%d], errno[%d]", fd, errno, flags);
43274 if( errno==ENOENT
43461 if( errno!=ENOENT ){
43609 do{ got = osRead(fd, zBuf, nBuf); }while( got<0 && errno==EINTR );
43721 return errno;
43917 OSTRACE(("GETLOCKPATH failed %s errno=%d pid=%d\n",
43918 lPath, errno, osGetpid(0)));
43966 int err=errno;
44020 terrno = errno;
44021 if( fd<0 && errno==ENOENT && islockfile ){
44030 terrno = errno;
44095 int err = errno;
44157 sqlite3_snprintf(sizeof(errmsg), errmsg, "create failed (%d)", errno);
44161 sqlite3_snprintf(sizeof(errmsg), errmsg, "write failed (%d)", errno);
44165 sqlite3_snprintf(sizeof(errmsg), errmsg, "rename failed (%d)", errno);
44208 storeLastErrno(pFile, errno);
44210 sqlite3_log(SQLITE_IOERR_LOCK, "proxyConchLock pFile fd[%d], conchFile fd[%d], lastErrno[%d]", pFile->h, conchFile->h, errno);
44231 storeLastErrno(pFile, errno);
44233 sqlite3_log(SQLITE_IOERR_LOCK, "proxyConchLock tries 2, pFile fd[%d], conchFile fd[%d], lastErrno[%d]", pFile->h, conchFile->h, errno);
44417 }while( rc==(-1) && errno==EINTR );
44419 int code = errno;
44426 int code = errno;
44670 int err = errno;
45343 DWORD lastErrno; /* The Windows errno from the last I/O error */
48813 DWORD lastErrno; /* The Windows errno from the last I/O error */
48897 OSTRACE(("SHM-LOCK file=%p, func=%s, errno=%lu, rc=%s\n",
49922 return winLogError(SQLITE_IOERR_CONVPATH, (DWORD)errno,
50693 return winLogError(SQLITE_CANTOPEN_CONVPATH, (DWORD)errno,
50715 return winLogError(SQLITE_CANTOPEN_CONVPATH, (DWORD)errno,
51080 ** GetLastError() and FormatMessage() on Windows (or errno and
245835 sqlite3_log(SQLITE_WARNING, "sqlite3_rekey_v2: error when writing page %d: errno = %d.", pgno, rc);
245838 sqlite3_log(SQLITE_WARNING, "sqlite3_rekey_v2: error when reading page %d: errno = %d.", pgno, rc);