38 #include <sys/types.h>    50 #if defined XAPIAN_HAS_GLASS_BACKEND    61         if (
io_read(fd, magic_buf, 14) == 14 &&
    62             lseek(fd, 0, SEEK_SET) == 0 &&
    63             memcmp(magic_buf, 
"\x0f\x0dXapian Glass", 14) == 0) {
 
#define GLASS_MIN_BLOCKSIZE
Minimum B-tree block size. 
 
Provides wrappers with POSIXy semantics. 
 
Helper functions for database handling. 
 
Definitions, types, etc for use inside glass. 
 
include <sys/stat.h> with portability enhancements 
 
int test_if_single_file_db(const struct stat &sb, const string &path, int *fd_ptr)
Probe if a path is a single-file database. 
 
size_t io_read(int fd, char *p, size_t n, size_t min)
Read n bytes (or until EOF) into block pointed to by p from file descriptor fd. 
 
Wrappers for low-level POSIX I/O routines. 
 
<unistd.h>, but with compat. 
 
Various assertion macros.