From ed90faa57cb0e42bb4b7cefb16f8194c544d7277 Mon Sep 17 00:00:00 2001 From: mycroft Date: Fri, 10 Jul 1998 06:23:12 +0000 Subject: Use mkstemp(3). --- net/rsync/patches/patch-ab | 10 ++ net/rsync/patches/patch-ac | 292 +++++++++++++++++++++++++++++++++++++++++++++ net/rsync/patches/patch-ad | 12 ++ 3 files changed, 314 insertions(+) create mode 100644 net/rsync/patches/patch-ab create mode 100644 net/rsync/patches/patch-ac create mode 100644 net/rsync/patches/patch-ad (limited to 'net/rsync') diff --git a/net/rsync/patches/patch-ab b/net/rsync/patches/patch-ab new file mode 100644 index 00000000000..76aabf69406 --- /dev/null +++ b/net/rsync/patches/patch-ab @@ -0,0 +1,10 @@ +--- configure.in.orig Thu Jun 18 06:30:21 1998 ++++ configure.in Sat Jul 4 05:46:36 1998 +@@ -42,6 +42,7 @@ + AC_CHECK_FUNCS(mmap munmap waitpid getcwd strdup strerror chown chmod mknod) + AC_CHECK_FUNCS(fchmod fstat strchr readlink link utime utimes) + AC_CHECK_FUNCS(memmove getopt_long lchown setlinebuf vsnprintf setsid glob strpbrk) ++AC_CHECK_FUNCS(mkstemp) + + echo $ac_n "checking for working fnmatch... $ac_c" + AC_TRY_RUN([#include diff --git a/net/rsync/patches/patch-ac b/net/rsync/patches/patch-ac new file mode 100644 index 00000000000..520c257e367 --- /dev/null +++ b/net/rsync/patches/patch-ac @@ -0,0 +1,292 @@ +--- configure.orig Thu Jun 18 06:30:21 1998 ++++ configure Sat Jul 4 05:46:58 1998 +@@ -1996,18 +1996,73 @@ + fi + done + ++for ac_func in mkstemp ++do ++echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 ++echo "configure:2003: checking for $ac_func" >&5 ++if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ cat > conftest.$ac_ext < ++/* Override any gcc2 internal prototype to avoid an error. */ ++/* We use char because int might match the return type of a gcc2 ++ builtin and then its argument prototype would still apply. */ ++char $ac_func(); ++ ++int main() { ++ ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined (__stub_$ac_func) || defined (__stub___$ac_func) ++choke me ++#else ++$ac_func(); ++#endif ++ ++; return 0; } ++EOF ++if { (eval echo configure:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then ++ rm -rf conftest* ++ eval "ac_cv_func_$ac_func=yes" ++else ++ echo "configure: failed program was:" >&5 ++ cat conftest.$ac_ext >&5 ++ rm -rf conftest* ++ eval "ac_cv_func_$ac_func=no" ++fi ++rm -f conftest* ++fi ++ ++if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then ++ echo "$ac_t""yes" 1>&6 ++ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` ++ cat >> confdefs.h <&6 ++fi ++done ++ + + echo $ac_n "checking for working fnmatch... $ac_c" + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + else + cat > conftest.$ac_ext < + main() { exit(fnmatch("*.o", "x.o", 0) == 0? 0: 1); } + EOF +-if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:2066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null + then + echo yes;cat >> confdefs.h <<\EOF + #define HAVE_FNMATCH 1 +@@ -2028,12 +2083,12 @@ + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + else + cat > conftest.$ac_ext < + main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); } + EOF +-if { (eval echo configure:2037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:2092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null + then + echo yes;cat >> confdefs.h <<\EOF + #define HAVE_LONGLONG 1 +@@ -2054,13 +2109,13 @@ + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + else + cat > conftest.$ac_ext < + #include + main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) return 1; exit((lstat64("/dev/null", &st)==0)?0:1); } + EOF +-if { (eval echo configure:2064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:2119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null + then + echo yes;cat >> confdefs.h <<\EOF + #define HAVE_OFF64_T 1 +@@ -2081,12 +2136,12 @@ + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + else + cat > conftest.$ac_ext < + main() { char c; c=250; exit((c > 0)?0:1); } + EOF +-if { (eval echo configure:2090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:2145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null + then + echo yes;cat >> confdefs.h <<\EOF + #define HAVE_UNSIGNED_CHAR 1 +@@ -2107,7 +2162,7 @@ + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + else + cat > conftest.$ac_ext < + #include +@@ -2115,7 +2170,7 @@ + if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 && + di->d_name[0] == 0) return 0; return 1;} + EOF +-if { (eval echo configure:2119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null + then + echo yes - you are using the broken /usr/ucb/cc;cat >> confdefs.h <<\EOF + #define HAVE_BROKEN_READDIR 1 +@@ -2133,7 +2188,7 @@ + + echo $ac_n "checking for utimbuf ... $ac_c" + cat > conftest.$ac_ext < + #include +@@ -2141,7 +2196,7 @@ + struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; return utime("foo.c",&tbuf); + ; return 0; } + EOF +-if { (eval echo configure:2145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:2200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + echo yes;cat >> confdefs.h <<\EOF + #define HAVE_UTIMBUF 1 +@@ -2162,12 +2217,12 @@ + # only looks in /etc/hosts), so we only look for -lsocket if we need + # it. + echo $ac_n "checking for connect""... $ac_c" 1>&6 +-echo "configure:2166: checking for connect" >&5 ++echo "configure:2221: checking for connect" >&5 + if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then ++if { (eval echo configure:2249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then + rm -rf conftest* + eval "ac_cv_func_connect=yes" + else +@@ -2210,7 +2265,7 @@ + case "$LIBS" in + *-lnsl*) ;; + *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6 +-echo "configure:2214: checking for printf in -lnsl_s" >&5 ++echo "configure:2269: checking for printf in -lnsl_s" >&5 + ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -2218,7 +2273,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lnsl_s $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then ++if { (eval echo configure:2288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -2260,7 +2315,7 @@ + case "$LIBS" in + *-lnsl*) ;; + *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6 +-echo "configure:2264: checking for printf in -lnsl" >&5 ++echo "configure:2319: checking for printf in -lnsl" >&5 + ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -2268,7 +2323,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lnsl $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then ++if { (eval echo configure:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -2310,7 +2365,7 @@ + case "$LIBS" in + *-lsocket*) ;; + *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 +-echo "configure:2314: checking for connect in -lsocket" >&5 ++echo "configure:2369: checking for connect in -lsocket" >&5 + ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -2318,7 +2373,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lsocket $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then ++if { (eval echo configure:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -2360,7 +2415,7 @@ + case "$LIBS" in + *-linet*) ;; + *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6 +-echo "configure:2364: checking for connect in -linet" >&5 ++echo "configure:2419: checking for connect in -linet" >&5 + ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -2368,7 +2423,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-linet $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then ++if { (eval echo configure:2438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else diff --git a/net/rsync/patches/patch-ad b/net/rsync/patches/patch-ad new file mode 100644 index 00000000000..6690f48d872 --- /dev/null +++ b/net/rsync/patches/patch-ad @@ -0,0 +1,12 @@ +--- config.h.in.orig Thu Jun 18 06:30:21 1998 ++++ config.h.in Sat Jul 4 05:49:12 1998 +@@ -133,6 +133,9 @@ + /* Define if you have the waitpid function. */ + #undef HAVE_WAITPID + ++/* Define if you have the mkstemp function. */ ++#undef HAVE_MKSTEMP ++ + /* Define if you have the header file. */ + #undef HAVE_COMPAT_H + -- cgit v1.2.3