1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 83 unchanged lines hidden (view full) --- 92 93 //@{ 94 /// For setsysinfo(). 95 static const unsigned SSI_IEEE_FP_CONTROL = 14; //!< ieee_set_fp_control() 96 //@} 97 98 //@{ 99 /// ioctl() command codes. |
100 static const unsigned TGT_TIOCGETP = 0x40067408; 101 static const unsigned TGT_TIOCSETP = 0x80067409; 102 static const unsigned TGT_TIOCSETN = 0x8006740a; 103 static const unsigned TGT_TIOCSETC = 0x80067411; 104 static const unsigned TGT_TIOCGETC = 0x40067412; 105 static const unsigned TGT_FIONREAD = 0x4004667f; 106 static const unsigned TGT_TCGETS = 0x402c7413; 107 static const unsigned TGT_TCGETA = 0x40127417; 108 static const unsigned TGT_TCSETAW = 0x80147419; // 2.6.15 kernel |
109 //@} 110 |
111 static bool 112 isTtyReq(unsigned req) 113 { 114 switch (req) { 115 case TGT_TIOCGETP: 116 case TGT_TIOCSETP: 117 case TGT_TIOCSETN: 118 case TGT_TIOCSETC: 119 case TGT_TIOCGETC: 120 case TGT_TCGETS: 121 case TGT_TCGETA: 122 case TGT_TCSETAW: 123 return true; 124 default: 125 return false; 126 } 127 } 128 |
129 /// For table(). 130 static const int TBL_SYSINFO = 12; 131 132 /// Resource enumeration for getrlimit(). 133 enum rlimit_resources { 134 TGT_RLIMIT_CPU = 0, 135 TGT_RLIMIT_FSIZE = 1, 136 TGT_RLIMIT_DATA = 2, --- 32 unchanged lines hidden --- |