Debian Codegraph @

Contrib/VPatch/Source/GenPat/POSIXUtil.h

raw
1 //---------------------------------------------------------------------------
2 // POSIXUtil.h
3 //---------------------------------------------------------------------------
4 // -=* VPatch *=-
5 //---------------------------------------------------------------------------
6 // Copyright (C) 2001-2005 Koen van de Sande / Van de Sande Productions
7 //---------------------------------------------------------------------------
8 // Website: http://www.tibed.net/vpatch
9 //
10 // This software is provided 'as-is', without any express or implied
11 // warranty. In no event will the authors be held liable for any damages
12 // arising from the use of this software.
13 //
14 // Permission is granted to anyone to use this software for any purpose,
15 // including commercial applications, and to alter it and redistribute it
16 // freely, subject to the following restrictions:
17 //
18 // 1. The origin of this software must not be misrepresented; you must not
19 // claim that you wrote the original software. If you use this software
20 // in a product, an acknowledgment in the product documentation would be
21 // appreciated but is not required.
22 // 2. Altered source versions must be plainly marked as such, and must not be
23 // misrepresented as being the original software.
24 // 3. This notice may not be removed or altered from any source distribution.
25 //
26 // Unicode support by Jim Park -- 08/29/2007
27
28 #if !defined(POSIXUtil_H)
29 #define POSIXUtil_H
30 #include "GlobalTypes.h"
31 #include <string>
32 #include "tchar.h"
33
34 using namespace std;
35
36 namespace POSIX {
37 typedef struct ALT_FILETIME {
38 uint32_t dwLowDateTime;
39 uint32_t dwHighDateTime;
40 } ALT_FILETIME;
41
42 ALT_FILETIME getFileTime(const TCHAR* sFileName);
43 uint32_t getFileSize(const TCHAR* sFileName);
44 tstring getTempFile();
45 }
46
47 #endif // POSIXUtil_H