📄 io.h
字号:
/* * @(#)io.h 1.7 06/10/10 * * Copyright 1990-2008 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version * 2 only, as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License version 2 for more details (a copy is * included at /legal/license.txt). * * You should have received a copy of the GNU General Public License * version 2 along with this work; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA * * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa * Clara, CA 95054 or visit www.sun.com if you need additional * information or have any questions. * */#ifndef _POSIX_IO_H#define _POSIX_IO_HCVMInt32POSIXioGetLastErrorString(char *buf, CVMInt32 len);#ifndef CVMioGetLastErrorString#define CVMioGetLastErrorString POSIXioGetLastErrorString#endifchar *POSIXioReturnLastErrorString(void);#ifndef CVMioReturnLastErrorString#define CVMioReturnLastErrorString POSIXioReturnLastErrorString#endifchar *POSIXioNativePath(char *path);#ifndef CVMioNativePath#define CVMioNativePath POSIXioNativePath#endifCVMInt32POSIXioFileType(const char *path);#ifndef CVMioFileType#define CVMioFileType POSIXioFileType#endifCVMInt32POSIXioOpen(const char *name, CVMInt32 openMode, CVMInt32 filePerm);#ifndef CVMioOpen#define CVMioOpen POSIXioOpen#endifCVMInt32POSIXioClose(CVMInt32 fd);#ifndef CVMioClose#define CVMioClose POSIXioClose#endifCVMInt64POSIXioSeek(CVMInt32 fd, CVMInt64 offset, CVMInt32 whence);#ifndef CVMioSeek#define CVMioSeek POSIXioSeek#endifCVMInt32POSIXioSetLength(CVMInt32 fd, CVMInt64 length);#ifndef CVMioSetLength#define CVMioSetLength POSIXioSetLength#endifCVMInt32POSIXioSync(CVMInt32 fd);#ifndef CVMioSync#define CVMioSync POSIXioSync#endifCVMInt32POSIXioAvailable(CVMInt32 fd, CVMInt64 *bytes);#ifndef CVMioAvailable#define CVMioAvailable POSIXioAvailable#endifCVMInt32POSIXioRead(CVMInt32 fd, void *buf, CVMUint32 nBytes);#ifndef CVMioRead#define CVMioRead POSIXioRead#endifCVMInt32POSIXioWrite(CVMInt32 fd, const void *buf, CVMUint32 nBytes);#ifndef CVMioWrite#define CVMioWrite POSIXioWrite#endifCVMInt32POSIXioFileSizeFD(CVMInt32 fd, CVMInt64 *size);#ifndef CVMioFileSizeFD#define CVMioFileSizeFD POSIXioFileSizeFD#endif#endif /* _POSIX_IO_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -