Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/platform-posix.cc

Issue 6240002: Introducing MemoryMappedExternalResource for creating an external... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/platform-openbsd.cc ('k') | src/platform-solaris.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 // ---------------------------------------------------------------------------- 116 // ----------------------------------------------------------------------------
117 // POSIX stdio support. 117 // POSIX stdio support.
118 // 118 //
119 119
120 FILE* OS::FOpen(const char* path, const char* mode) { 120 FILE* OS::FOpen(const char* path, const char* mode) {
121 return fopen(path, mode); 121 return fopen(path, mode);
122 } 122 }
123 123
124 124
125 bool OS::Remove(const char* path) {
126 return (remove(path) == 0);
127 }
128
129
125 const char* OS::LogFileOpenMode = "w"; 130 const char* OS::LogFileOpenMode = "w";
126 131
127 132
128 void OS::Print(const char* format, ...) { 133 void OS::Print(const char* format, ...) {
129 va_list args; 134 va_list args;
130 va_start(args, format); 135 va_start(args, format);
131 VPrint(format, args); 136 VPrint(format, args);
132 va_end(args); 137 va_end(args);
133 } 138 }
134 139
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 return ntohl(value); 390 return ntohl(value);
386 } 391 }
387 392
388 393
389 Socket* OS::CreateSocket() { 394 Socket* OS::CreateSocket() {
390 return new POSIXSocket(); 395 return new POSIXSocket();
391 } 396 }
392 397
393 398
394 } } // namespace v8::internal 399 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-openbsd.cc ('k') | src/platform-solaris.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698