/***************************************************************************\ * * * * * Copyright (C) 1999 Jan C. Depner * * * * This library is free software; you can redistribute it and/or * * modify it under the terms of version 2.1 of the GNU Lesser General * * Public License as published by the Free Software Foundation; * * * * This library 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 * * Lesser General Public License for more details. * * * * You should have received a copy of the GNU Lesser General Public * * License along with this library; if not, write to the Free Software * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * * 02110-1301 USA or visit their web site at http://www.fsf.org * * * * * \***************************************************************************/ #ifndef HUGE_IO #define HUGE_IO #include "nvtypes.h" #ifdef __cplusplus extern "C" { #endif #define MAX_SUB_FILE_SIZE (NV_INT32_MAX - 65536.0) NV_INT32 hfseek (NV_INT32 handle, NV_INT64 offset, NV_INT32 whence); NV_INT32 hfopen (NV_CHAR *path, NV_CHAR *mode); size_t hfread (void *ptr, size_t size, size_t nmemb, NV_INT32 handle); size_t hfwrite (void *ptr, size_t size, size_t nmemb, NV_INT32 handle); NV_INT32 hftruncate (NV_INT32 handle, NV_INT64 length); NV_INT64 hftell (NV_INT32 handle); NV_INT32 hfclose (NV_INT32 handle); void hrewind (NV_INT32 handle); void hfflush (NV_INT32 handle); #ifdef __cplusplus } #endif #endif