/[debian]/mimetic/branches/upstream/current/mimetic/os/file.h
ViewVC logotype

Contents of /mimetic/branches/upstream/current/mimetic/os/file.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 128 - (show annotations)
Sat Feb 25 16:49:20 2006 UTC (15 years, 5 months ago) by gregoa
File MIME type: text/plain
File size: 1337 byte(s)
[svn-inject] Installing original source of mimetic
1 /***************************************************************************
2 copyright : (C) 2002-2005 by Stefano Barbato
3 email : stefano@codesink.org
4
5 $Id: file.h,v 1.7 2005/02/23 10:26:15 tat Exp $
6 ***************************************************************************/
7
8 /***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16 #ifndef _MIMETIC_OS_FILE_H
17 #define _MIMETIC_OS_FILE_H
18 #include <sys/types.h>
19 #include <sys/stat.h>
20 #include <fcntl.h>
21 #include <cstdio>
22 #include <string>
23 #include <iterator>
24 #include <mimetic/libconfig.h>
25 #include <mimetic/os/stdfile.h>
26 #ifdef HAVE_MMAP
27 #include <mimetic/os/mmfile.h>
28 #endif
29
30 namespace mimetic
31 {
32
33 #if HAVE_MMAP == 1
34 typedef MMFile File;
35 #else
36 typedef StdFile File;
37 #endif
38
39 }
40
41
42
43 #endif
44

  ViewVC Help
Powered by ViewVC 1.1.26