OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 fclose(file); | 140 fclose(file); |
141 return NULL; | 141 return NULL; |
142 } | 142 } |
143 | 143 |
144 | 144 |
145 bool OS::Remove(const char* path) { | 145 bool OS::Remove(const char* path) { |
146 return (remove(path) == 0); | 146 return (remove(path) == 0); |
147 } | 147 } |
148 | 148 |
149 | 149 |
| 150 FILE* OS::OpenTemporaryFile() { |
| 151 return tmpfile(); |
| 152 } |
| 153 |
| 154 |
150 const char* const OS::LogFileOpenMode = "w"; | 155 const char* const OS::LogFileOpenMode = "w"; |
151 | 156 |
152 | 157 |
153 void OS::Print(const char* format, ...) { | 158 void OS::Print(const char* format, ...) { |
154 va_list args; | 159 va_list args; |
155 va_start(args, format); | 160 va_start(args, format); |
156 VPrint(format, args); | 161 VPrint(format, args); |
157 va_end(args); | 162 va_end(args); |
158 } | 163 } |
159 | 164 |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 return ntohl(value); | 440 return ntohl(value); |
436 } | 441 } |
437 | 442 |
438 | 443 |
439 Socket* OS::CreateSocket() { | 444 Socket* OS::CreateSocket() { |
440 return new POSIXSocket(); | 445 return new POSIXSocket(); |
441 } | 446 } |
442 | 447 |
443 | 448 |
444 } } // namespace v8::internal | 449 } } // namespace v8::internal |
OLD | NEW |