file2.h

来自「不错的东西 请查看 WINCE OS」· C头文件 代码 · 共 56 行

H
56
字号
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// This source code is licensed under Microsoft Shared Source License
// Version 1.0 for Windows CE.
// For a copy of the license visit http://go.microsoft.com/fwlink/?LinkId=3223.
//
/***
*file2.h - auxiliary file structure used internally by file run-time routines
*
*
*Purpose:
*   This file defines the auxiliary file structure used internally by
*   the file run time routines.
*
*   [Internal]
*
****/

#ifndef _INC_FILE2
#define _INC_FILE2

#ifdef __cplusplus
extern "C" {
#endif

/* Additional _iobuf[]._flag values
 *
 *  _IOSETVBUF - Indicates file was buffered via a setvbuf (or setbuf call).
 *       Currently used ONLY in _filbuf.c, _getbuf.c, fseek.c and
 *       setvbuf.c, to disable buffer resizing on "random access"
 *       files if the buffer was user-installed.
 */

#define _IOYOURBUF  0x0100
#define _IOSETVBUF  0x0400
#define _IOFEOF     0x0800
#define _IOFLRTN    0x1000
#define _IOCTRLZ    0x2000
#define _IOCOMMIT   0x4000


/* General use macros */

#define inuse(s)    ((s)->_flag & (_IOREAD|_IOWRT|_IORW))
#define mbuf(s)     ((s)->_flag & _IOMYBUF)
#define bigbuf(s)   ((s)->_flag & (_IOMYBUF|_IOYOURBUF))
#define anybuf(s)   ((s)->_flag & (_IOMYBUF|_IONBF|_IOYOURBUF))

#ifdef __cplusplus
}
#endif

#endif  /* _INC_FILE2 */

⌨️ 快捷键说明

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