linux.hh (8600:b0d7c64ada19) linux.hh (9141:593fe25c86a6)
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 86 unchanged lines hidden (view full) ---

95
96 //@{
97 /// For getrusage().
98 static const int TGT_RUSAGE_SELF = 0;
99 static const int TGT_RUSAGE_CHILDREN = -1;
100 static const int TGT_RUSAGE_BOTH = -2;
101 //@}
102
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 86 unchanged lines hidden (view full) ---

95
96 //@{
97 /// For getrusage().
98 static const int TGT_RUSAGE_SELF = 0;
99 static const int TGT_RUSAGE_CHILDREN = -1;
100 static const int TGT_RUSAGE_BOTH = -2;
101 //@}
102
103 //@{
104 /// ioctl() command codes.
105 static const unsigned TIOCGETP_ = 0x5401;
106 static const unsigned TIOCSETP_ = 0x80067409;
107 static const unsigned TIOCSETN_ = 0x8006740a;
108 static const unsigned TIOCSETC_ = 0x80067411;
109 static const unsigned TIOCGETC_ = 0x40067412;
110 static const unsigned FIONREAD_ = 0x4004667f;
111 static const unsigned TIOCISATTY_ = 0x2000745e;
112 static const unsigned TIOCGETS_ = 0x402c7413;
113 static const unsigned TIOCGETA_ = 0x5405;
114 static const unsigned TCSETAW_ = 0x5407; // 2.6.15 kernel
115 //@}
116
117 /// For table().
118 static const int TBL_SYSINFO = 12;
119
120 /// Resource enumeration for getrlimit().
121 enum rlimit_resources {
122 TGT_RLIMIT_CPU = 0,
123 TGT_RLIMIT_FSIZE = 1,
124 TGT_RLIMIT_DATA = 2,

--- 117 unchanged lines hidden ---
103 /// For table().
104 static const int TBL_SYSINFO = 12;
105
106 /// Resource enumeration for getrlimit().
107 enum rlimit_resources {
108 TGT_RLIMIT_CPU = 0,
109 TGT_RLIMIT_FSIZE = 1,
110 TGT_RLIMIT_DATA = 2,

--- 117 unchanged lines hidden ---