YARP
Yet Another Robot Platform
PlatformSysStat.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 
7 #ifndef YARP_OS_IMPL_PLATFORMSYSSTAT_H
8 #define YARP_OS_IMPL_PLATFORMSYSSTAT_H
9 
10 #include <yarp/conf/system.h>
11 #ifdef YARP_HAS_ACE
12 # include <ace/OS_NS_sys_stat.h>
13 // In one the ACE headers there is a definition of "main" for WIN32
14 # ifdef main
15 # undef main
16 # endif
17 #else
18 # include <sys/stat.h>
19 #endif
20 
21 namespace yarp {
22 namespace os {
23 namespace impl {
24 
25 #if defined(YARP_HAS_ACE)
26 typedef ACE_stat YARP_stat;
27 using ACE_OS::mkdir;
28 using ACE_OS::stat;
29 #else
30 typedef struct ::stat YARP_stat;
33 #endif
34 
35 } // namespace impl
36 } // namespace os
37 } // namespace yarp
38 
39 #endif // YARP_OS_IMPL_PLATFORMSYSSTAT_H
struct ::stat YARP_stat
int mkdir(const char *p)
Portable wrapper for the mkdir() function.
Definition: Os.cpp:37
int stat(const char *path)
Portable wrapper for the stat() function.
Definition: Os.cpp:85
The main, catch-all namespace for YARP.
Definition: dirs.h:16