| 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 #ifndef BIN_FDUTILS_H_ | 5 #ifndef BIN_FDUTILS_H_ |
| 6 #define BIN_FDUTILS_H_ | 6 #define BIN_FDUTILS_H_ |
| 7 | 7 |
| 8 #include "bin/builtin.h" | 8 #include "bin/builtin.h" |
| 9 #include "platform/globals.h" | 9 #include "platform/globals.h" |
| 10 | 10 |
| 11 | |
| 12 namespace dart { | 11 namespace dart { |
| 13 namespace bin { | 12 namespace bin { |
| 14 | 13 |
| 15 class FDUtils { | 14 class FDUtils { |
| 16 public: | 15 public: |
| 17 static bool SetCloseOnExec(intptr_t fd); | 16 static bool SetCloseOnExec(intptr_t fd); |
| 18 | 17 |
| 19 static bool SetNonBlocking(intptr_t fd); | 18 static bool SetNonBlocking(intptr_t fd); |
| 20 static bool SetBlocking(intptr_t fd); | 19 static bool SetBlocking(intptr_t fd); |
| 21 | 20 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 42 | 41 |
| 43 private: | 42 private: |
| 44 DISALLOW_ALLOCATION(); | 43 DISALLOW_ALLOCATION(); |
| 45 DISALLOW_IMPLICIT_CONSTRUCTORS(FDUtils); | 44 DISALLOW_IMPLICIT_CONSTRUCTORS(FDUtils); |
| 46 }; | 45 }; |
| 47 | 46 |
| 48 } // namespace bin | 47 } // namespace bin |
| 49 } // namespace dart | 48 } // namespace dart |
| 50 | 49 |
| 51 #endif // BIN_FDUTILS_H_ | 50 #endif // BIN_FDUTILS_H_ |
| OLD | NEW |