Subversion Repositories filter_foundry

Compare Revisions

Regard whitespace Rev 192 → Rev 193

/trunk/telegraphics_common/tt/largefiles_forks.c
0,0 → 1,44
/*
This file is part of a common library
Copyright (C) 1990-2009 Toby Thain, toby@telegraphics.com.au
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
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 for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
 
#include "file_compat.h"
 
OSErr fsread_large(FILEREF refNum, FILECOUNT *count, void *buffPtr){
return FSReadFork(refNum, fsFromMark, 0, *count, buffPtr, count);
}
 
OSErr fswrite_large(FILEREF refNum, FILECOUNT *count, void *buffPtr){
return FSWriteFork(refNum, fsFromMark, 0, *count, buffPtr, count);
}
 
OSErr getfpos_large(FILEREF refNum, FILEPOS *filePos){
return FSGetForkPosition(refNum, filePos);
}
 
OSErr setfpos_large(FILEREF refNum, short posMode, FILEPOS posOff){
return FSSetForkPosition(refNum, posMode, posOff);
}
 
OSErr geteof_large(FILEREF refNum, FILEPOS *logEOF){
return FSGetForkSize(refNum, logEOF);
}
 
OSErr seteof_large(FILEREF refNum, FILEPOS logEOF){
return FSSetForkSize(refNum, fsFromStart, logEOF);
}