OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #if defined(FLETCH_TARGET_OS_LINUX) | 5 #if defined(FLETCH_TARGET_OS_LINUX) |
6 | 6 |
7 #include "src/vm/event_handler.h" | 7 #include "src/vm/event_handler.h" |
8 | 8 |
9 #include <sys/epoll.h> | 9 #include <sys/epoll.h> |
10 #include <sys/types.h> | 10 #include <sys/types.h> |
11 #include <fcntl.h> | 11 #include <fcntl.h> |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 if (result == -1) return Failure::index_out_of_bounds(); | 130 if (result == -1) return Failure::index_out_of_bounds(); |
131 // Only if the call to epoll_ctl succeeded do we actually have a reference to | 131 // Only if the call to epoll_ctl succeeded do we actually have a reference to |
132 // the port. | 132 // the port. |
133 port->IncrementRef(); | 133 port->IncrementRef(); |
134 return process->program()->null_object(); | 134 return process->program()->null_object(); |
135 } | 135 } |
136 | 136 |
137 } // namespace fletch | 137 } // namespace fletch |
138 | 138 |
139 #endif // defined(FLETCH_TARGET_OS_LINUX) | 139 #endif // defined(FLETCH_TARGET_OS_LINUX) |
OLD | NEW |