blob: 7f7aa063b7c3a4fa04d828ed21ac40718631b536 [file] [log] [blame]
Sreeram Ramachandran8f0cd8a2014-05-13 15:40:26 -07001/*
2 * Copyright (C) 2014 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Sreeram Ramachandran8f0cd8a2014-05-13 15:40:26 -070017#include <sys/socket.h>
18
19int accept(int sockfd, sockaddr* addr, socklen_t* addrlen) {
Sreeram Ramachandran903b7882014-05-19 13:39:57 -070020 return accept4(sockfd, addr, addrlen, 0);
Sreeram Ramachandran8f0cd8a2014-05-13 15:40:26 -070021}