btinit

btinit gives system error codes above 400 million during open, read, write, close, and lock. Read the message written to stderr. Subtract 400 million from the error code. This is the error code returned by the system.

In UNIX the strerror subroutine translates the error code.

In Windows the FormatMessage subroutine translates the error code.


User Error Codes

Error Code Description
300000101 Invalid nodesz (records per node).
300000102 nodesz (records per node) is not an odd number.
300000103 Invalid rcdlen.
300000104 Invalid keylen.
300000105 Invalid keyofst.
300000106 The file is not a btree database
300000107 Read error
300000108 Write error
300000109 Open error
300000110 Out of memory
300000111 The combination of nodesz and rcdlen exceeds the maximum block size of 65536.
300000112 keylen is greater than rcdlen.
300000113 keyofst causes the key to extend beyond the end of the record.
300000114 Invalid truncate flag.
300000115 The file is not a btree database
300000116 Invalid offset for delete byte
300000117 Delete byte is in key field

The correct values for the parameters to btinit are described in Initialize a Btree Database.