test for creat64()
authorAndrew Tridgell <tridge@samba.org>
Mon, 5 Oct 1998 09:01:49 +0000 (09:01 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 5 Oct 1998 09:01:49 +0000 (09:01 +0000)
(This used to be commit 8aa6c16eeb96d6a66a2946f5048126f175f9f609)

source3/configure
source3/configure.in
source3/include/config.h.in
source3/smbwrapper/wrapped.c

index 8f2c421b01c76ebcade8c792b730e70dc0116fb8..61112d2d59a71e599ec7e735b959e0ed97a60666 100755 (executable)
@@ -4666,7 +4666,7 @@ else
 fi
 done
 
-for ac_func in open64 _open64 __open64
+for ac_func in open64 _open64 __open64 creat64
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 echo "configure:4673: checking for $ac_func" >&5
index 945dceb5ec2f82002d471f1af2c959f05917c595..a16ed13f789307f8361ed2f188aa99b062222c52 100644 (file)
@@ -184,7 +184,7 @@ AC_CHECK_FUNCS(_stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64)
 AC_CHECK_FUNCS(llseek _llseek __llseek readdir64 _readdir64 __readdir64)
 AC_CHECK_FUNCS(pread _pread __pread pread64 _pread64 __pread64)
 AC_CHECK_FUNCS(pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64)
-AC_CHECK_FUNCS(open64 _open64 __open64)
+AC_CHECK_FUNCS(open64 _open64 __open64 creat64)
 
 AC_CACHE_CHECK([for long long],samba_cv_have_longlong,[
 AC_TRY_RUN([#include <stdio.h>
index b5c3fa7b269067c3586c4c5e48b398e82c0ed2cb..930832a8bd5a1e997de002b66fbc335544f34282 100644 (file)
 /* Define if you have the connect function.  */
 #undef HAVE_CONNECT
 
+/* Define if you have the creat64 function.  */
+#undef HAVE_CREAT64
+
 /* Define if you have the crypt function.  */
 #undef HAVE_CRYPT
 
index 65550b19cc8bdbe84cf7c9aca703b894362e6f0e..6bfb465828b9559898bf172d7b66966d86ee7be1 100644 (file)
 }
 #endif
 
-#ifndef LINUX
  int creat(const char *path, mode_t mode)
 {
        return open(path, O_WRONLY|O_CREAT|O_TRUNC, mode);
 }
 
+#ifdef HAVE_CREAT64
  int creat64(const char *path, mode_t mode)
 {
        return open64(path, O_WRONLY|O_CREAT|O_TRUNC, mode);