📄 pspint.h
字号:
/*************************************************************************** * * * db.* * * open source database kernel * * * * Copyright (c) 2000 Centura Software Corporation. All rights reserved. * * * * Use of this software, whether in source code format, or in executable, * * binary object code form, is governed by the CENTURA OPEN SOURCE LICENSE * * which is fully described in the LICENSE.TXT file, included within this * * distribution of source code files. * * * * Except as provided herein, the contents of this file are subject to the * * Centura Open Source Public License Version 1.0 (the "License"); you may * * not use this file except in compliance with the License. A copy of the * * License will be provided to you by Club ITTIA. * * * * Software distributed under the License is distributed on an "AS IS" * * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the * * License for the specific language governing rights and limitations * * under the License. * * * * The Original Code is db.linux version 1.0, released February 29, 2000. * * * * The Initial Developer of the Original Code is Centura Software * * Corporation. Portions created by Centura Software Corporation are * * Copyright (C) 1984-2000 Centura Software Corporation. All Rights * * Reserved. * * * * This file contains modifications to the Original Code made by ITTIA. * * This file may only be used in accordance with the ITTIA DB.* V.2 * * License Agreement which is available at WWW.ITTIA.COM. * * * **************************************************************************//* pspint.h - Internal definitions for the PSP */#if defined(UNIX)#define NEED_STRNICMP#define PSP_FDESC int#define PSP_PTHREAD#endif#if defined(WIN32)#define WIN32_LEAN_AND_MEAN#include <windows.h>#define PSP_FDESC HANDLE#define PSP_WINTHREAD#endif#if defined(ECOS)#define PSP_PTHREAD#define PSP_FDESC int#endif#ifdef PSP_THREAD_SUPPORT#ifdef PSP_PTHREAD#include <pthread.h>#define psp_thread_t pthread_t#endif /* PSP_PTHREAD */#ifdef PSP_WINTHREAD#define psp_thread_t long#endif /* PSP_WINTHREAD */#else /* PSP_THREAD_SUPPORT */#define psp_thread_t int#endif /* PSP_THREAD_SUPPORT */extern int psp_inited;extern int psp_terminating;int psp_syncInit(void);void psp_syncShutdown(void);void psp_syncTerm(void);int psp_memInit(void);void psp_memTerm(void);int psp_fileInit(void);void psp_fileTerm(void);int psp_osInit(void);void psp_osTerm(void);void psp_flClose(PSP_FDESC);long psp_flLastAccess(PSP_FDESC);short psp_flLock(PSP_FDESC);long psp_flModTime(PSP_FDESC);short psp_flOpen(const DB_TCHAR *, unsigned int, unsigned short, PSP_FDESC *);size_t psp_flRead(PSP_FDESC, void *, size_t);void psp_flSeek(PSP_FDESC, size_t, int);size_t psp_flSeekRead(PSP_FDESC, size_t, void *, size_t);size_t psp_flSeekWrite(PSP_FDESC, size_t, const void *, size_t);int psp_flSetSize(PSP_FDESC, size_t);void psp_flSync(PSP_FDESC);size_t psp_flSize(PSP_FDESC);void psp_flUnlock(PSP_FDESC);size_t psp_flWrite(PSP_FDESC, const void *, size_t);psp_thread_t psp_threadId(void);/* Network definitions */typedef struct { long db_star_id; long msglen;} MSG_HDR;#define DB_STAR_ID 0x239A03CF
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -