Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

portable_fileio.h File Reference

#include <cstdio>
#include <sys/types.h>

Include dependency graph for portable_fileio.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

int portable_fseek (FILE *fp, off_t offset, int whence)
 
Id
portable_fileio.h,v 1.14 2008/07/25 22:17:27 gtang Exp

off_t portable_ftell (FILE *fp)


Function Documentation

int portable_fseek FILE *  fp,
off_t  offset,
int  whence
[inline]
 

Id
portable_fileio.h,v 1.14 2008/07/25 22:17:27 gtang Exp

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 }


Generated on Tue Jun 11 13:47:09 2013 for EMAN2 by  doxygen 1.3.9.1