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

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

Issue 9139051: Cosmetic changes ("set up" is a verb, "setup" is a noun). (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 } 454 }
455 455
456 456
457 bool POSIXSocket::SetReuseAddress(bool reuse_address) { 457 bool POSIXSocket::SetReuseAddress(bool reuse_address) {
458 int on = reuse_address ? 1 : 0; 458 int on = reuse_address ? 1 : 0;
459 int status = setsockopt(socket_, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)); 459 int status = setsockopt(socket_, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on));
460 return status == 0; 460 return status == 0;
461 } 461 }
462 462
463 463
464 bool Socket::Setup() { 464 bool Socket::SetUp() {
465 // Nothing to do on POSIX. 465 // Nothing to do on POSIX.
466 return true; 466 return true;
467 } 467 }
468 468
469 469
470 int Socket::LastError() { 470 int Socket::LastError() {
471 return errno; 471 return errno;
472 } 472 }
473 473
474 474
(...skipping 16 matching lines...) Expand all
491 return ntohl(value); 491 return ntohl(value);
492 } 492 }
493 493
494 494
495 Socket* OS::CreateSocket() { 495 Socket* OS::CreateSocket() {
496 return new POSIXSocket(); 496 return new POSIXSocket();
497 } 497 }
498 498
499 499
500 } } // namespace v8::internal 500 } } // 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