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

📄 osstdio.h

📁 一个Linux下的软猫驱动
💻 H
字号:
/* * Copyright (c) 2003-2004 Linuxant inc. * Copyright (c) 2001-2003 Conexant Systems, Inc. * * NOTE: The use and distribution of this software is governed by the terms in * the file LICENSE, which is included in the package. You must read this and * agree to these terms before using or distributing this software. * */#ifndef __OSSTDIO_H__#define __OSSTDIO_H__#ifdef __cplusplusextern "C"{#endif#if ( UK_MODE == UK_KERNEL )struct file;typedef struct file FILE;#define SEEK_SET		0x00000000#define SEEK_CUR		0x00000001#define SEEK_END		0x00000002#define EOF	(-1)#ifndef OS_NOREDEFS#define fopen(p, m) OsFOpen(p, m, NULL)#define fread OsFRead#define fwrite OsFWrite#define fclose OsFClose#define fseek OsFSeek#endif // OS_NOREDEFS__shimcall__FILE * OsFOpen(const char *, const char *, int *);__shimcall__size_t OsFRead(void *, size_t, size_t, FILE *, int *);__shimcall__size_t OsFWrite(const void *, size_t, size_t, FILE *, int *);__shimcall__int OsFClose(FILE *);__shimcall__int OsFSeek( FILE *stream, long offset, int origin );#else // ( UK_MODE == UK_KERNEL )#include <stdio.h>#define OsFOpen		fopen#define OsFRead		fread#define OsFWrite	fwrite#define OsFClose	fclose#define OsFSeek		fseek#endif // UK_MODE == UK_KERNEL#ifdef __cplusplus}#endif#endif /* __OSSTDIO_H__ */

⌨️ 快捷键说明

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