linux.hh (12591:48dfacae20ba) linux.hh (13570:b6484720c6a9)
1/*
2 * Copyright (c) 2004-2009 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;

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

148 };
149
150 // For writev/readv
151 struct tgt_iovec {
152 uint64_t iov_base; // void *
153 uint64_t iov_len;
154 };
155
1/*
2 * Copyright (c) 2004-2009 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;

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

148 };
149
150 // For writev/readv
151 struct tgt_iovec {
152 uint64_t iov_base; // void *
153 uint64_t iov_len;
154 };
155
156 // For select().
157 // linux-3.14-src/include/uapi/linux/posix_types.h
158 struct fd_set{
159#ifndef LINUX__FD_SETSIZE
160#define LINUX__FD_SETSIZE 1024
161 unsigned long fds_bits[LINUX__FD_SETSIZE / (8 * sizeof(long))];
162#endif
163 };
164
156 //@{
157 /// ioctl() command codes.
158 static const unsigned TGT_TCGETS = 0x5401;
159 static const unsigned TGT_TCGETA = 0x5405;
160 static const unsigned TGT_TCSETAW = 0x5407;
161 static const unsigned TGT_FIONREAD = 0x541B;
162 //@}
163

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

260 static const unsigned TGT_CLONE_UNTRACED = 0x00800000;
261 static const unsigned TGT_CLONE_CHILD_SETTID = 0x01000000;
262 static const unsigned TGT_CLONE_NEWUTS = 0x04000000;
263 static const unsigned TGT_CLONE_NEWIPC = 0x08000000;
264 static const unsigned TGT_CLONE_NEWUSER = 0x10000000;
265 static const unsigned TGT_CLONE_NEWPID = 0x20000000;
266 static const unsigned TGT_CLONE_NEWNET = 0x40000000;
267 static const unsigned TGT_CLONE_IO = 0x80000000;
165 //@{
166 /// ioctl() command codes.
167 static const unsigned TGT_TCGETS = 0x5401;
168 static const unsigned TGT_TCGETA = 0x5405;
169 static const unsigned TGT_TCSETAW = 0x5407;
170 static const unsigned TGT_FIONREAD = 0x541B;
171 //@}
172

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

269 static const unsigned TGT_CLONE_UNTRACED = 0x00800000;
270 static const unsigned TGT_CLONE_CHILD_SETTID = 0x01000000;
271 static const unsigned TGT_CLONE_NEWUTS = 0x04000000;
272 static const unsigned TGT_CLONE_NEWIPC = 0x08000000;
273 static const unsigned TGT_CLONE_NEWUSER = 0x10000000;
274 static const unsigned TGT_CLONE_NEWPID = 0x20000000;
275 static const unsigned TGT_CLONE_NEWNET = 0x40000000;
276 static const unsigned TGT_CLONE_IO = 0x80000000;
277
278 // linux-3.13-src/include/uapi/linux/wait.h
279 static const unsigned TGT_WNOHANG = 0x00000001;
280 static const unsigned TGT_WUNTRACED = 0x00000002;
281 static const unsigned TGT_WSTOPPED = TGT_WUNTRACED;
282 static const unsigned TGT_WEXITED = 0x00000004;
283 static const unsigned TGT_WCONTINUED = 0x00000008;
284 static const unsigned TGT_WNOWAIT = 0x01000000;
268}; // class Linux
269
270#endif // __LINUX_HH__
285}; // class Linux
286
287#endif // __LINUX_HH__