/* public interfaces for block io routines */ #ifndef _BLOCK_H #define _BLOCK_H /*#define IBEX_STATS*/ /* define to get/dump block access stats */ #include /* version of file format */ #define IBEX_VERSION "ibx6" typedef guint32 nameid_t; typedef guint32 blockid_t; #define BLOCK_BITS (8) #define BLOCK_SIZE (1<memblock mapping */ int fd; /* file fd */ #ifdef IBEX_STATS GHashTable *stats; #endif struct _root root; /* root block */ /* temporary here */ struct _IBEXWord *words; /* word index */ }; #ifdef IBEX_STATS struct _stat_info { int read; int write; int cache_hit; int cache_miss; }; #endif /* IBEX_STATS */ struct _memcache *ibex_block_cache_open(const char *name, int flags, int mode); void ibex_block_cache_close(struct _memcache *block_cache); void ibex_block_cache_sync(struct _memcache *block_cache); void ibex_block_cache_flush(struct _memcache *block_cache); blockid_t ibex_block_get(struct _memcache *block_cache); void ibex_block_free(struct _memcache *block_cache, blockid_t blockid); void ibex_block_dirty(struct _block *block); struct _block *ibex_block_read(struct _memcache *block_cache, blockid_t blockid); #define block_number(x) ((x)>>BLOCK_BITS) #define block_location(x) ((x)<dependabot/npm_and_yarn/devel/electron4/files/serve-10.1.2 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* - Update to 2.5.0.araujo2010-10-232-5/+5
* - Drop maintainership.alepulver2010-10-111-1/+1
* - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-221-2/+1
* Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.rafan2008-08-211-1/+0
* - Update to version 2.4.14.alepulver2008-06-043-25/+4
* - Chase devel/sdl12 shlib version bumpmiwi2008-03-131-1/+1
* - Welcome X.org 7.2 \o/.flz2007-05-201-0/+1
* - Fix building with GCC 4.x.alepulver2007-03-281-0/+20
* - Fix pkg-plist (avoid creating useless empty directory).alepulver2007-03-221-3/+1
* BROKEN: Incomplete pkg-plistkris2007-03-181-0/+2