2003-01-17 16:50:36 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2002 by Daniel Stenberg <daniel@haxx.se>
|
|
|
|
*
|
|
|
|
* All files in this archive are subject to the GNU General Public License.
|
|
|
|
* See the file COPYING in the source tree root for full license agreement.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2003-02-14 20:51:10 +00:00
|
|
|
#ifndef _FILE_H_
|
|
|
|
|
2003-05-30 03:55:32 +00:00
|
|
|
#ifndef __MINGW32__
|
2003-05-30 01:59:32 +00:00
|
|
|
#include <io.h>
|
|
|
|
#include <fcntl.h>
|
2003-05-30 03:55:32 +00:00
|
|
|
#endif
|
2003-05-30 01:59:32 +00:00
|
|
|
|
2003-07-01 23:39:05 +00:00
|
|
|
#ifndef _commit
|
|
|
|
extern int _commit( int handle );
|
|
|
|
#endif
|
|
|
|
|
2003-01-17 16:50:36 +00:00
|
|
|
int win32_rename(char *oldpath, char *newpath);
|
2003-03-18 00:39:57 +00:00
|
|
|
int win32_filesize(int fd);
|
2003-01-17 16:50:36 +00:00
|
|
|
|
2003-07-25 23:28:32 +00:00
|
|
|
#define rename win32_rename
|
|
|
|
#define filesize win32_filesize
|
|
|
|
#define fsync _commit
|
2003-01-17 16:50:36 +00:00
|
|
|
|
2003-02-07 10:21:50 +00:00
|
|
|
#include "../../firmware/include/file.h"
|
2003-01-17 16:50:36 +00:00
|
|
|
|
2003-02-14 20:51:10 +00:00
|
|
|
#undef rename
|
2003-03-18 21:45:13 +00:00
|
|
|
|
2003-02-14 20:51:10 +00:00
|
|
|
|
|
|
|
#endif
|