linux.hh (11381:516213d2f0cf) | linux.hh (11382:654272b82e94) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * Copyright (c) 2009 The University of Edinburgh 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 84 unchanged lines hidden (view full) --- 93 /// For times(). 94 struct tms { 95 int32_t tms_utime; //!< user time 96 int32_t tms_stime; //!< system time 97 int32_t tms_cutime; //!< user time of children 98 int32_t tms_cstime; //!< system time of children 99 }; 100 | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * Copyright (c) 2009 The University of Edinburgh 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 84 unchanged lines hidden (view full) --- 93 /// For times(). 94 struct tms { 95 int32_t tms_utime; //!< user time 96 int32_t tms_stime; //!< system time 97 int32_t tms_cutime; //!< user time of children 98 int32_t tms_cstime; //!< system time of children 99 }; 100 |
101 static const int TGT_SIGHUP = 0x000001; 102 static const int TGT_SIGINT = 0x000002; 103 static const int TGT_SIGQUIT = 0x000003; 104 static const int TGT_SIGILL = 0x000004; 105 static const int TGT_SIGTRAP = 0x000005; 106 static const int TGT_SIGABRT = 0x000006; 107 static const int TGT_SIGIOT = 0x000006; 108 static const int TGT_SIGBUS = 0x000007; 109 static const int TGT_SIGFPE = 0x000008; 110 static const int TGT_SIGKILL = 0x000009; 111 static const int TGT_SIGUSR1 = 0x00000a; 112 static const int TGT_SIGSEGV = 0x00000b; 113 static const int TGT_SIGUSR2 = 0x00000c; 114 static const int TGT_SIGPIPE = 0x00000d; 115 static const int TGT_SIGALRM = 0x00000e; 116 static const int TGT_SIGTERM = 0x00000f; 117 static const int TGT_SIGSTKFLT = 0x000010; 118 static const int TGT_SIGCHLD = 0x000011; 119 static const int TGT_SIGCONT = 0x000012; 120 static const int TGT_SIGSTOP = 0x000013; 121 static const int TGT_SIGTSTP = 0x000014; 122 static const int TGT_SIGTTIN = 0x000015; 123 static const int TGT_SIGTTOU = 0x000016; 124 static const int TGT_SIGURG = 0x000017; 125 static const int TGT_SIGXCPU = 0x000018; 126 static const int TGT_SIGXFSZ = 0x000019; 127 static const int TGT_SIGVTALRM = 0x00001a; 128 static const int TGT_SIGPROF = 0x00001b; 129 static const int TGT_SIGWINCH = 0x00001c; 130 static const int TGT_SIGIO = 0x00001d; 131 static const int TGT_SIGPOLL = 0x00001d; 132 static const int TGT_SIGPWR = 0x00001e; 133 static const int TGT_SIGSYS = 0x00001f; 134 static const int TGT_SIGUNUSED = 0x00001f; 135 |
|
101 /// This table maps the target open() flags to the corresponding 102 /// host open() flags. 103 static SyscallFlagTransTable openFlagTable[]; 104 105 /// Number of entries in openFlagTable[]. 106 static const int NUM_OPEN_FLAGS; 107 108 //@{ 109 /// open(2) flag values. | 136 /// This table maps the target open() flags to the corresponding 137 /// host open() flags. 138 static SyscallFlagTransTable openFlagTable[]; 139 140 /// Number of entries in openFlagTable[]. 141 static const int NUM_OPEN_FLAGS; 142 143 //@{ 144 /// open(2) flag values. |
110 static const int TGT_O_RDONLY = 00000000; //!< O_RDONLY 111 static const int TGT_O_WRONLY = 00000001; //!< O_WRONLY 112 static const int TGT_O_RDWR = 00000002; //!< O_RDWR 113 static const int TGT_O_CREAT = 00000100; //!< O_CREAT 114 static const int TGT_O_EXCL = 00000200; //!< O_EXCL 115 static const int TGT_O_NOCTTY = 00000400; //!< O_NOCTTY 116 static const int TGT_O_TRUNC = 00001000; //!< O_TRUNC 117 static const int TGT_O_APPEND = 00002000; //!< O_APPEND 118 static const int TGT_O_NONBLOCK = 00004000; //!< O_NONBLOCK 119 static const int TGT_O_SYNC = 00010000; //!< O_SYNC 120 static const int TGT_FASYNC = 00020000; //!< FASYNC 121 static const int TGT_O_DIRECTORY = 00040000; //!< O_DIRECTORY 122 static const int TGT_O_NOFOLLOW = 00100000; //!< O_NOFOLLOW 123 static const int TGT_O_LARGEFILE = 00200000; //!< O_LARGEFILE 124 static const int TGT_O_DIRECT = 00400000; //!< O_DIRECT 125 static const int TGT_O_NOATIME = 01000000; //!< O_NOATIME | 145 static const int TGT_O_RDONLY = 000000000; //!< O_RDONLY 146 static const int TGT_O_WRONLY = 000000001; //!< O_WRONLY 147 static const int TGT_O_RDWR = 000000002; //!< O_RDWR 148 static const int TGT_O_CREAT = 000000100; //!< O_CREAT 149 static const int TGT_O_EXCL = 000000200; //!< O_EXCL 150 static const int TGT_O_NOCTTY = 000000400; //!< O_NOCTTY 151 static const int TGT_O_TRUNC = 000001000; //!< O_TRUNC 152 static const int TGT_O_APPEND = 000002000; //!< O_APPEND 153 static const int TGT_O_NONBLOCK = 000004000; //!< O_NONBLOCK 154 static const int TGT_O_DSYNC = 000010000; //!< O_DSYNC 155 static const int TGT_FASYNC = 000020000; //!< FASYNC 156 static const int TGT_O_DIRECT = 000400000; //!< O_DIRECT 157 static const int TGT_O_LARGEFILE = 000200000; //!< O_LARGEFILE 158 static const int TGT_O_DIRECTORY = 000040000; //!< O_DIRECTORY 159 static const int TGT_O_NOFOLLOW = 000100000; //!< O_NOFOLLOW 160 static const int TGT_O_NOATIME = 001000000; //!< O_NOATIME 161 static const int TGT_O_CLOEXEC = 002000000; //!< O_CLOEXEC 162 static const int TGT_O_SYNC = 004010000; //!< O_SYNC 163 static const int TGT_O_PATH = 010000000; //!< O_PATH |
126 //@} 127 128 /// For mmap(). 129 static const unsigned TGT_MAP_ANONYMOUS = 0x20; 130 static const unsigned TGT_MAP_FIXED = 0x10; 131 132 //@{ 133 /// ioctl() command codes. --- 31 unchanged lines hidden --- | 164 //@} 165 166 /// For mmap(). 167 static const unsigned TGT_MAP_ANONYMOUS = 0x20; 168 static const unsigned TGT_MAP_FIXED = 0x10; 169 170 //@{ 171 /// ioctl() command codes. --- 31 unchanged lines hidden --- |