Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
$NetBSD: patch-aa,v 1.2 1998/08/07 11:14:04 agc Exp $
--- src/lib/DepotDB/DepotDB_Write.c.orig Tue Feb 10 18:54:48 1998
+++ src/lib/DepotDB/DepotDB_Write.c Tue Feb 10 18:55:52 1998
@@ -45,6 +45,12 @@
#include "CollectionList.h"
#include "DepotDB.h"
+#include <sys/param.h>
+
+#if (defined(BSD) && BSD >= 199306)
+#include <limits.h>
+#define MAXLONG LONG_MAX
+#endif
static int DepotDB_LongSkipSize();
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.1 2003/12/15 16:19:43 agc Exp $
--- src/lib/include/depotlib.h 2003/12/15 16:03:26 1.1
+++ src/lib/include/depotlib.h 2003/12/15 16:04:54
@@ -38,7 +38,7 @@
#include <netinet/in.h> /* for htonl, ntohl */
#ifndef INHIBIT_VARARGS_H
-#include <varargs.h>
+#include <stdarg.h>
#endif
/* taken from the example in gnu-autoconf */
+44
View File
@@ -0,0 +1,44 @@
$NetBSD: patch-ac,v 1.1 2003/12/15 16:19:43 agc Exp $
--- src/lib/util/message.c 2003/12/15 16:08:23 1.1
+++ src/lib/util/message.c 2003/12/15 16:10:07
@@ -41,15 +41,11 @@
int PROGRAM_Verbose;
-void Message(va_alist)
-va_dcl
+void Message(char *fmt, ...)
{
va_list ap;
- char *fmt;
- va_start(ap);
-
- fmt = va_arg(ap, char *);
+ va_start(ap, fmt);
(void)vfprintf(stdout, fmt, ap);
fflush(stdout);
va_end(ap);
@@ -58,19 +54,14 @@
}
-void Filtered_Message(va_alist)
- va_dcl
+void Filtered_Message(unsigned filter, char *fmt, ...)
{
va_list ap;
- unsigned filter;
- char *fmt;
- va_start(ap);
+ va_start(ap, fmt);
- filter = va_arg(ap, Boolean);
if (filter)
{
- fmt = va_arg(ap, char *);
(void)vfprintf(stdout, fmt, ap);
fflush(stdout);
}
+24
View File
@@ -0,0 +1,24 @@
$NetBSD: patch-ad,v 1.1 2003/12/15 16:19:43 agc Exp $
--- src/lib/util/util.h 2003/12/15 16:11:55 1.1
+++ src/lib/util/util.h 2003/12/15 16:12:25
@@ -134,8 +134,8 @@
extern int PROGRAM_Verbose;
#define PROGRAM_TRACEVAL 50
-extern void Message();
-extern void Filtered_Message();
+extern void Message(char *, ...);
+extern void Filtered_Message(unsigned, char *, ...);
/* Error.c */
@@ -146,7 +146,7 @@
#define FatalError __DepotErrorInfoFile=__FILE__, \
__DepotErrorInfoLineNo=__LINE__, __FatalError
-void __FatalError();
+void __FatalError(int, char *, ...);
/* timer.c */
extern void timer_start();
+27
View File
@@ -0,0 +1,27 @@
$NetBSD: patch-ae,v 1.1 2003/12/15 16:19:43 agc Exp $
--- src/lib/util/Error.c 2003/12/15 16:13:57 1.1
+++ src/lib/util/Error.c 2003/12/15 16:15:42
@@ -195,19 +195,14 @@
void
-__FatalError(va_alist)
-va_dcl
+__FatalError(int e, char *fmt, ...)
{
va_list ap;
- char *fmt;
- va_start(ap);
+ va_start(ap, fmt);
if (PROGRAM_ErrorNo == E_NULL)
- PROGRAM_ErrorNo = va_arg(ap, int);
- else
- (void) va_arg(ap, int); /* skip the first argument */
- fmt = va_arg(ap, char *);
+ PROGRAM_ErrorNo = e;
(void)fprintf(stderr,"Depot Error: %s:%d: ",__DepotErrorInfoFile,
__DepotErrorInfoLineNo);
(void)vfprintf(stderr, fmt, ap);