make ecore_file able to handle large files.
SVN revision: 30194
This commit is contained in:
parent
73e80593dc
commit
7c8c33371d
|
@ -31,7 +31,6 @@
|
|||
#endif
|
||||
|
||||
#include <Ecore_Data.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -54,8 +53,8 @@ extern "C" {
|
|||
|
||||
EAPI int ecore_file_init (void);
|
||||
EAPI int ecore_file_shutdown (void);
|
||||
EAPI time_t ecore_file_mod_time (const char *file);
|
||||
EAPI int ecore_file_size (const char *file);
|
||||
EAPI long long ecore_file_mod_time (const char *file);
|
||||
EAPI long long ecore_file_size (const char *file);
|
||||
EAPI int ecore_file_exists (const char *file);
|
||||
EAPI int ecore_file_is_dir (const char *file);
|
||||
EAPI int ecore_file_mkdir (const char *dir);
|
||||
|
|
|
@ -1,6 +1,14 @@
|
|||
/*
|
||||
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
||||
*/
|
||||
|
||||
#ifndef _FILE_OFFSET_BITS
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
#endif
|
||||
#ifndef __USE_FILE_OFFSET64 /* for large file support */
|
||||
#define __USE_FILE_OFFSET64
|
||||
#endif
|
||||
|
||||
#include <ctype.h>
|
||||
#include "ecore_file_private.h"
|
||||
#include <errno.h>
|
||||
|
@ -43,7 +51,7 @@ ecore_file_shutdown()
|
|||
return init;
|
||||
}
|
||||
|
||||
EAPI time_t
|
||||
EAPI long long
|
||||
ecore_file_mod_time(const char *file)
|
||||
{
|
||||
struct stat st;
|
||||
|
@ -52,7 +60,7 @@ ecore_file_mod_time(const char *file)
|
|||
return st.st_mtime;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
EAPI long long
|
||||
ecore_file_size(const char *file)
|
||||
{
|
||||
struct stat st;
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
#ifndef _FILE_OFFSET_BITS
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
#endif
|
||||
#ifndef __USE_FILE_OFFSET64 /* for large file support */
|
||||
#define __USE_FILE_OFFSET64
|
||||
#endif
|
||||
|
||||
#include "ecore_private.h"
|
||||
#include "Ecore.h"
|
||||
#include "Ecore_File.h"
|
||||
|
|
Loading…
Reference in New Issue