|
|
@@ -10,7 +10,7 @@
|
|
|
## 'patch' tool to upgrade those files. Each patch snippet is annotated
|
|
|
## with a short description.
|
|
|
##
|
|
|
-## Created on: 12-Feb-2004
|
|
|
+## Created on: 18-Apr-2004
|
|
|
##
|
|
|
## ATTENTION: THIS PATCH FILE WAS AUTO-GENERATED FROM AN OPENPKG
|
|
|
## RPM CVS REPOSITORY, HENCE DO NOT EDIT THIS FILE.
|
|
|
@@ -302,8 +302,18 @@ Index: tools/Makefile.in
|
|
|
+---------------------------------------------------------------------------
|
|
|
Index: file/system.h
|
|
|
--- file/system.h 24 Jan 2003 19:41:56 -0000 1.1.1.1
|
|
|
-+++ file/system.h 22 Jan 2004 21:42:22 -0000 1.2
|
|
|
-@@ -53,6 +53,8 @@
|
|
|
++++ file/system.h 18 Apr 2004 11:17:25 -0000
|
|
|
+@@ -13,6 +13,9 @@
|
|
|
+ #endif
|
|
|
+
|
|
|
+ #include <sys/types.h>
|
|
|
++#ifdef HAVE_INTTYPES_H
|
|
|
++#include <inttypes.h>
|
|
|
++#endif
|
|
|
+
|
|
|
+ #include <sys/stat.h>
|
|
|
+ #include <stdio.h>
|
|
|
+@@ -53,6 +56,8 @@
|
|
|
#else
|
|
|
#if HAVE_ERROR && HAVE_ERROR_H
|
|
|
#include <error.h>
|
|
|
@@ -312,7 +322,7 @@ Index: file/system.h
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
-@@ -246,7 +248,11 @@
|
|
|
+@@ -246,7 +251,11 @@
|
|
|
*/
|
|
|
/*@-shadow@*/
|
|
|
/*@unused@*/ /*@exits@*/ /*@only@*/
|
|
|
@@ -324,7 +334,7 @@ Index: file/system.h
|
|
|
/*@globals fileSystem @*/
|
|
|
/*@modifies fileSystem @*/
|
|
|
{
|
|
|
-@@ -286,9 +292,33 @@
|
|
|
+@@ -286,9 +295,33 @@
|
|
|
|
|
|
#if !defined(__LCLINT__)
|
|
|
/* Memory allocation via macro defs to get meaningful locations from mtrace() */
|
|
|
@@ -358,7 +368,7 @@ Index: file/system.h
|
|
|
#define xstrdup(_str) (strcpy(xmalloc(strlen(_str)+1), (_str)))
|
|
|
#endif
|
|
|
|
|
|
-@@ -314,9 +344,14 @@
|
|
|
+@@ -314,9 +347,14 @@
|
|
|
|
|
|
#if defined(__LCLINT__)
|
|
|
#define FILE_RCSID(id)
|
|
|
@@ -578,7 +588,7 @@ Index: rpmio/fts.h
|
|
|
+---------------------------------------------------------------------------
|
|
|
Index: rpmio/fts.c
|
|
|
--- rpmio/fts.c 18 Jan 2003 16:13:17 -0000 1.1.1.3
|
|
|
-+++ rpmio/fts.c 22 Jan 2004 21:42:32 -0000 1.2
|
|
|
++++ rpmio/fts.c 18 Apr 2004 11:16:24 -0000
|
|
|
@@ -34,6 +34,8 @@
|
|
|
static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
|
|
|
#endif /* LIBC_SCCS and not lint */
|
|
|
@@ -588,7 +598,7 @@ Index: rpmio/fts.c
|
|
|
#if defined(_LIBC)
|
|
|
#include <sys/param.h>
|
|
|
#include <include/sys/stat.h>
|
|
|
-@@ -53,12 +55,19 @@
|
|
|
+@@ -53,12 +55,27 @@
|
|
|
# define _STAT_VER 0
|
|
|
# define __fxstat64(_stat_ver, _fd, _sbp) fstat((_fd), (_sbp))
|
|
|
#endif
|
|
|
@@ -605,11 +615,19 @@ Index: rpmio/fts.c
|
|
|
+# define _STAT_VER 0
|
|
|
+# define __fxstat64(_stat_ver, _fd, _sbp) fstat((_fd), (_sbp))
|
|
|
+# define _D_EXACT_NAMLEN(d) ((d)->d_namlen)
|
|
|
++#endif
|
|
|
++#if defined(__osf__)
|
|
|
++# define __errno_location() (&errno)
|
|
|
++# define dirfd(dirp) -1
|
|
|
++# define stat64 stat
|
|
|
++# define _STAT_VER 0
|
|
|
++# define __fxstat64(_stat_ver, _fd, _sbp) fstat((_fd), (_sbp))
|
|
|
++# define _D_EXACT_NAMLEN(d) ((d)->d_namlen)
|
|
|
+#endif
|
|
|
#include "system.h"
|
|
|
#include "fts.h"
|
|
|
#include "rpmio.h"
|
|
|
-@@ -73,7 +82,12 @@
|
|
|
+@@ -73,7 +90,12 @@
|
|
|
/* Largest alignment size needed, minus one.
|
|
|
Usually long double is the worst case. */
|
|
|
#ifndef ALIGNBYTES
|
|
|
@@ -622,7 +640,7 @@ Index: rpmio/fts.c
|
|
|
#endif
|
|
|
/* Align P to that size. */
|
|
|
#ifndef ALIGN
|
|
|
-@@ -107,9 +121,13 @@
|
|
|
+@@ -107,9 +129,13 @@
|
|
|
/*@modifies fileSystem, internalState @*/;
|
|
|
|
|
|
#ifndef MAX
|
|
|
@@ -663,7 +681,7 @@ Index: rpmio/rpmio.h
|
|
|
+---------------------------------------------------------------------------
|
|
|
Index: rpmio/rpmrpc.c
|
|
|
--- rpmio/rpmrpc.c 29 May 2003 22:14:04 -0000 1.1.1.8
|
|
|
-+++ rpmio/rpmrpc.c 22 Jan 2004 21:42:33 -0000 1.2
|
|
|
++++ rpmio/rpmrpc.c 18 Apr 2004 11:15:27 -0000
|
|
|
@@ -1079,6 +1079,8 @@
|
|
|
return rc;
|
|
|
}
|
|
|
@@ -707,7 +725,7 @@ Index: rpmio/rpmrpc.c
|
|
|
/*@unchecked@*/
|
|
|
static int ftpmagicdir = 0x8440291;
|
|
|
-#define ISFTPMAGIC(_dir) (!memcmp((_dir), &ftpmagicdir, sizeof(ftpmagicdir)))
|
|
|
-+#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(sun) && !defined(OPENPKG_UNIXWARE) && !defined(OPENPKG_DARWIN)
|
|
|
++#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(sun) && !defined(OPENPKG_UNIXWARE) && !defined(OPENPKG_DARWIN) && !defined(__osf__)
|
|
|
+#define SETFTPMAGIC(_dir) ((_dir)->fd) = ftpmagicdir
|
|
|
+#define ISFTPMAGIC(_dir) ((_dir)->fd == ftpmagicdir)
|
|
|
+#else
|
|
|
@@ -860,7 +878,7 @@ Index: rpmio/rpmrpc.c
|
|
|
+ strncpy(dp->d_name, av[i].name, sizeof(dp->d_name) - 1);
|
|
|
+ dp->d_name[sizeof(dp->d_name)-1] = '\0';
|
|
|
+ dp->d_namlen = strlen(dp->d_name);
|
|
|
-+#elif defined(hpux) || defined(sun) || defined(OPENPKG_UNIXWARE)
|
|
|
++#elif defined(hpux) || defined(sun) || defined(OPENPKG_UNIXWARE) || defined(__osf__)
|
|
|
+ /* XXX glob(3) uses REAL_DIR_ENTRY(dp) test on d_ino */
|
|
|
+ dp->d_ino = i + 1; /* W2DO? */
|
|
|
+ dp->d_reclen = 0; /* W2DO? */
|