summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-05 09:01:49 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-05 09:01:49 +0000
commit8aa6c16eeb96d6a66a2946f5048126f175f9f609 (patch)
tree1997d2931a01849ae88d7d6a1d42dceae26ada56
parent4379f0fe48a40e1ff6b343bbcff542efbda1f4f8 (diff)
downloadsamba-8aa6c16eeb96d6a66a2946f5048126f175f9f609.tar.gz
samba-8aa6c16eeb96d6a66a2946f5048126f175f9f609.tar.xz
samba-8aa6c16eeb96d6a66a2946f5048126f175f9f609.zip
test for creat64()
-rwxr-xr-xsource/configure2
-rw-r--r--source/configure.in2
-rw-r--r--source/include/config.h.in3
-rw-r--r--source/smbwrapper/wrapped.c2
4 files changed, 6 insertions, 3 deletions
diff --git a/source/configure b/source/configure
index 8f2c421b01c..61112d2d59a 100755
--- a/source/configure
+++ b/source/configure
@@ -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
diff --git a/source/configure.in b/source/configure.in
index 945dceb5ec2..a16ed13f789 100644
--- a/source/configure.in
+++ b/source/configure.in
@@ -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>
diff --git a/source/include/config.h.in b/source/include/config.h.in
index b5c3fa7b269..930832a8bd5 100644
--- a/source/include/config.h.in
+++ b/source/include/config.h.in
@@ -360,6 +360,9 @@
/* 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
diff --git a/source/smbwrapper/wrapped.c b/source/smbwrapper/wrapped.c
index 65550b19cc8..6bfb465828b 100644
--- a/source/smbwrapper/wrapped.c
+++ b/source/smbwrapper/wrapped.c
@@ -803,12 +803,12 @@
}
#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);