xref: /netbsd-src/external/public-domain/sqlite/man/sqlite3_system_errno.3 (revision b9988867a8ad969c45a52aa7628bc932ec98d46b)
1.Dd January 24, 2024
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
14Attempt to return the underlying operating system error code or error
15number that caused the most recent I/O error or failure to open a file.
16The return value is OS-dependent.
17For example, on unix systems, after
18.Fn sqlite3_open_v2
19returns SQLITE_CANTOPEN, this interface could be called
20to get back the underlying "errno" that caused the problem, such as
21ENOSPC, EAUTH, EISDIR, and so forth.
22.Sh IMPLEMENTATION NOTES
23These declarations were extracted from the
24interface documentation at line 10433.
25.Bd -literal
26SQLITE_API int sqlite3_system_errno(sqlite3*);
27.Ed
28.Sh SEE ALSO
29.Xr sqlite3_open 3 ,
30.Xr SQLITE_OK 3
31