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
21namespace yarp::os::impl {
22
23#if defined(YARP_HAS_ACE)
24typedef ACE_stat YARP_stat;
25using ACE_OS::mkdir;
26using ACE_OS::stat;
27#else
31#endif
32
33} // namespace yarp::os::impl
34
35#endif // YARP_OS_IMPL_PLATFORMSYSSTAT_H
The components from which ports and connections are built.
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