1
// **********************************************************************
3
// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
5
// This copy of Ice is licensed to you under the terms described in the
6
// ICE_LICENSE file included in this distribution.
8
// **********************************************************************
10
#ifndef ICE_PATCH2_OS_H
11
#define ICE_PATCH2_OS_H
13
#include <Ice/Config.h>
18
#ifndef ICE_PATCH2_API
19
# ifdef ICE_PATCH2_API_EXPORTS
20
# define ICE_PATCH2_API ICE_DECLSPEC_EXPORT
22
# define ICE_PATCH2_API ICE_DECLSPEC_IMPORT
31
typedef struct _stat structstat;
33
# define O_RDONLY _O_RDONLY
34
# define O_BINARY _O_BINARY
36
# define S_ISDIR(mode) ((mode) & _S_IFDIR)
37
# define S_ISREG(mode) ((mode) & _S_IFREG)
42
typedef struct stat structstat;
47
// BUGFIX: aCC errors if this is stat.
48
ICE_PATCH2_API int osstat(const std::string&, structstat*);
49
ICE_PATCH2_API int remove(const std::string&);
50
ICE_PATCH2_API int rename(const std::string&, const std::string&);
51
ICE_PATCH2_API int rmdir(const std::string&);
53
ICE_PATCH2_API int mkdir(const std::string&, int);
54
ICE_PATCH2_API FILE* fopen(const std::string&, const std::string&);
55
ICE_PATCH2_API int open(const std::string&, int);
56
ICE_PATCH2_API int getcwd(std::string&);