]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
There is no __accept in any libc or libpthread that I can find so
authorTom Hughes <tom@compton.nu>
Fri, 4 Jun 2004 21:42:18 +0000 (21:42 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 4 Jun 2004 21:42:18 +0000 (21:42 +0000)
it isn't clear why we were intercepting that and only aliasing accept
to it. Switched to intercepting accept directly instead.

CCMAIL: 76869-done@bugs.kde.org

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2404

coregrind/vg_libpthread.c

index e1afe16512634cb912d80db6b41892dcf5e5dd3c..b3203330d3051c2f83640bc1e639e82bf81502e8 100644 (file)
@@ -2066,14 +2066,14 @@ int sigaction(int signum,
 }
 
 typedef 
-int (*__accept_t)(int fd, struct sockaddr *addr, socklen_t *len);
+int (*accept_t)(int fd, struct sockaddr *addr, socklen_t *len);
 
-WEAK int __accept(int fd, struct sockaddr *addr, socklen_t *len)
+WEAK
+int accept(int fd, struct sockaddr *addr, socklen_t *len)
 {
    __my_pthread_testcancel();
-   return FORWARD(__accept, fd, addr, len);
+   return FORWARD(accept, fd, addr, len);
 }
-strong_alias(__accept, accept);
 
 typedef
 int (*connect_t)(int sockfd,