From 8f0cd8aa22906c3e678738eeba20fc1a5c399b6c Mon Sep 17 00:00:00 2001 From: Sreeram Ramachandran Date: Tue, 13 May 2014 15:40:26 -0700 Subject: Mark sockets on accept(). (cherry picked from commit 58b1f3f6a30a660ad81637c2b50382c3d279243b) Change-Id: I5d09be413cf720fbed905f96313b007997ada76c --- libc/bionic/accept.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 libc/bionic/accept.cpp (limited to 'libc/bionic/accept.cpp') diff --git a/libc/bionic/accept.cpp b/libc/bionic/accept.cpp new file mode 100644 index 000000000..46b4efc65 --- /dev/null +++ b/libc/bionic/accept.cpp @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2014 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +int accept(int sockfd, sockaddr* addr, socklen_t* addrlen) { + return __netdClientDispatch.accept(sockfd, addr, addrlen); +} -- cgit v1.2.3