⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 os.h

📁 File system using stacked.
💻 H
字号:
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1997-2002 *	Sleepycat Software.  All rights reserved. * * $Id: os.h,v 1.1.1.1 2004/08/19 23:53:56 gopalan Exp $ */#ifndef _DB_OS_H_#define	_DB_OS_H_#if defined(__cplusplus)extern "C" {#endif#ifdef __KERNEL__# include <linux/fs.h>#endif/* DB filehandle. */struct __fh_t {#if defined(DB_WIN32)	HANDLE	  handle;		/* Windows/32 file handle. */#endif	fd_t  fd;			/* POSIX file descriptor. */	char	*name;			/* File name. */	u_int32_t pagesize;		/* Underlying page size. */	u_int32_t log_size;		/* XXX: Log file size. */	u_int32_t pgno;			/* Last seek. */	u_int32_t pgsize;	u_int32_t offset;#define	DB_FH_NOSYNC	0x01		/* Handle doesn't need to be sync'd. */#define	DB_FH_UNLINK	0x02		/* Unlink on close */#define	DB_FH_VALID	0x04		/* Handle is valid. */	u_int8_t flags;};/* * We group certain seek/write calls into a single function so that we * can use pread(2)/pwrite(2) where they're available. */#define	DB_IO_READ	1#define	DB_IO_WRITE	2typedef struct __io_t {	DB_FH	  *fhp;			/* I/O file handle. */	DB_MUTEX  *mutexp;		/* Mutex to lock. */	size_t	   pagesize;		/* Page size. */	db_pgno_t  pgno;		/* Page number. */	u_int8_t  *buf;			/* Buffer. */	size_t	   bytes;		/* Bytes read/written. */} DB_IO;#if defined(__cplusplus)}#endif#include "dbinc_auto/os_ext.h"#endif /* !_DB_OS_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -