diff options
author | joerg <joerg> | 2006-01-25 15:19:16 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-01-25 15:19:16 +0000 |
commit | b942b688537eac2e463b41add603017c42d4d53e (patch) | |
tree | 00af53d5b04c0d2ccc67edd836d148cfc348e88b /devel/mkcmd/patches | |
parent | 635a166dc17ce54ab7154c0ff59fc6b8356e0305 (diff) | |
download | pkgsrc-b942b688537eac2e463b41add603017c42d4d53e.tar.gz |
Fix errno in library files. Never generate extern errno directly.
Bump revision.
Diffstat (limited to 'devel/mkcmd/patches')
-rw-r--r-- | devel/mkcmd/patches/patch-af | 17 | ||||
-rw-r--r-- | devel/mkcmd/patches/patch-ao | 12 | ||||
-rw-r--r-- | devel/mkcmd/patches/patch-ap | 12 | ||||
-rw-r--r-- | devel/mkcmd/patches/patch-aq | 12 | ||||
-rw-r--r-- | devel/mkcmd/patches/patch-ar | 12 | ||||
-rw-r--r-- | devel/mkcmd/patches/patch-as | 12 | ||||
-rw-r--r-- | devel/mkcmd/patches/patch-at | 12 | ||||
-rw-r--r-- | devel/mkcmd/patches/patch-au | 12 | ||||
-rw-r--r-- | devel/mkcmd/patches/patch-av | 10 | ||||
-rw-r--r-- | devel/mkcmd/patches/patch-aw | 17 | ||||
-rw-r--r-- | devel/mkcmd/patches/patch-ax | 12 | ||||
-rw-r--r-- | devel/mkcmd/patches/patch-ay | 12 | ||||
-rw-r--r-- | devel/mkcmd/patches/patch-az | 12 | ||||
-rw-r--r-- | devel/mkcmd/patches/patch-ba | 12 |
14 files changed, 175 insertions, 1 deletions
diff --git a/devel/mkcmd/patches/patch-af b/devel/mkcmd/patches/patch-af index 4f56f60f404..f54f5a5af9f 100644 --- a/devel/mkcmd/patches/patch-af +++ b/devel/mkcmd/patches/patch-af @@ -1,4 +1,4 @@ -$NetBSD: patch-af,v 1.1 2004/11/10 16:43:50 epg Exp $ +$NetBSD: patch-af,v 1.2 2006/01/25 15:19:17 joerg Exp $ --- bin/mkcmd/mkcmd.c.orig 2000-07-30 17:56:23.000000000 -0400 +++ bin/mkcmd/mkcmd.c @@ -17,3 +17,18 @@ $NetBSD: patch-af,v 1.1 2004/11/10 16:43:50 epg Exp $ LIST LIComm, /* header comments */ aLIExits[11], /* user hooks jusr before exit */ +@@ -119,14 +111,6 @@ LIST *pLITop; + Emit(fp, "#include %a\n", nilOR, *ppcComm, 0); + } + +-#if HAVE_SIMPLE_ERRNO +- if (fWeGuess) { +- if (IS_USED(CvtType('F')) || IS_USED(CvtType('D'))) { +- Emit(fp, "extern int errno;\n", nilOR, nil, 0); +- } +- } +-#endif +- + #if !HAVE_STRERROR + if (fWeGuess) { + Emit(fp, "extern char *sys_errlist[];#define strerror(Me) (sys_errlist[Me])\n", nilOR, nil, 0); diff --git a/devel/mkcmd/patches/patch-ao b/devel/mkcmd/patches/patch-ao new file mode 100644 index 00000000000..1802651fe38 --- /dev/null +++ b/devel/mkcmd/patches/patch-ao @@ -0,0 +1,12 @@ +$NetBSD: patch-ao,v 1.1 2006/01/25 15:19:17 joerg Exp $ + +--- lib/mkcmd/cmd_source.mc.orig 2006-01-25 15:08:34.000000000 +0000 ++++ lib/mkcmd/cmd_source.mc +@@ -12,7 +12,6 @@ CMDSET *pCS; + { + register FILE *fpCmds; + register int iRet; +- extern int errno; + + iRet = 0; + while (0 != --argc) { diff --git a/devel/mkcmd/patches/patch-ap b/devel/mkcmd/patches/patch-ap new file mode 100644 index 00000000000..f80827d8250 --- /dev/null +++ b/devel/mkcmd/patches/patch-ap @@ -0,0 +1,12 @@ +$NetBSD: patch-ap,v 1.1 2006/01/25 15:19:17 joerg Exp $ + +--- lib/mkcmd/group.mc.orig 2006-01-25 15:00:29.000000000 +0000 ++++ lib/mkcmd/group.mc +@@ -13,7 +13,6 @@ char *pcName, *pcParam; + { + register struct group *pGEFound; + register char *pcScan; +- extern int errno; + + for (pcScan = pcName; '\000' != *pcScan; ++pcScan) { + if (!isdigit(*pcScan)) { diff --git a/devel/mkcmd/patches/patch-aq b/devel/mkcmd/patches/patch-aq new file mode 100644 index 00000000000..0d18b23d4ec --- /dev/null +++ b/devel/mkcmd/patches/patch-aq @@ -0,0 +1,12 @@ +$NetBSD: patch-aq,v 1.1 2006/01/25 15:19:17 joerg Exp $ + +--- lib/mkcmd/host.mc.orig 2006-01-25 15:00:46.000000000 +0000 ++++ lib/mkcmd/host.mc +@@ -19,7 +19,6 @@ char *pcName, *pcParam; + register int iC; + auto struct in_addr IATemp; + auto int iDec; +- extern int errno; + + for (pcScan = pcName; '\000' != *pcScan; ++pcScan) { + if ('.' != *pcScan && !isdigit(*pcScan)) { diff --git a/devel/mkcmd/patches/patch-ar b/devel/mkcmd/patches/patch-ar new file mode 100644 index 00000000000..8083e95fdc3 --- /dev/null +++ b/devel/mkcmd/patches/patch-ar @@ -0,0 +1,12 @@ +$NetBSD: patch-ar,v 1.1 2006/01/25 15:19:17 joerg Exp $ + +--- lib/mkcmd/login.mc.orig 2006-01-25 15:01:16.000000000 +0000 ++++ lib/mkcmd/login.mc +@@ -13,7 +13,6 @@ char *pcName, *pcParam; + { + register struct passwd *pPWFound; + register char *pcScan; +- extern int errno; + + for (pcScan = pcName; '\000' != *pcScan; ++pcScan) { + if (!isdigit(*pcScan)) { diff --git a/devel/mkcmd/patches/patch-as b/devel/mkcmd/patches/patch-as new file mode 100644 index 00000000000..31e0a0cb872 --- /dev/null +++ b/devel/mkcmd/patches/patch-as @@ -0,0 +1,12 @@ +$NetBSD: patch-as,v 1.1 2006/01/25 15:19:17 joerg Exp $ + +--- lib/mkcmd/protocol.mc.orig 2006-01-25 15:01:29.000000000 +0000 ++++ lib/mkcmd/protocol.mc +@@ -16,7 +16,6 @@ char *pcName, *pcParam; + register char *pcStack; + register int iFudge = sizeof(long int) - 1; + register void *pvMem; +- extern int errno; + + for (pcStack = pcName; '\000' != *pcStack; ++pcStack) { + if (!isdigit(*pcStack)) diff --git a/devel/mkcmd/patches/patch-at b/devel/mkcmd/patches/patch-at new file mode 100644 index 00000000000..a4ed70e3d43 --- /dev/null +++ b/devel/mkcmd/patches/patch-at @@ -0,0 +1,12 @@ +$NetBSD: patch-at,v 1.1 2006/01/25 15:19:17 joerg Exp $ + +--- lib/mkcmd/service.mc.orig 2006-01-25 15:01:49.000000000 +0000 ++++ lib/mkcmd/service.mc +@@ -19,7 +19,6 @@ char *pcName, *pcParam; + register char *pcScan, *pcProto, *pcTemp; + register int iFudge = sizeof(long int) - 1; + % static char acDefProto[] = "%qK<service_cvt>2v"%; +- extern int errno; + + pcTemp = calloc((strlen(pcName)|iFudge)+1, sizeof(char)); + (void)strcpy(pcTemp, pcName); diff --git a/devel/mkcmd/patches/patch-au b/devel/mkcmd/patches/patch-au new file mode 100644 index 00000000000..32ec77f4377 --- /dev/null +++ b/devel/mkcmd/patches/patch-au @@ -0,0 +1,12 @@ +$NetBSD: patch-au,v 1.1 2006/01/25 15:19:17 joerg Exp $ + +--- lib/mkcmd/std_lex.mc.orig 2006-01-25 15:02:04.000000000 +0000 ++++ lib/mkcmd/std_lex.mc +@@ -11,7 +11,6 @@ yywrap() + { + register char *pcGot; + extern FILE *yyin; +- extern int errno; + + if (stdin == yyin) { + clearerr(stdin); diff --git a/devel/mkcmd/patches/patch-av b/devel/mkcmd/patches/patch-av new file mode 100644 index 00000000000..08e3ef6d8ae --- /dev/null +++ b/devel/mkcmd/patches/patch-av @@ -0,0 +1,10 @@ +$NetBSD: patch-av,v 1.1 2006/01/25 15:19:17 joerg Exp $ + +--- lib/mkcmd/util_errno.m.orig 2006-01-25 15:02:22.000000000 +0000 ++++ lib/mkcmd/util_errno.m +@@ -5,5 +5,4 @@ + from '<errno.h>' + + %i +-extern int errno; + %% diff --git a/devel/mkcmd/patches/patch-aw b/devel/mkcmd/patches/patch-aw new file mode 100644 index 00000000000..fb09609c7df --- /dev/null +++ b/devel/mkcmd/patches/patch-aw @@ -0,0 +1,17 @@ +$NetBSD: patch-aw,v 1.1 2006/01/25 15:19:17 joerg Exp $ + +--- lib/mkcmd/util_fts.mc.orig 2006-01-25 15:02:43.000000000 +0000 ++++ lib/mkcmd/util_fts.mc +@@ -3,4 +3,6 @@ + */ + ++#include <errno.h> ++ + /* example fts_walk routine for the fts interface (ksb) + * by default scan key "fts_path" (if no nodes were presented) +@@ -13,5 +15,4 @@ int fts_opts; + register FTS *u_ftsp; + register FTSENT *p; +- extern int errno; + + if ((char **)0 == argv || (char *)0 == *argv) { diff --git a/devel/mkcmd/patches/patch-ax b/devel/mkcmd/patches/patch-ax new file mode 100644 index 00000000000..585a1dbdd28 --- /dev/null +++ b/devel/mkcmd/patches/patch-ax @@ -0,0 +1,12 @@ +$NetBSD: patch-ax,v 1.1 2006/01/25 15:19:17 joerg Exp $ + +--- lib/mkcmd/util_savegrent.mc.orig 2006-01-25 15:03:11.000000000 +0000 ++++ lib/mkcmd/util_savegrent.mc +@@ -10,7 +10,6 @@ struct group *pGRFound; + register void *pvMem; + register char *pcStack; + register int iFudge = sizeof(int) - 1; +- extern int errno; + %@if group_argvs[1] + register int i; + register char *pcScan; diff --git a/devel/mkcmd/patches/patch-ay b/devel/mkcmd/patches/patch-ay new file mode 100644 index 00000000000..acf072179e9 --- /dev/null +++ b/devel/mkcmd/patches/patch-ay @@ -0,0 +1,12 @@ +$NetBSD: patch-ay,v 1.1 2006/01/25 15:19:17 joerg Exp $ + +--- lib/mkcmd/util_savehostent.mc.orig 2006-01-25 15:03:27.000000000 +0000 ++++ lib/mkcmd/util_savehostent.mc +@@ -14,7 +14,6 @@ char *pcParam; + register char *pcStack; + register int iFudge = sizeof(long int) - 1; + register void *pvMem; +- extern int errno; + + if ((struct hostent *)0 == pHESource) { + return (struct hostent *)0; diff --git a/devel/mkcmd/patches/patch-az b/devel/mkcmd/patches/patch-az new file mode 100644 index 00000000000..755167fddc3 --- /dev/null +++ b/devel/mkcmd/patches/patch-az @@ -0,0 +1,12 @@ +$NetBSD: patch-az,v 1.1 2006/01/25 15:19:17 joerg Exp $ + +--- lib/mkcmd/util_savepwent.mc.orig 2006-01-25 15:03:38.000000000 +0000 ++++ lib/mkcmd/util_savepwent.mc +@@ -10,7 +10,6 @@ struct passwd *pPWFound; + register void *pvMem; + register char *pcStack; + register int iFudge = sizeof(int) - 1; +- extern int errno; + + if ((struct passwd *)0 == pPWFound) { + return (struct passwd *)0; diff --git a/devel/mkcmd/patches/patch-ba b/devel/mkcmd/patches/patch-ba new file mode 100644 index 00000000000..892da91bf37 --- /dev/null +++ b/devel/mkcmd/patches/patch-ba @@ -0,0 +1,12 @@ +$NetBSD: patch-ba,v 1.1 2006/01/25 15:19:17 joerg Exp $ + +--- lib/mkcmd/util_saveservent.mc.orig 2006-01-25 15:03:49.000000000 +0000 ++++ lib/mkcmd/util_saveservent.mc +@@ -13,7 +13,6 @@ struct servent *pSEFound; + register char *pcStack; + register int iFudge = sizeof(long int) - 1; + register void *pvMem; +- extern int errno; + + if ((struct servent *)0 == pSEFound) { + return (struct servent *)0; |