YARP
Yet Another Robot Platform
PlatformSysStat.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3
* All rights reserved.
4
*
5
* This software may be modified and distributed under the terms of the
6
* BSD-3-Clause license. See the accompanying LICENSE file for details.
7
*/
8
9
10
#ifndef YARP_OS_IMPL_PLATFORMSYSSTAT_H
11
#define YARP_OS_IMPL_PLATFORMSYSSTAT_H
12
13
#include <
yarp/conf/system.h
>
14
#ifdef YARP_HAS_ACE
15
# include <ace/OS_NS_sys_stat.h>
16
// In one the ACE headers there is a definition of "main" for WIN32
17
# ifdef main
18
# undef main
19
# endif
20
#else
21
# include <sys/stat.h>
22
#endif
23
24
namespace
yarp
{
25
namespace
os {
26
namespace
impl {
27
28
#if defined(YARP_HAS_ACE)
29
typedef
ACE_stat
YARP_stat
;
30
using
ACE_OS::mkdir
;
31
using
ACE_OS::stat
;
32
#else
33
typedef
struct ::stat
YARP_stat
;
34
using ::mkdir
;
35
using ::stat
;
36
#endif
37
38
}
// namespace impl
39
}
// namespace os
40
}
// namespace yarp
41
42
#endif // YARP_OS_IMPL_PLATFORMSYSSTAT_H
yarp::os::impl::YARP_stat
struct ::stat YARP_stat
Definition:
PlatformSysStat.h:33
yarp::os::stat
int stat(const char *path)
Portable wrapper for the stat() function.
Definition:
Os.cpp:88
system.h
yarp::os::mkdir
int mkdir(const char *p)
Portable wrapper for the mkdir() function.
Definition:
Os.cpp:40
yarp
The main, catch-all namespace for YARP.
Definition:
environment.h:18
YARP
3.4.100+20201223.2+gitb8ea4d712
src
libYARP_os
src
yarp
os
impl
PlatformSysStat.h
Generated on Sun Jan 3 2021 02:46:24 for YARP by
1.8.20