You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/08/04 18:37:15 UTC
svn commit: r800868 -
/commons/sandbox/runtime/trunk/src/main/native/configure
Author: mturk
Date: Tue Aug 4 16:37:15 2009
New Revision: 800868
URL: http://svn.apache.org/viewvc?rev=800868&view=rev
Log:
remove explicit CLOEXEC checks
Modified:
commons/sandbox/runtime/trunk/src/main/native/configure
Modified: commons/sandbox/runtime/trunk/src/main/native/configure
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/configure?rev=800868&r1=800867&r2=800868&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/configure (original)
+++ commons/sandbox/runtime/trunk/src/main/native/configure Tue Aug 4 16:37:15 2009
@@ -677,60 +677,9 @@
echo $rc
}
-have_sock_cloexec()
-{
- printf "Checking for %-32s" "SOCK_CLOEXEC flag" 1>&2
- cat > $test.c << EOF
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-int main() {return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;}
-EOF
- rc=0
- co="`$cc $ccflags $cppopts $test.c -o $test$exe 2>&1`"
- if [ ".$co" = . ]; then
- rc=1
- else
- test -x $test$exe && rc=1
- fi
- rm -rf $test.* $test *.pdb >/dev/null 2>&1 || true
- if [ $rc = 1 ]; then
- echo ok 1>&2
- else
- echo "not found" 1>&2
- fi
- echo $rc
-}
-
-have_file_cloexec()
-{
- printf "Checking for %-32s" "O_CLOEXEC flag" 1>&2
- cat > $test.c << EOF
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-int main() {return open("$test.c", O_RDONLY|O_CLOEXEC) == -1;}
-EOF
- rc=0
- co="`$cc $ccflags $cppopts $test.c -o $test$exe 2>&1`"
- if [ ".$co" = . ]; then
- rc=1
- else
- test -x $test$exe && rc=1
- fi
- rm -rf $test.* $test *.pdb >/dev/null 2>&1 || true
- if [ $rc = 1 ]; then
- echo ok 1>&2
- else
- echo "not found" 1>&2
- fi
- echo $rc
-}
-
have_flag_defined()
{
- printf "Checking for %-32s" "O_CLOEXEC flag" 1>&2
+ printf "Checking for %-32s" "$1 flag" 1>&2
cat > $test.c << EOF
#include <stdlib.h>
#include <sys/types.h>