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

Unified Diff: runtime/bin/socket_macos.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/socket_linux.cc ('k') | runtime/bin/socket_unsupported.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket_macos.cc
diff --git a/runtime/bin/socket_macos.cc b/runtime/bin/socket_macos.cc
index 1f01ab315fce8c674718774433550b7434a837ca..29edf920084fce925572fed7d73992c30199298e 100644
--- a/runtime/bin/socket_macos.cc
+++ b/runtime/bin/socket_macos.cc
@@ -9,7 +9,7 @@
#include "bin/socket.h"
-#include <errno.h> // NOLINT
+#include <errno.h> // NOLINT
#include "bin/fdutils.h"
#include "platform/signal_blocker.h"
@@ -20,12 +20,10 @@ namespace bin {
Socket::Socket(intptr_t fd)
: ReferenceCounted(), fd_(fd), port_(ILLEGAL_PORT) {}
-
void Socket::SetClosedFd() {
fd_ = kClosedFd;
}
-
static intptr_t Create(const RawAddr& addr) {
intptr_t fd;
fd = NO_RETRY_EXPECTED(socket(addr.ss.ss_family, SOCK_STREAM, 0));
@@ -43,7 +41,6 @@ static intptr_t Create(const RawAddr& addr) {
return fd;
}
-
static intptr_t Connect(intptr_t fd, const RawAddr& addr) {
intptr_t result = TEMP_FAILURE_RETRY(
connect(fd, &addr.addr, SocketAddress::GetAddrLength(addr)));
@@ -54,7 +51,6 @@ static intptr_t Connect(intptr_t fd, const RawAddr& addr) {
return -1;
}
-
intptr_t Socket::CreateConnect(const RawAddr& addr) {
intptr_t fd = Create(addr);
if (fd < 0) {
@@ -64,7 +60,6 @@ intptr_t Socket::CreateConnect(const RawAddr& addr) {
return Connect(fd, addr);
}
-
intptr_t Socket::CreateBindConnect(const RawAddr& addr,
const RawAddr& source_addr) {
intptr_t fd = Create(addr);
@@ -82,7 +77,6 @@ intptr_t Socket::CreateBindConnect(const RawAddr& addr,
return Connect(fd, addr);
}
-
intptr_t Socket::CreateBindDatagram(const RawAddr& addr, bool reuseAddress) {
intptr_t fd;
@@ -115,7 +109,6 @@ intptr_t Socket::CreateBindDatagram(const RawAddr& addr, bool reuseAddress) {
return fd;
}
-
intptr_t ServerSocket::CreateBindListen(const RawAddr& addr,
intptr_t backlog,
bool v6_only) {
@@ -169,13 +162,11 @@ intptr_t ServerSocket::CreateBindListen(const RawAddr& addr,
return fd;
}
-
bool ServerSocket::StartAccept(intptr_t fd) {
USE(fd);
return true;
}
-
intptr_t ServerSocket::Accept(intptr_t fd) {
intptr_t socket;
struct sockaddr clientaddr;
« no previous file with comments | « runtime/bin/socket_linux.cc ('k') | runtime/bin/socket_unsupported.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698