[Lldb-commits] [lldb] r296070 - Switch NetBSD from paccept(2) to accept4(2)

Kamil Rytarowski via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 23 17:51:38 PST 2017

Author: kamil
Date: Thu Feb 23 19:51:38 2017
New Revision: 296070

URL: http://llvm.org/viewvc/llvm-project?rev=296070&view=rev
Switch NetBSD from paccept(2) to accept4(2)

NetBSD 8.0 will ship with accept4(2) in libc wrapping paccept(2).

This change reduces needless difference with other platforms.

Older versions of NetBSD will not be supported.

No functional change.

Sponsored by <The NetBSD Foundation>

Reviewers: joerg, emaste, labath, clayborg

Reviewed By: emaste, labath, clayborg

Subscribers: #lldb

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D30288


Modified: lldb/trunk/source/Host/common/Socket.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/Socket.cpp?rev=296070&r1=296069&r2=296070&view=diff
--- lldb/trunk/source/Host/common/Socket.cpp (original)
+++ lldb/trunk/source/Host/common/Socket.cpp Thu Feb 23 19:51:38 2017
@@ -443,11 +443,7 @@ NativeSocket Socket::AcceptSocket(Native
   if (!child_processes_inherit) {
     flags |= SOCK_CLOEXEC;
-#if defined(__NetBSD__)
-  NativeSocket fd = ::paccept(sockfd, addr, addrlen, nullptr, flags);
   NativeSocket fd = ::accept4(sockfd, addr, addrlen, flags);
   NativeSocket fd = ::accept(sockfd, addr, addrlen);

More information about the lldb-commits mailing list