#include <cstdio>
#include <sys/types.h>
Include dependency graph for portable_fileio.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
int | portable_fseek (FILE *fp, off_t offset, int whence) |
| |
off_t | portable_ftell (FILE *fp) |
int portable_fseek | ( | FILE * | fp, | |
off_t | offset, | |||
int | whence | |||
) | [inline] |
Definition at line 43 of file portable_fileio.h.
Referenced by EMAN::EMUtil::exclude_numbers_io(), EMAN::PifIO::fseek_to(), EMAN::EMUtil::get_image_type(), EMAN::SerIO::get_nimg(), EMAN::EMUtil::process_numbers_io(), EMAN::EMUtil::process_region_io(), EMAN::GatanDM4::TagGroup::read(), EMAN::GatanDM4::TagEntry::read(), EMAN::Gatan::TagGroup::read(), EMAN::GatanDM4::TagData::read_array_data(), EMAN::Gatan::TagData::read_array_data(), EMAN::EMData::read_data(), EMAN::MrcIO::read_fei_header(), EMAN::MrcIO::update_stat(), EMAN::EMData::write_data(), EMAN::SpiderIO::write_single_data(), and EMAN::SpiderIO::write_single_header().
00044 { 00045 #if defined(HAVE_FSEEKO) 00046 return fseeko(fp, offset, whence); 00047 #elif defined(HAVE_FSEEK64) 00048 return fseek64(fp, offset, whence); 00049 #elif defined(__BEOS__) 00050 return _fseek(fp, offset, whence); 00051 #else 00052 return fseek(fp, offset, whence); 00053 #endif 00054 }
off_t portable_ftell | ( | FILE * | fp | ) | [inline] |
Definition at line 56 of file portable_fileio.h.
Referenced by EMAN::EMUtil::get_image_type().
00057 { 00058 #if defined(HAVE_FTELLO) 00059 return ftello(fp); 00060 #elif defined(HAVE_FTELL64) 00061 return ftell64(fp); 00062 #else 00063 return ftell(fp); 00064 #endif 00065 }