4 #include <sys/socket.h>
7 // It's legit to have NULL buffers; before the bug was fixed Valgrind
8 // reported spurious errors for the buffers.
11 if (-1 != accept(99, NULL
, 0))
12 printf("accept succeeded?\n");
14 if (-1 != recvfrom(0, NULL
, 0, 0, NULL
, 0))
15 printf("recvfrom succeeded?\n");
17 if (-1 != getsockopt(0, 0, 0, NULL
, 0))
18 printf("getsockopt succeeded?\n");