]> sourceware.org Git - systemtap.git/commitdiff
syscall testsuite: accept4 SOCK_CLOEXEC
authorFrank Ch. Eigler <fche@redhat.com>
Mon, 28 Apr 2014 14:55:19 +0000 (10:55 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Mon, 28 Apr 2014 14:55:19 +0000 (10:55 -0400)
Add a conditional #define for RHEL5 era kernels.

testsuite/systemtap.syscall/accept4.c

index c14119d3f4e35dc40cea4079aebe653da431b08d..6999815045f7e4bd65fd0db9249e6d18bf8092fd 100644 (file)
@@ -45,6 +45,9 @@ int main()
     accept4(s, (struct sockaddr *)&sin1, (socklen_t *)-1, 0);
     //staptest// accept4 (NNNN, XXXX, 0x[f]+, 0x0) = -NNNN (EINVAL)
 
+#ifndef SOCK_CLOEXEC
+#define SOCK_CLOEXEC 02000000
+#endif
     accept4(s, (struct sockaddr *)&sin1, (socklen_t *)&sinlen, SOCK_CLOEXEC);
     //staptest// accept4 (NNNN, XXXX, XXXX, SOCK_CLOEXEC) = -NNNN (EINVAL)
 
This page took 0.030485 seconds and 5 git commands to generate.