| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/globals.h" | 5 #include "platform/globals.h" |
| 6 #if defined(TARGET_OS_MACOS) | 6 #if defined(TARGET_OS_MACOS) |
| 7 | 7 |
| 8 #include "bin/process.h" | 8 #include "bin/process.h" |
| 9 | 9 |
| 10 #include <errno.h> // NOLINT | 10 #include <errno.h> // NOLINT |
| 11 #include <fcntl.h> // NOLINT | 11 #include <fcntl.h> // NOLINT |
| 12 #include <poll.h> // NOLINT | 12 #include <poll.h> // NOLINT |
| 13 #include <signal.h> // NOLINT | 13 #include <signal.h> // NOLINT |
| 14 #include <stdio.h> // NOLINT | 14 #include <stdio.h> // NOLINT |
| 15 #include <stdlib.h> // NOLINT | 15 #include <stdlib.h> // NOLINT |
| 16 #include <string.h> // NOLINT | 16 #include <string.h> // NOLINT |
| 17 #include <unistd.h> // NOLINT | 17 #include <unistd.h> // NOLINT |
| 18 | 18 |
| 19 #include "bin/fdutils.h" | 19 #include "bin/fdutils.h" |
| 20 #include "bin/lockers.h" |
| 20 #include "bin/log.h" | 21 #include "bin/log.h" |
| 21 #include "bin/thread.h" | 22 #include "bin/thread.h" |
| 22 | 23 |
| 23 #include "platform/signal_blocker.h" | 24 #include "platform/signal_blocker.h" |
| 24 | 25 |
| 25 | 26 |
| 26 extern char **environ; | 27 extern char **environ; |
| 27 | 28 |
| 28 | 29 |
| 29 namespace dart { | 30 namespace dart { |
| (...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 bzero(&act, sizeof(act)); | 789 bzero(&act, sizeof(act)); |
| 789 act.sa_handler = SIG_DFL; | 790 act.sa_handler = SIG_DFL; |
| 790 VOID_NO_RETRY_EXPECTED(sigaction(signal, &act, NULL)); | 791 VOID_NO_RETRY_EXPECTED(sigaction(signal, &act, NULL)); |
| 791 } | 792 } |
| 792 } | 793 } |
| 793 | 794 |
| 794 } // namespace bin | 795 } // namespace bin |
| 795 } // namespace dart | 796 } // namespace dart |
| 796 | 797 |
| 797 #endif // defined(TARGET_OS_MACOS) | 798 #endif // defined(TARGET_OS_MACOS) |
| OLD | NEW |