OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/process/launch.h" | 5 #include "base/process/launch.h" |
6 | 6 |
7 #include <dirent.h> | 7 #include <dirent.h> |
8 #include <errno.h> | 8 #include <errno.h> |
9 #include <fcntl.h> | 9 #include <fcntl.h> |
10 #include <sched.h> | 10 #include <sched.h> |
11 #include <setjmp.h> | 11 #include <setjmp.h> |
12 #include <signal.h> | 12 #include <signal.h> |
| 13 #include <stddef.h> |
| 14 #include <stdint.h> |
13 #include <stdlib.h> | 15 #include <stdlib.h> |
14 #include <sys/resource.h> | 16 #include <sys/resource.h> |
15 #include <sys/syscall.h> | 17 #include <sys/syscall.h> |
16 #include <sys/time.h> | 18 #include <sys/time.h> |
17 #include <sys/types.h> | 19 #include <sys/types.h> |
18 #include <sys/wait.h> | 20 #include <sys/wait.h> |
19 #include <unistd.h> | 21 #include <unistd.h> |
20 | 22 |
21 #include <iterator> | 23 #include <iterator> |
22 #include <limits> | 24 #include <limits> |
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 jmp_buf env; | 783 jmp_buf env; |
782 if (setjmp(env) == 0) { | 784 if (setjmp(env) == 0) { |
783 return CloneAndLongjmpInChild(flags, ptid, ctid, &env); | 785 return CloneAndLongjmpInChild(flags, ptid, ctid, &env); |
784 } | 786 } |
785 | 787 |
786 return 0; | 788 return 0; |
787 } | 789 } |
788 #endif // defined(OS_LINUX) || defined(OS_NACL_NONSFI) | 790 #endif // defined(OS_LINUX) || defined(OS_NACL_NONSFI) |
789 | 791 |
790 } // namespace base | 792 } // namespace base |
OLD | NEW |