backends/quartz/btree.cc File Reference

#include <config.h>
#include <xapian/error.h>
#include "safeerrno.h"
#include "safefcntl.h"
#include "stringutils.h"
#include <sys/types.h>
#include "safeunistd.h"
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include "btree.h"
#include "btree_util.h"
#include "btree_base.h"
#include "bcursor.h"
#include "quartz_utils.h"
#include "omassert.h"
#include "omdebug.h"
#include "utils.h"
#include <algorithm>
#include <string>
#include <vector>

Include dependency graph for btree.cc:

Go to the source code of this file.

Defines

#define BYTE_PAIR_RANGE   (1 << 2 * CHAR_BIT)

Functions

int sys_open_to_read_no_except (const string &name)
int sys_open_to_read (const string &name)
static int sys_open_to_write_no_except (const string &name)
int sys_open_to_write (const string &name)
static int sys_open_for_readwrite (const string &name)
static void sys_write_bytes (int h, int n, const char *p)
string sys_read_all_bytes (int h, size_t bytes_to_read)
void sys_write_string (int h, const string &s)
int sys_flush (int h)
static void sys_unlink (const string &filename)
void sys_unlink_if_exists (const string &filename)
 Delete file, throwing an error if can't delete it (but not if it doesn't exist).


Define Documentation

#define BYTE_PAIR_RANGE   (1 << 2 * CHAR_BIT)

Definition at line 262 of file btree.cc.


Function Documentation

int sys_open_to_read_no_except ( const string &  name  ) 

Definition at line 112 of file btree.cc.

References msvc_posix_open(), O_BINARY, and Xapian::Remote::open().

Referenced by sys_open_to_read().

int sys_open_to_read ( const string &  name  ) 

Definition at line 122 of file btree.cc.

References sys_open_to_read_no_except().

Referenced by Btree::do_open_to_read(), and QuartzMetaFile::open().

static int sys_open_to_write_no_except ( const string &  name  )  [static]

Definition at line 133 of file btree.cc.

References msvc_posix_open(), O_BINARY, and Xapian::Remote::open().

Referenced by sys_open_to_write().

int sys_open_to_write ( const string &  name  ) 

Definition at line 143 of file btree.cc.

References sys_open_to_write_no_except().

Referenced by QuartzMetaFile::create(), and Btree::create().

static int sys_open_for_readwrite ( const string &  name  )  [static]

Definition at line 154 of file btree.cc.

References O_BINARY, and Xapian::Remote::open().

Referenced by Btree::do_open_to_write().

static void sys_write_bytes ( int  h,
int  n,
const char *  p 
) [static]

Definition at line 165 of file btree.cc.

Referenced by sys_write_string(), and Btree::write_block().

string sys_read_all_bytes ( int  h,
size_t  bytes_to_read 
)

Definition at line 190 of file btree.cc.

Referenced by QuartzMetaFile::open().

void sys_write_string ( int  h,
const string &  s 
)

Definition at line 218 of file btree.cc.

References sys_write_bytes().

Referenced by QuartzMetaFile::create().

int sys_flush ( int  h  ) 

Definition at line 223 of file btree.cc.

Referenced by Btree::commit().

static void sys_unlink ( const string &  filename  )  [static]

Definition at line 235 of file btree.cc.

References msvc_posix_unlink(), and unlink().

void sys_unlink_if_exists ( const string &  filename  ) 

Delete file, throwing an error if can't delete it (but not if it doesn't exist).

Definition at line 1525 of file btree.cc.

References unlink().


Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.