ace/coil/OS.h
Go to the documentation of this file.
1 // -*- C++ -*-
19 #ifndef COIL_OS_H
20 #define COIL_OS_H
21 
22 #include <ace/OS.h>
23 #include <ace/Get_Opt.h>
24 
25 extern "C"
26 {
27  extern char *optarg;
28 };
29 
30 namespace coil
31 {
32  typedef ACE_utsname utsname;
33  inline int uname(utsname* name)
34  {
35  return ACE_OS::uname(name);
36  }
37 
39  inline pid_t getpid()
40  {
41  return ACE_OS::getpid();
42  }
43  inline pid_t getppid()
44  {
45  return ACE_OS::getppid();
46  }
47 
48  inline char* getenv(const char *name)
49  {
50  return ACE_OS::getenv(name);
51  }
52 
53  typedef ACE_Get_Opt GetOpt;
54 };
55 
56 #endif // COIL_OS_H
pid_t getppid()
Get process ID of the parent process.
Definition: ace/coil/OS.h:43
::pid_t pid_t
Get process ID of the caller process.
Definition: ace/coil/OS.h:38
int uname(utsname *name)
Get System information.
Definition: ace/coil/OS.h:33
pid_t getpid()
Definition: ace/coil/OS.h:39
char * getenv(const char *name)
Get environment variable.
Definition: ace/coil/OS.h:48
ACE_Get_Opt GetOpt
Definition: ace/coil/OS.h:53
char * optarg
ACE_utsname utsname
Get System information.
Definition: ace/coil/OS.h:32
Common Object Interface Layer.


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:07:53