亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? file.h

?? common c++提供socket
?? H
?? 第 1 頁 / 共 2 頁
字號:
	 * Get current file capacity.	 *	 * @return total file size.	 */	off_t getCapacity(void);	/**	 * This method is commonly used to close and re-open an existing	 * database.  This may be used when the database has been unlinked	 * and an external process provides a new one to use.	 */	virtual Error restart(void);	/**	 * Return current error id.	 *	 * @return last error identifier set.	 */	inline Error getErrorNumber(void)		{return errid;};	/**	 * Return current error string.	 *	 * @return last error string set.	 */	inline char *getErrorString(void)		{return errstr;};	bool operator!(void);};/** * This class defines a database I/O file service that can be shared * by multiple threads.  All threads access a global copy of the database * object, and mutex locks can be used to preserve transaction * integrety.  pread/pwrite calls can be used for optimized I/O when * supported. *  * ThreadFile is meant for use by a threaded database server where multiple * threads may each perform semi-independent operations on a given database * table stored on disk.  A special "fcb" structure is used to hold file * "state", and pread/pwrite is used whenever possible for optimized I/O.  On * systems that do not offer pwread/pwrite, a Mutex lock is used to protect * concurrent lseek and read/write operations.  ThreadFile managed databases * are assumed to be used only by the local server and through a single file * descriptor. * * @author David Sugar <dyfet@ostel.com> * @short This class defines a database I/O file service that can be shared by multiple threads. */class __EXPORT ThreadFile : public RandomFile{private:	ThreadKey state;	fcb_t *first;	fcb_t *getFCB(void);	Error open(const char *path);public:	/**	 * Open or create a new database file.  You should also use	 * Initial.	 *	 * @param path pathname of database to open.	 */	ThreadFile(const char *path);	/**	 * Close and finish a database file.	 */	virtual ~ThreadFile();	/**	 * Restart an existing database; close and re-open.	 *	 * @return errSuccess if successful.	 */	Error restart(void);	/**	 * Fetch a portion of the file into physical memory.  This can use	 * state information to fetch the current record multiple times.	 *	 * @return errSuccess on success.	 * @param address  address to use, or NULL if same as last I/O.	 * @param length   length to use, or 0 if same as last I/O.	 * @param position file position to use -1 if same as last I/O.	 */	Error fetch(caddr_t address = NULL, ccxx_size_t length = 0, off_t position = -1);	/**	 * Update a portion of a file from physical memory.  This can use	 * state information to commit the last read record.	 *	 * @return errSuccess on success.	 * @param address  address to use, or NULL if same as last I/O.	 * @param length   length to use, or 0 if same as last I/O.	 * @param position file position to use or -1 if same as last I/O.	 */	Error update(caddr_t address = NULL, ccxx_size_t length = 0, off_t position = -1);	/**	 * Add new data to the end of the file.	 * @param address address to use, or NULL if same as last I/O.	 * @param length  length to use, or 0 if same as last I/O.	 */	Error append(caddr_t address = NULL, ccxx_size_t length = 0);	/**	 * Fetch the current file position marker for this thread.	 *	 * @return file position offset.	 */	off_t getPosition(void);	bool operator++(void);	bool operator--(void);};/** * This class defines a database I/O file service that can be shared * by multiple processes.  Each thread should access a dup of the database * object, and mutex locks can be used to preserve transaction * integrety if multiple threads are used. * * SharedFile is used when a database may be shared between multiple * processes.  SharedFile automatically applies low level byte-range "file * locks", and provides an interface to fetch and release byte-range locked * portions of a file. * * @author David Sugar <dyfet@ostel.com> * @short This class defines a database I/O file service that can be shared by multiple processes. */class __EXPORT SharedFile : public RandomFile{private:	fcb_t fcb;	Error open(const char *path);public:	/**	 * Open or create a new database file.  You should also use	 * Initial.	 *	 * @param path pathname of database to open.	 */	SharedFile(const char *path);	/**	 * Create a shared file as a duplicate of an existing shared	 * file.	 *	 * @param file original file.	 */	SharedFile(const SharedFile &file);	/**	 * Close and finish a database file.	 */	virtual ~SharedFile();	/**	 * Restart an existing database; close and re-open.	 *	 * @return errSuccess if successful.	 */	Error restart(void)		{return open(pathname);};	/**	 * Lock and Fetch a portion of the file into physical memory.         * This can use state information to fetch the current record         * multiple times.	 *	 * @return errSuccess on success.	 * @param address  address to use, or NULL if same as last I/O.	 * @param length   length to use, or 0 if same as last I/O.	 * @param position file position to use -1 if same as last I/O.	 */	Error fetch(caddr_t address = NULL, ccxx_size_t length = 0, off_t position = -1);	/**	 * Update a portion of a file from physical memory.  This can use	 * state information to commit the last read record.  The current	 * lock is also cleared.	 *	 * @return errSuccess on success.	 * @param address  address to use, or NULL if same as last I/O.	 * @param length   length to use, or 0 if same as last I/O.	 * @param position file position to use or -1 if same as last I/O.	 */	Error update(caddr_t address = NULL, ccxx_size_t length = 0, off_t position = -1);	/**	 * Clear a lock held from a previous fetch operation without	 * updating.	 *	 * @return errSuccess on success.	 * @param length length to use, or 0 if same as last I/O.	 * @param pos    file position to use or -1 if same as last I/O.	 */	Error clear(ccxx_size_t length = 0, off_t pos = -1);	/**	 * Add new data to the end of the file.  Locks file during append.	 *	 * @param address address to use, or NULL if same as last I/O.	 * @param length  length to use, or 0 if same as last I/O.	 */	Error append(caddr_t address = NULL, ccxx_size_t length = 0);	/**	 * Fetch the current file position marker for this thread.	 *	 * @return file position offset.	 */	off_t getPosition(void);	bool operator++(void);	bool operator--(void);};/** * Create and map a disk file into memory.  This portable class works * under both Posix via mmap and under the win32 API. A mapped file * can be referenced directly by it's memory segment. One can map * and unmap portions of a file on demand, and update * changed memory pages mapped from files immediately through sync(). * * @author David Sugar <dyfet@ostel.com> * @short Map a named disk file into memory. */class __EXPORT MappedFile : public RandomFile{private:	fcb_t fcb;	int prot;#ifdef	WIN32	HANDLE map;	char mapname[64];#endifpublic:	/**	 * Open a file for mapping.  More than one segment of a file	 * may be mapped into seperate regions of memory.	 *	 * @param fname file name to access for mapping.	 * @param mode  access mode to map file.	 */	MappedFile(const char *fname, Access mode);	/**	 * Create if not exists, and map a file of specified size	 * into memory.	 *	 * @param fname file name to access for mapping.	 * @param mode access mode to map file.	 * @param size of file to map.	 */	MappedFile(const char *fname, Access mode, size_t size);	/**	 * Map a portion or all of a specified file in the specified	 * shared memory access mode.  Valid mapping modes include	 * mappedRead, mappedWrite, and mappedReadWrite.	 *	 * @param fname pathname of file to map into memory.	 * @param offset from start of file to begin mapping in bytes.	 * @param size of mapped area in bytes.	 * @param mode to map file.	 */	MappedFile(const char *fname, pos_t offset, size_t size, Access mode);	/**	 * Release a mapped section of memory associated with a file.  The	 * mapped area is updated back to disk.	 */	virtual ~MappedFile();	// FIXME: not use library function in header ??	/**	 * Synchronize the contents of the mapped portion of memory with	 * the disk file and wait for completion.  This assures the memory	 * mapped from the file is written back.	 */	void sync(void);	/**	 * Synchronize a segment of memory mapped from a segment fetch.	 *	 * @param address memory address to update.	 * @param len size of segment.	 */	void sync(caddr_t address, size_t len);	/**	 * Map a portion of the memory mapped from the file back to the	 * file and do not wait for completion.  This is useful when mapping	 * a database file and updating a single record.	 *	 * @param offset offset into the mapped region of memory.	 * @param len length of partial region (example, record length).	 */	void update(size_t offset = 0, size_t len = 0);	/**	 * Update a mapped region back to disk as specified by address	 * and length.	 *	 * @param address address of segment.	 * @param len length of segment.	 */	void update(caddr_t address, size_t len);	/**	 * Release (unmap) a memory segment.	 *	 * @param address address of memory segment to release.	 * @param len length of memory segment to release.	 */	void release(caddr_t address, size_t len);	/**	 * Fetch a pointer to an offset within the memory mapped portion	 * of the disk file.  This really is used for convience of matching	 * operations between Update and Fetch, as one could simply have	 * accessed the base pointer where the file was mapped directly.	 *	 * @param offset from start of mapped memory.	 */	inline caddr_t fetch(size_t offset = 0)		{return ((char *)(fcb.address)) + offset;};	/**	 * Fetch and map a portion of a disk file to a logical memory	 * block.	 *	 * @return pointer to memory segment.	 * @param pos offset of file segment to map.	 * @param len size of memory segment to map.	 */	caddr_t fetch(off_t pos, size_t len);	/**	 * Lock the currently mapped portion of a file.	 *	 * @return true if pages are locked.	 */	bool lock(void);	/**	 * Unlock a locked mapped portion of a file.	 */	void unlock(void);	/**	 * Compute map size to aligned page boundry.	 *	 * @param size request.	 * @return page aligned size.	 */	size_t pageAligned(size_t size);};/** * The DSO dynamic loader class is used to load object files.  On * elf based systems this is typically done with dlopen.  A dummy * stub class is generated for non-dl capable systems. * * @author David Sugar <dyfet@ostel.com> * @short Dynamic class file loader. */class __EXPORT DSO{private:	const char *err;#ifdef	HAVE_MODULES	static Mutex mutex;	static DSO *first;	static DSO *last;	DSO *next, *prev;	const char *id;#if	defined(HAVE_MACH_DYLD)        NSModule oModule;#elif   defined(HAVE_SHL_LOAD)        shl_t image;#elif	defined(WIN32)	HINSTANCE hImage;#else	void *image;#endif	void loader(const char *filename, bool resolve);#endifpublic:	/**	 * Construct and load a DSO object file.	 *	 * @param filename pathname of object file to load.	 */ #ifdef	HAVE_MODULES	DSO(const char *filename)		{loader(filename, true);};	DSO(const char *filename, bool resolve)		{loader(filename, resolve);};#else	DSO(const char *filename)		{throw this;};	DSO(const char *filename, bool resolve)		{throw this;};#endif	/**	 * Retrieve error indicator associated with DSO failure.  This	 * is often used in catch handlers.	 */	inline const char *getError(void)		{return err;};	/**	 * Detach a DSO object from running memory.	 */#ifdef	HAVE_MODULES	virtual ~DSO();#endif	/**	 * Lookup a symbol in the loaded file.	 */#ifdef	HAVE_MODULES	void* operator[](const char *sym);#else	void *operator[](const char *)		{return NULL;};#endif#ifdef	HAVE_MODULES	static void dynunload(void);#else	static void dynunload(void)		{return;};#endif	/**	 * Find a specific DSO object by filename.	 *	 * @param name of DSO object file (partial).	 */	static DSO *getObject(const char *name);	/**	 * See if DSO object is valid.	 *	 * @return true if valid.	 */	bool isValid(void);	/**	 * Install debug handler...	 */	static void setDebug(void);};/** @relates RandomFile */bool __EXPORT isDir(const char *path);/** @relates RandomFile */bool __EXPORT isFile(const char *path);#ifndef WIN32/** @relates RandomFile */bool __EXPORT isDevice(const char *path);#else/** @relates RandomFile */inline bool isDevice(const char *path){ return false; }#endif/** @relates RandomFile */bool __EXPORT canAccess(const char *path);/** @relates RandomFile */bool __EXPORT canModify(const char *path);/** @relates RandomFile */time_t __EXPORT lastModified(const char *path);/** @relates RandomFile */time_t __EXPORT lastAccessed(const char *path);#ifdef	COMMON_STD_EXCEPTIONclass DirException : public IOException{public:	DirException(const String &str) : IOException(str) {};};class __EXPORT DSOException : public IOException{public:	DSOException(const String &str) : IOException(str) {};};class __EXPORT FileException : public IOException{public:	FileException(const String &str) : IOException(str) {};};#endif#ifdef	CCXX_NAMESPACES}#endif#endif/** EMACS ** * Local variables: * mode: c++ * c-basic-offset: 8 * End: */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美福利视频导航| 99久久久免费精品国产一区二区| 欧美精品丝袜中出| 亚洲一区二区三区爽爽爽爽爽| 色婷婷精品大视频在线蜜桃视频| 亚洲免费观看高清完整版在线 | 国产欧美精品在线观看| 国产一区二区在线观看免费 | 国产精品天美传媒沈樵| www.色精品| 亚洲一区二区美女| 日韩美一区二区三区| 久久国产欧美日韩精品| 久久婷婷久久一区二区三区| 成人动漫视频在线| 亚洲网友自拍偷拍| 欧美电影免费观看完整版| 国产成人免费网站| 依依成人综合视频| 精品理论电影在线观看| a亚洲天堂av| 日韩av不卡一区二区| 国产三级精品视频| 欧美做爰猛烈大尺度电影无法无天| 石原莉奈在线亚洲二区| www国产亚洲精品久久麻豆| 91麻豆免费观看| 美腿丝袜在线亚洲一区| 国产精品色一区二区三区| 欧美日韩日日摸| 粉嫩一区二区三区性色av| 亚洲小少妇裸体bbw| 久久久久久99久久久精品网站| 色婷婷久久久久swag精品| 九色|91porny| 亚洲一区二区三区不卡国产欧美| 久久久国产精华| 欧美日韩国产在线观看| 国产福利一区二区三区视频在线| 亚洲国产日韩a在线播放性色| 国产亚洲综合在线| 欧美日韩视频在线观看一区二区三区 | 成人性生交大片免费看在线播放 | 成人免费毛片片v| 午夜精品一区二区三区电影天堂| 国产精品网站导航| 精品国产成人系列| 91精品在线观看入口| 91福利资源站| jlzzjlzz亚洲日本少妇| 国内精品伊人久久久久av影院| 亚洲第一主播视频| 一区二区三区毛片| 国产精品久久久久久久久搜平片 | 国产精品午夜在线| 日韩欧美www| 欧美一卡二卡在线观看| 欧美中文字幕久久| 日本道免费精品一区二区三区| 国产精品1区2区| 蜜桃视频在线观看一区| 午夜国产精品一区| 亚洲一卡二卡三卡四卡| 亚洲裸体在线观看| 国产精品久久久久精k8| 国产校园另类小说区| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 日韩精品亚洲一区二区三区免费| 日韩毛片高清在线播放| 国产精品夫妻自拍| 亚洲婷婷在线视频| 日韩理论电影院| 专区另类欧美日韩| 亚洲精品视频自拍| 一区二区三区久久| 亚洲国产综合色| 亚洲成人久久影院| 日韩高清不卡一区二区三区| 视频在线观看91| 蜜臀av性久久久久蜜臀aⅴ流畅| 热久久免费视频| 另类专区欧美蜜桃臀第一页| 久久精品久久综合| 国产一区在线看| 成人精品亚洲人成在线| 色一情一乱一乱一91av| 欧美日韩在线综合| 欧美一级专区免费大片| 精品嫩草影院久久| 国产精品乱人伦| 玉足女爽爽91| 日本欧美久久久久免费播放网| 精品一区二区三区在线视频| 国产精品99久久久久久久女警| 成人一区二区三区中文字幕| 91亚洲男人天堂| 欧美日韩高清一区二区三区| 欧美不卡123| 国产欧美一区二区在线| 亚洲伦在线观看| 另类中文字幕网| 成人国产精品免费观看视频| 欧美亚洲国产一区二区三区 | 日韩综合小视频| 国产麻豆视频一区| 91美女片黄在线观看| 日韩午夜中文字幕| 国产精品三级电影| 天天操天天色综合| 成人av影视在线观看| 欧美人体做爰大胆视频| 久久免费国产精品| 亚洲精品国产无天堂网2021| 日韩av电影一区| 97久久精品人人爽人人爽蜜臀| 一区二区三区中文字幕电影| 亚洲欧美日韩人成在线播放| 日韩电影在线免费| 国产高清亚洲一区| 这里只有精品电影| 久久综合狠狠综合久久激情| 亚洲色图色小说| 狠狠狠色丁香婷婷综合久久五月| 91小宝寻花一区二区三区| 日韩一级二级三级精品视频| 国产精品久久久久久一区二区三区| 美女网站色91| 成人一级片网址| 不卡一区二区中文字幕| 久久精品视频一区二区| 国产在线观看一区二区| 精品欧美乱码久久久久久| 九色|91porny| 久久人人爽人人爽| 国产·精品毛片| 国产精品网站导航| 欧美大片国产精品| 狠狠色丁香婷综合久久| 久久综合色之久久综合| 国产激情一区二区三区| 中文字幕国产一区二区| 91婷婷韩国欧美一区二区| 亚洲欧美日韩电影| 欧美私模裸体表演在线观看| 天堂影院一区二区| 日韩精品中文字幕在线一区| 极品少妇xxxx精品少妇偷拍 | 国产精品嫩草99a| av不卡在线播放| 一区二区三区蜜桃| 91精品欧美一区二区三区综合在| 九色综合狠狠综合久久| 亚洲国产精品av| 91黄色激情网站| 日韩成人午夜电影| 26uuu另类欧美亚洲曰本| 岛国一区二区在线观看| 一区二区不卡在线播放| 欧美剧情片在线观看| 国产最新精品精品你懂的| 国产精品成人一区二区艾草| 欧美网站大全在线观看| 久久疯狂做爰流白浆xx| 中文字幕一区二区三区精华液| 在线免费一区三区| 久久精品国产77777蜜臀| 国产色综合一区| 日本韩国视频一区二区| 秋霞成人午夜伦在线观看| 国产亚洲一区二区在线观看| 色婷婷av一区二区三区软件| 麻豆极品一区二区三区| 中文字幕在线观看不卡| 欧美一区二区视频在线观看2022 | 欧美va天堂va视频va在线| 成人一区二区三区视频在线观看| 亚洲国产va精品久久久不卡综合| 久久一区二区三区四区| 色av一区二区| 国产一区二区三区精品视频| 亚洲欧美色综合| 久久先锋资源网| 欧美三级三级三级爽爽爽| 国产乱码字幕精品高清av | 中文字幕欧美一| 日韩免费一区二区三区在线播放| 99视频精品在线| 黄页视频在线91| 天堂一区二区在线免费观看| 国产精品久久久久久亚洲毛片| 欧美一区二区三区四区视频| 色婷婷综合久久久中文一区二区| 国产一区二区精品久久91| 亚洲一区中文在线| 国产精品毛片久久久久久久| 欧美videossexotv100| 欧美亚一区二区| 成人app在线观看| 国产一区二区91| 日韩成人免费在线|