1 .Dd April 29, 2026 2 .Dt SQLITE3_SYSTEM_ERRNO 3 3 .Os 4 .Sh NAME 5 .Nm sqlite3_system_errno 6 .Nd low-level system error code 7 .Sh SYNOPSIS 8 .In sqlite3.h 9 .Ft int 10 .Fo sqlite3_system_errno 11 .Fa "sqlite3*" 12 .Fc 13 .Sh DESCRIPTION 14 Attempt to return the underlying operating system error code or error 15 number that caused the most recent I/O error or failure to open a file. 16 The return value is OS-dependent. 17 For example, on unix systems, after 18 .Fn sqlite3_open_v2 19 returns SQLITE_CANTOPEN, this interface could be called 20 to get back the underlying "errno" that caused the problem, such as 21 ENOSPC, EAUTH, EISDIR, and so forth. 22 .Sh IMPLEMENTATION NOTES 23 These declarations were extracted from the 24 interface documentation at line 10919. 25 .Bd -literal 26 SQLITE_API int sqlite3_system_errno(sqlite3*); 27 .Ed 28 .Sh SEE ALSO 29 .Xr sqlite3_open 3 , 30 .Xr SQLITE_OK 3 31