Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 12501 Details for
Bug 21832
New openafs-1.2.8-r1.ebuild which fixes errno problems when compiling on a ~x86 system
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to openafs-1.2.8 which fixes 'extern int errno' references
openafs-1.2.8-errno.patch (text/plain), 28.68 KB, created by
Dave Love
on 2003-05-28 10:36:34 UTC
(
hide
)
Description:
Patch to openafs-1.2.8 which fixes 'extern int errno' references
Filename:
MIME Type:
Creator:
Dave Love
Created:
2003-05-28 10:36:34 UTC
Size:
28.68 KB
patch
obsolete
>diff -r -u -N openafs-1.2.8.orig/src/WINNT/afsd/afsmsg95.c openafs-1.2.8/src/WINNT/afsd/afsmsg95.c >--- openafs-1.2.8.orig/src/WINNT/afsd/afsmsg95.c 2001-04-30 00:48:01.000000000 -0600 >+++ openafs-1.2.8/src/WINNT/afsd/afsmsg95.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -19,7 +20,7 @@ > > int sock; > struct sockaddr_in addr; >-extern int errno; >+ > > int afsMsg_Init() > { >diff -r -u -N openafs-1.2.8.orig/src/WINNT/afsd/cm_config.c openafs-1.2.8/src/WINNT/afsd/cm_config.c >--- openafs-1.2.8.orig/src/WINNT/afsd/cm_config.c 2002-12-04 07:20:47.000000000 -0700 >+++ openafs-1.2.8/src/WINNT/afsd/cm_config.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -38,7 +39,7 @@ > #define AFS_CELLSERVDB AFS_CELLSERVDB_UNIX > #ifdef DJGPP > extern char cm_confDir[]; >-extern int errno; >+ > #endif /* DJGPP */ > #else > #define AFS_CELLSERVDB AFS_CELLSERVDB_NT >diff -r -u -N openafs-1.2.8.orig/src/WINNT/afsd/cm_diskcache95.c openafs-1.2.8/src/WINNT/afsd/cm_diskcache95.c >--- openafs-1.2.8.orig/src/WINNT/afsd/cm_diskcache95.c 2001-04-30 00:48:04.000000000 -0600 >+++ openafs-1.2.8/src/WINNT/afsd/cm_diskcache95.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -46,7 +47,7 @@ > char cacheInfoPath[128]; > char cacheFileName[128]; > >-extern int errno; >+ > > #define MAX_OPEN_FILES 22 > >diff -r -u -N openafs-1.2.8.orig/src/WINNT/afsd/cm_dns.c openafs-1.2.8/src/WINNT/afsd/cm_dns.c >--- openafs-1.2.8.orig/src/WINNT/afsd/cm_dns.c 2001-10-12 22:39:53.000000000 -0600 >+++ openafs-1.2.8/src/WINNT/afsd/cm_dns.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. > * >@@ -19,7 +20,7 @@ > #include <lwp.h> > #include <afs/afsint.h> > >-extern int errno; >+ > static char dns_addr[30]; > #ifdef DJGPP > extern char cm_confDir[]; >diff -r -u -N openafs-1.2.8.orig/src/afsmonitor/afsmonitor.c openafs-1.2.8/src/afsmonitor/afsmonitor.c >--- openafs-1.2.8.orig/src/afsmonitor/afsmonitor.c 2002-09-10 16:33:36.000000000 -0600 >+++ openafs-1.2.8/src/afsmonitor/afsmonitor.c 2003-05-16 11:08:26.000000000 -0600 >@@ -209,7 +209,7 @@ > /* EXTERN DEFINITIONS */ > > extern struct hostent *hostutil_GetHostByName(); >-extern int errno; >+ > > > /* routines from afsmon-output.c */ >diff -r -u -N openafs-1.2.8.orig/src/butm/butm_test.c openafs-1.2.8/src/butm/butm_test.c >--- openafs-1.2.8.orig/src/butm/butm_test.c 2001-10-12 22:21:09.000000000 -0600 >+++ openafs-1.2.8/src/butm/butm_test.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -23,7 +24,7 @@ > #include <afs/butm.h> > #include "AFS_component_version_number.c" > >-extern int errno; >+ > > static char *whoami = "TEST FAIL"; > >diff -r -u -N openafs-1.2.8.orig/src/comerr/test/test.c openafs-1.2.8/src/comerr/test/test.c >--- openafs-1.2.8.orig/src/comerr/test/test.c 2001-10-12 22:21:15.000000000 -0600 >+++ openafs-1.2.8/src/comerr/test/test.c 2003-05-16 11:05:16.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > #include <afsconfig.h> > #include <afs/param.h> > >diff -r -u -N openafs-1.2.8.orig/src/export/cfgafs.c openafs-1.2.8/src/export/cfgafs.c >--- openafs-1.2.8.orig/src/export/cfgafs.c 2001-07-12 13:58:35.000000000 -0600 >+++ openafs-1.2.8/src/export/cfgafs.c 2003-05-16 11:05:16.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -26,7 +27,7 @@ > #include <signal.h> > > extern char *malloc(), *optarg; >-extern int errno; >+ > extern int sysconfig(int cmd, void *arg, int len); > > #include "AFS_component_version_number.c" >diff -r -u -N openafs-1.2.8.orig/src/export/cfgexport.c openafs-1.2.8/src/export/cfgexport.c >--- openafs-1.2.8.orig/src/export/cfgexport.c 2001-08-07 18:03:44.000000000 -0600 >+++ openafs-1.2.8/src/export/cfgexport.c 2003-05-16 11:05:16.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -29,7 +30,7 @@ > #include "sym.h" > > extern char *malloc(), *optarg; >-extern int errno; >+ > extern int sysconfig(int cmd, void *arg, int len); > > int debug; >diff -r -u -N openafs-1.2.8.orig/src/ftpd43+/ftpd.c openafs-1.2.8/src/ftpd43+/ftpd.c >--- openafs-1.2.8.orig/src/ftpd43+/ftpd.c 2001-08-07 18:03:45.000000000 -0600 >+++ openafs-1.2.8/src/ftpd43+/ftpd.c 2003-05-16 11:08:49.000000000 -0600 >@@ -117,7 +117,7 @@ > #define FTPUSERS "/etc/ftpusers" > > #ifndef AFS_LINUX20_ENV >-extern int errno; >+ > extern char *sys_errlist[]; > extern int sys_nerr; > #endif >diff -r -u -N openafs-1.2.8.orig/src/ftpd43+/glob.c openafs-1.2.8/src/ftpd43+/glob.c >--- openafs-1.2.8.orig/src/ftpd43+/glob.c 2001-07-05 09:20:25.000000000 -0600 >+++ openafs-1.2.8/src/ftpd43+/glob.c 2003-05-16 11:08:53.000000000 -0600 >@@ -55,7 +55,7 @@ > char *globerr; > char *home; > struct passwd *getpwnam(); >-extern int errno; >+ > static char *strspl(), *strend(); > char *malloc(), *strcpy(), *strcat(); > char **copyblk(); >diff -r -u -N openafs-1.2.8.orig/src/gtx/X11windows.c openafs-1.2.8/src/gtx/X11windows.c >--- openafs-1.2.8.orig/src/gtx/X11windows.c 2001-07-12 13:58:39.000000000 -0600 >+++ openafs-1.2.8/src/gtx/X11windows.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -24,7 +25,7 @@ > #include <stdio.h> /*Standard I/O package*/ > > #if !defined(NeXT) >-extern int errno; /*System error number*/ >+ /*System error number*/ > #endif /* NeXT */ > int X11_debug; /*Is debugging turned on?*/ > static char mn[] = "gator_X11windows"; /*Module name*/ >diff -r -u -N openafs-1.2.8.orig/src/gtx/curseswindows.c openafs-1.2.8/src/gtx/curseswindows.c >--- openafs-1.2.8.orig/src/gtx/curseswindows.c 2002-08-21 14:53:25.000000000 -0600 >+++ openafs-1.2.8/src/gtx/curseswindows.c 2003-05-16 11:08:57.000000000 -0600 >@@ -41,7 +41,7 @@ > #include "gtxobjects.h" > #include "gtxframe.h" > >-extern int errno; /* everybody else puts it in errno.h */ >+ /* everybody else puts it in errno.h */ > > int curses_debug; /*Is debugging turned on?*/ > static char mn[] = "gator_curseswindows"; /*Module name*/ >diff -r -u -N openafs-1.2.8.orig/src/gtx/dumbwindows.c openafs-1.2.8/src/gtx/dumbwindows.c >--- openafs-1.2.8.orig/src/gtx/dumbwindows.c 2001-07-12 13:58:39.000000000 -0600 >+++ openafs-1.2.8/src/gtx/dumbwindows.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -22,7 +23,7 @@ > #include <stdio.h> /*Standard I/O package*/ > > #if !defined(NeXT) >-extern int errno; /*System error number*/ >+ /*System error number*/ > #endif /* NeXT */ > int dumb_debug; /*Is debugging turned on?*/ > static char mn[] = "gator_dumbwindows"; /*Module name*/ >diff -r -u -N openafs-1.2.8.orig/src/gtx/object_test.c openafs-1.2.8/src/gtx/object_test.c >--- openafs-1.2.8.orig/src/gtx/object_test.c 2001-07-12 13:58:39.000000000 -0600 >+++ openafs-1.2.8/src/gtx/object_test.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -26,7 +27,7 @@ > #include <stdio.h> /*Standard I/O stuff*/ > #include <cmd.h> /*Command interpretation library*/ > >-extern int errno; >+ > > /* > * Command line parameter indicies. >diff -r -u -N openafs-1.2.8.orig/src/gtx/screen_test.c openafs-1.2.8/src/gtx/screen_test.c >--- openafs-1.2.8.orig/src/gtx/screen_test.c 2001-07-12 13:58:39.000000000 -0600 >+++ openafs-1.2.8/src/gtx/screen_test.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -22,7 +23,7 @@ > #include "gtxX11win.h" /*X11 window interface*/ > #include <cmd.h> /*Command interpretation library*/ > >-extern int errno; >+ > > /* > * Command line parameter indicies. >diff -r -u -N openafs-1.2.8.orig/src/inetd/ta-rauth.c openafs-1.2.8/src/inetd/ta-rauth.c >--- openafs-1.2.8.orig/src/inetd/ta-rauth.c 2001-08-07 18:03:46.000000000 -0600 >+++ openafs-1.2.8/src/inetd/ta-rauth.c 2003-05-16 11:08:59.000000000 -0600 >@@ -106,7 +106,7 @@ > name.sin_port = htons(RAUTH_PORT); > name.sin_addr = raddr; > if(connect(s, (struct sockaddr *) &name, sizeof(name)) == -1) { >- extern int errno; >+ > > if(ta_debug) { > syslog(LOG_ERR, "ta_rauth(%s): connect call to (%d:%d) failed=%d\n",svc_name,raddr.s_addr, htons(RAUTH_PORT), errno); >diff -r -u -N openafs-1.2.8.orig/src/kauth/test/test_interim_ktc.c openafs-1.2.8/src/kauth/test/test_interim_ktc.c >--- openafs-1.2.8.orig/src/kauth/test/test_interim_ktc.c 2001-10-12 22:21:35.000000000 -0600 >+++ openafs-1.2.8/src/kauth/test/test_interim_ktc.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -27,7 +28,7 @@ > #include "kautils.h" > > >-extern int errno; >+ > > static char *whoami = "test_interim_ktc"; > static verbose = 1; >diff -r -u -N openafs-1.2.8.orig/src/log/test/gettoktest.c openafs-1.2.8/src/log/test/gettoktest.c >--- openafs-1.2.8.orig/src/log/test/gettoktest.c 2001-07-12 13:58:47.000000000 -0600 >+++ openafs-1.2.8/src/log/test/gettoktest.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -19,7 +20,7 @@ > #include <afs/comauth.h> > #include <errno.h> > >-extern int errno; >+ > > main(argc, argv) > int argc; >diff -r -u -N openafs-1.2.8.orig/src/log/test/testlog.c openafs-1.2.8/src/log/test/testlog.c >--- openafs-1.2.8.orig/src/log/test/testlog.c 2001-08-07 18:03:51.000000000 -0600 >+++ openafs-1.2.8/src/log/test/testlog.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -35,7 +36,7 @@ > #include <afs/cellconfig.h> > #include <errno.h> > >-extern int errno; >+ > > #define DB_CELLS 1 > #define DB_ARGPARSE 0 >diff -r -u -N openafs-1.2.8.orig/src/login/login.c openafs-1.2.8/src/login/login.c >--- openafs-1.2.8.orig/src/login/login.c 2002-11-14 14:40:39.000000000 -0700 >+++ openafs-1.2.8/src/login/login.c 2003-05-16 11:06:29.000000000 -0600 >@@ -285,7 +285,7 @@ > int argc; > char **argv; > { >- extern int errno, optind; >+ extern int optind; > extern char *optarg, **environ; > struct group *gr, *getgrnam(); > register int ch; >@@ -2032,7 +2032,7 @@ > } > > static char *getlinep(const char *string, int size, FILE *stream) { >- extern int errno; >+ > int c; > char *cp; > >diff -r -u -N openafs-1.2.8.orig/src/ntp/ntp.c openafs-1.2.8/src/ntp/ntp.c >--- openafs-1.2.8.orig/src/ntp/ntp.c 2001-08-07 18:03:53.000000000 -0600 >+++ openafs-1.2.8/src/ntp/ntp.c 2003-05-16 11:09:01.000000000 -0600 >@@ -79,7 +79,7 @@ > struct sockaddr_in dst = {AF_INET}; > struct servent *sp; > extern double ul_fixed_to_double(), s_fixed_to_double(); >-extern int errno; >+ > int set, verbose, force; > int debug; > extern int optind; >diff -r -u -N openafs-1.2.8.orig/src/ntp/ntp_sock.c openafs-1.2.8/src/ntp/ntp_sock.c >--- openafs-1.2.8.orig/src/ntp/ntp_sock.c 2001-07-12 13:58:51.000000000 -0600 >+++ openafs-1.2.8/src/ntp/ntp_sock.c 2003-05-16 11:09:03.000000000 -0600 >@@ -36,7 +36,7 @@ > int nintf; > > #ifdef TEST >-extern int errno; >+ > > #include "AFS_component_version_number.c" > >diff -r -u -N openafs-1.2.8.orig/src/ntp/ntpd.c openafs-1.2.8/src/ntp/ntpd.c >--- openafs-1.2.8.orig/src/ntp/ntpd.c 2001-08-07 18:03:53.000000000 -0600 >+++ openafs-1.2.8/src/ntp/ntpd.c 2003-05-16 11:09:05.000000000 -0600 >@@ -112,7 +112,7 @@ > struct ntpdata ntpframe; > struct sysdata sys; > >-extern int errno; >+ > extern char *malloc(), *ntoa(); > extern double s_fixed_to_double(), ul_fixed_to_double(); > >diff -r -u -N openafs-1.2.8.orig/src/ntp/ntpdc.c openafs-1.2.8/src/ntp/ntpdc.c >--- openafs-1.2.8.orig/src/ntp/ntpdc.c 2001-08-07 18:03:53.000000000 -0600 >+++ openafs-1.2.8/src/ntp/ntpdc.c 2003-05-16 11:09:07.000000000 -0600 >@@ -36,7 +36,7 @@ > #define STIME 500000 /* usec to wait for another response */ > #define MAXPACKETSIZE 1500 > >-extern int errno; >+ > int debug; > int s; > int timedout; >diff -r -u -N openafs-1.2.8.orig/src/ntp/ntpsubs.c openafs-1.2.8/src/ntp/ntpsubs.c >--- openafs-1.2.8.orig/src/ntp/ntpsubs.c 2001-07-12 13:58:52.000000000 -0600 >+++ openafs-1.2.8/src/ntp/ntpsubs.c 2003-05-16 11:09:09.000000000 -0600 >@@ -28,7 +28,7 @@ > #endif > #include "ntp.h" > >-extern int errno; >+ > > #define TRUE 1 > #define FALSE 0 >diff -r -u -N openafs-1.2.8.orig/src/ntp/runntp.c openafs-1.2.8/src/ntp/runntp.c >--- openafs-1.2.8.orig/src/ntp/runntp.c 2001-08-07 18:03:53.000000000 -0600 >+++ openafs-1.2.8/src/ntp/runntp.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -21,7 +22,7 @@ > #include <afs/afsutil.h> > > >-extern int errno; >+ > > char *whoami; > >diff -r -u -N openafs-1.2.8.orig/src/package/fileops.c openafs-1.2.8/src/package/fileops.c >--- openafs-1.2.8.orig/src/package/fileops.c 2000-11-03 19:28:30.000000000 -0700 >+++ openafs-1.2.8/src/package/fileops.c 2003-05-16 11:09:12.000000000 -0600 >@@ -35,7 +35,7 @@ > #include "package.h" > > extern char *strcpy(); >-extern int errno; >+ > > int mv(from,to) > register char *from; >diff -r -u -N openafs-1.2.8.orig/src/package/messages.c openafs-1.2.8/src/package/messages.c >--- openafs-1.2.8.orig/src/package/messages.c 2000-11-03 19:28:31.000000000 -0700 >+++ openafs-1.2.8/src/package/messages.c 2003-05-16 11:05:16.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * (C) Copyright Transarc Corporation 1989 > * Licensed Materials - Property of Transarc >@@ -98,7 +99,7 @@ > } > case 'm': > { >- extern int errno; >+ > extern int sys_nerr; > extern char *sys_errlist[]; > >diff -r -u -N openafs-1.2.8.orig/src/pinstall/install.c openafs-1.2.8/src/pinstall/install.c >--- openafs-1.2.8.orig/src/pinstall/install.c 2002-08-21 14:53:27.000000000 -0600 >+++ openafs-1.2.8/src/pinstall/install.c 2003-05-16 11:09:15.000000000 -0600 >@@ -85,7 +85,7 @@ > > struct stat istat, ostat; > >-extern int errno; >+ > #if !defined(AFS_DARWIN60_ENV) > extern int sys_nerr; > #endif >diff -r -u -N openafs-1.2.8.orig/src/ptserver/db_verify.c openafs-1.2.8/src/ptserver/db_verify.c >--- openafs-1.2.8.orig/src/ptserver/db_verify.c 2001-10-12 22:21:47.000000000 -0600 >+++ openafs-1.2.8/src/ptserver/db_verify.c 2003-05-16 11:09:17.000000000 -0600 >@@ -7,7 +7,7 @@ > * directory or online at http://www.openafs.org/dl/license10.html > */ > >-extern int errno; >+ > > #include <afsconfig.h> > #include <afs/param.h> >diff -r -u -N openafs-1.2.8.orig/src/ptserver/pt_util.c openafs-1.2.8/src/ptserver/pt_util.c >--- openafs-1.2.8.orig/src/ptserver/pt_util.c 2001-10-12 22:21:47.000000000 -0600 >+++ openafs-1.2.8/src/ptserver/pt_util.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* $Id: pt_util.c,v 1.3.4.2 2001/10/13 04:21:47 shadow Exp $ */ > > /* >@@ -39,7 +40,7 @@ > > extern char *optarg; > extern int optind; >-extern int errno; >+ > > int display_entry(); > void add_group(); >diff -r -u -N openafs-1.2.8.orig/src/rlogind/rexecd.c openafs-1.2.8/src/rlogind/rexecd.c >--- openafs-1.2.8.orig/src/rlogind/rexecd.c 2001-08-07 18:03:55.000000000 -0600 >+++ openafs-1.2.8/src/rlogind/rexecd.c 2003-05-16 11:05:41.000000000 -0600 >@@ -34,7 +34,6 @@ > #include <usersec.h> > #endif > >-extern errno; > struct passwd *getpwnam(); > char *crypt(), *strncat(); > #if !defined(AFS_AIX_ENV) && !defined(AFS_HPUX_ENV) && !defined(AFS_OSF_ENV) && !defined(AFS_SUN5_ENV) >diff -r -u -N openafs-1.2.8.orig/src/rlogind/rlogind.c openafs-1.2.8/src/rlogind/rlogind.c >--- openafs-1.2.8.orig/src/rlogind/rlogind.c 2001-08-07 18:03:55.000000000 -0600 >+++ openafs-1.2.8/src/rlogind/rlogind.c 2003-05-16 11:09:19.000000000 -0600 >@@ -145,7 +145,7 @@ > > #define SUPERUSER(pwd) ((pwd)->pw_uid == 0) > >-extern int errno; >+ > int reapchild(); > struct passwd *getpwnam(), *pwd; > #ifdef AFS_HPUX_ENV >@@ -1658,7 +1658,7 @@ > * whole packet. > */ > >-extern int errno; >+ > > intokens(s) > int s; >diff -r -u -N openafs-1.2.8.orig/src/rsh/herror.c openafs-1.2.8/src/rsh/herror.c >--- openafs-1.2.8.orig/src/rsh/herror.c 2001-07-12 13:58:55.000000000 -0600 >+++ openafs-1.2.8/src/rsh/herror.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright (c) 1987 Regents of the University of California. > * All rights reserved. >diff -r -u -N openafs-1.2.8.orig/src/rsh/rlogin.c openafs-1.2.8/src/rsh/rlogin.c >--- openafs-1.2.8.orig/src/rsh/rlogin.c 2001-08-07 18:03:57.000000000 -0600 >+++ openafs-1.2.8/src/rsh/rlogin.c 2003-05-16 11:09:21.000000000 -0600 >@@ -43,7 +43,7 @@ > { "0", "50", "75", "110", "134", "150", "200", "300", > "600", "1200", "1800", "2400", "4800", "9600", "19200", "38400" }; > char term[256] = "network"; >-extern int errno; >+ > int lostpeer(); > #ifndef COMPAT > int dosigwinch = 0; >diff -r -u -N openafs-1.2.8.orig/src/rxkad/test/stress_internal.h openafs-1.2.8/src/rxkad/test/stress_internal.h >--- openafs-1.2.8.orig/src/rxkad/test/stress_internal.h 2002-11-14 15:44:53.000000000 -0700 >+++ openafs-1.2.8/src/rxkad/test/stress_internal.h 2003-05-16 11:05:16.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -21,7 +22,7 @@ > #define RXKST_CLIENT_INST "" > #define RXKST_CLIENT_CELL "rxtest.openafs.org" > >-extern int errno; >+ > > struct serverParms { > char *whoami; >diff -r -u -N openafs-1.2.8.orig/src/scout/scout.c openafs-1.2.8/src/scout/scout.c >--- openafs-1.2.8.orig/src/scout/scout.c 2001-08-07 18:04:09.000000000 -0600 >+++ openafs-1.2.8/src/scout/scout.c 2003-05-16 11:05:16.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -33,7 +34,7 @@ > #include <cmd.h> /*Command interpretation library*/ > #include <fsprobe.h> /*Interface for fsprobe module*/ > >-extern int errno; >+ > extern struct hostent *hostutil_GetHostByName(); > extern int gtx_InputServer(); > extern int gethostname(); >diff -r -u -N openafs-1.2.8.orig/src/sys/afssyscalls.c openafs-1.2.8/src/sys/afssyscalls.c >--- openafs-1.2.8.orig/src/sys/afssyscalls.c 2001-07-12 13:59:17.000000000 -0600 >+++ openafs-1.2.8/src/sys/afssyscalls.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -238,7 +239,7 @@ > icreate(dev, near_inode, param1, param2, param3, param4) > int dev, near_inode, param1, param2, param3, param4; > { >- extern int errno; >+ > int errcode; > struct iparam iparams; > >@@ -255,7 +256,7 @@ > iopen(dev, inode, usrmod) > int dev, inode, usrmod; > { >- extern int errno; >+ > int errcode; > > errcode = syscall(AFS_SYSCALL, AFSCALL_IOPEN, dev, inode, usrmod); >@@ -266,7 +267,7 @@ > iinc(dev, inode, inode_p1) > int dev, inode, inode_p1; > { >- extern int errno; >+ > int errcode; > > errcode = syscall(AFS_SYSCALL, AFSCALL_IINC, dev, inode, inode_p1); >@@ -277,7 +278,7 @@ > idec(dev, inode, inode_p1) > int dev, inode, inode_p1; > { >- extern int errno; >+ > int errcode; > > errcode = syscall(AFS_SYSCALL, AFSCALL_IDEC, dev, inode, inode_p1); >@@ -292,7 +293,7 @@ > char *cbuf; > unsigned int count; > { >- extern int errno; >+ > int errcode; > struct iparam iparams; > >@@ -311,7 +312,7 @@ > char *cbuf; > unsigned int count; > { >- extern int errno; >+ > int errcode; > struct iparam iparams; > >@@ -329,7 +330,7 @@ > > lsetpag() > { >- extern int errno; >+ > int errcode; > > errcode = syscall(AFS_SYSCALL, AFSCALL_SETPAG); >@@ -340,7 +341,7 @@ > char *path, *cmarg; > int cmd, follow; > { >- extern int errno; >+ > int errcode; > > errcode = syscall(AFS_SYSCALL, AFSCALL_PIOCTL, path, cmd, cmarg, follow); >diff -r -u -N openafs-1.2.8.orig/src/sys/rmtsysd.c openafs-1.2.8/src/sys/rmtsysd.c >--- openafs-1.2.8.orig/src/sys/rmtsysd.c 2001-07-12 13:59:17.000000000 -0600 >+++ openafs-1.2.8/src/sys/rmtsysd.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -32,7 +33,7 @@ > #include <rx/xdr.h> > #include "rmtsys.h" > >-extern int errno; /* We ship this over the net if needed */ >+ /* We ship this over the net if needed */ > extern RMTSYS_ExecuteRequest(); > > #define N_SECURITY_OBJECTS 1 /* No real security yet */ >diff -r -u -N openafs-1.2.8.orig/src/sys/rmtsyss.c openafs-1.2.8/src/sys/rmtsyss.c >--- openafs-1.2.8.orig/src/sys/rmtsyss.c 2001-08-07 18:04:10.000000000 -0600 >+++ openafs-1.2.8/src/sys/rmtsyss.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -33,7 +34,7 @@ > /*#include <afs/cellconfig.h>*/ > #include "rmtsys.h" > >-extern int errno; /* We ship this over the net if needed */ >+ /* We ship this over the net if needed */ > extern RMTSYS_ExecuteRequest(); > > #define NFS_EXPORTER 1 /* To probably handle more later */ >diff -r -u -N openafs-1.2.8.orig/src/uss/uss_fs.c openafs-1.2.8/src/uss/uss_fs.c >--- openafs-1.2.8.orig/src/uss/uss_fs.c 2001-08-07 18:04:15.000000000 -0600 >+++ openafs-1.2.8/src/uss/uss_fs.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -31,7 +32,7 @@ > #include <netinet/in.h> > #include <afs/venus.h> > #include "uss_common.h" >-extern int errno; >+ > > > /* >diff -r -u -N openafs-1.2.8.orig/src/uss/uss_kauth.c openafs-1.2.8/src/uss/uss_kauth.c >--- openafs-1.2.8.orig/src/uss/uss_kauth.c 2001-08-07 18:04:15.000000000 -0600 >+++ openafs-1.2.8/src/uss/uss_kauth.c 2003-05-16 11:09:23.000000000 -0600 >@@ -28,7 +28,7 @@ > #include <afs/kautils.h> /*MAXKTCREALMLEN*/ > #include <afs/kaport.h> /* pack_long */ > >-extern int errno; >+ > extern afs_int32 KAM_CreateUser(); > > #define uss_kauth_MAX_SIZE 2048 >diff -r -u -N openafs-1.2.8.orig/src/uss/uss_procs.c openafs-1.2.8/src/uss/uss_procs.c >--- openafs-1.2.8.orig/src/uss/uss_procs.c 2001-08-07 18:04:15.000000000 -0600 >+++ openafs-1.2.8/src/uss/uss_procs.c 2003-05-16 11:09:25.000000000 -0600 >@@ -33,7 +33,7 @@ > #endif > #include <afs/kautils.h> /*MAXKTCREALMLEN*/ > >-extern int errno; >+ > > #undef USS_PROCS_DB > #undef USS_PROCS_DB_INSTANCE >diff -r -u -N openafs-1.2.8.orig/src/uss/uss_ptserver.c openafs-1.2.8/src/uss/uss_ptserver.c >--- openafs-1.2.8.orig/src/uss/uss_ptserver.c 2001-08-07 18:04:15.000000000 -0600 >+++ openafs-1.2.8/src/uss/uss_ptserver.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -25,7 +26,7 @@ > #include <afs/pterror.h> /*Protection Server error codes*/ > #include <afs/com_err.h> /*Error code xlation*/ > >-extern int errno; >+ > > #undef USS_PTSERVER_DB > >diff -r -u -N openafs-1.2.8.orig/src/uss/uss_vol.c openafs-1.2.8/src/uss/uss_vol.c >--- openafs-1.2.8.orig/src/uss/uss_vol.c 2002-09-09 11:01:12.000000000 -0600 >+++ openafs-1.2.8/src/uss/uss_vol.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -38,7 +39,7 @@ > #include <afs/keys.h> > #include <ubik.h> > >-extern int errno; >+ > extern struct rx_connection *UV_Bind(); > extern struct rx_securityClass *rxnull_NewClientSecurityObject(); > extern int line; >diff -r -u -N openafs-1.2.8.orig/src/venus/fs.c openafs-1.2.8/src/venus/fs.c >--- openafs-1.2.8.orig/src/venus/fs.c 2002-08-27 21:53:33.000000000 -0600 >+++ openafs-1.2.8/src/venus/fs.c 2003-05-16 11:09:26.000000000 -0600 >@@ -66,7 +66,7 @@ > extern struct hostent *hostutil_GetHostByName(); > extern afs_int32 VL_GetEntryByNameO(); > >-extern int errno; >+ > extern struct cmd_syndesc *cmd_CreateSyntax(); > static char pn[] = "fs"; > static int rxInitDone = 0; >diff -r -u -N openafs-1.2.8.orig/src/venus/kdump.c openafs-1.2.8/src/venus/kdump.c >--- openafs-1.2.8.orig/src/venus/kdump.c 2002-07-31 16:19:52.000000000 -0600 >+++ openafs-1.2.8/src/venus/kdump.c 2003-05-16 11:05:16.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -518,7 +519,7 @@ > #ifndef AFS_KDUMP_LIB > extern struct cmd_syndesc *cmd_CreateSyntax(); > #endif >-extern int errno; >+ > int opencore(); > > /* Note: this should agree with the definition in afs_buffer.c */ >diff -r -u -N openafs-1.2.8.orig/src/venus/test/owntest.c openafs-1.2.8/src/venus/test/owntest.c >--- openafs-1.2.8.orig/src/venus/test/owntest.c 2001-07-12 13:59:28.000000000 -0600 >+++ openafs-1.2.8/src/venus/test/owntest.c 2003-05-16 11:05:16.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -17,7 +18,7 @@ > #include <sys/stat.h> > #include <sys/time.h> > >-extern int errno; >+ > > main(argc, argv) > int argc; >diff -r -u -N openafs-1.2.8.orig/src/venus/twiddle.c openafs-1.2.8/src/venus/twiddle.c >--- openafs-1.2.8.orig/src/venus/twiddle.c 2001-07-12 13:59:27.000000000 -0600 >+++ openafs-1.2.8/src/venus/twiddle.c 2003-05-16 11:09:28.000000000 -0600 >@@ -44,7 +44,7 @@ > static char tspace[1024]; > static struct ubik_client *uclient; > >-extern int errno; >+ > extern struct cmd_syndesc *cmd_CreateSyntax(); > static char pn[] = "fs"; > static int rxInitDone = 0; >diff -r -u -N openafs-1.2.8.orig/src/vfsck/main.c openafs-1.2.8/src/vfsck/main.c >--- openafs-1.2.8.orig/src/vfsck/main.c 2001-12-26 13:26:57.000000000 -0700 >+++ openafs-1.2.8/src/vfsck/main.c 2003-05-16 11:09:30.000000000 -0600 >@@ -112,7 +112,7 @@ > static int tryForce; > int returntosingle; > >-extern int errno; >+ > > struct part { > char *name; /* device name */ >diff -r -u -N openafs-1.2.8.orig/src/vfsck/setup.c openafs-1.2.8/src/vfsck/setup.c >--- openafs-1.2.8.orig/src/vfsck/setup.c 2001-10-12 22:22:10.000000000 -0600 >+++ openafs-1.2.8/src/vfsck/setup.c 2003-05-16 11:05:16.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright (c) 1980, 1986 The Regents of the University of California. > * All rights reserved. >@@ -797,7 +798,7 @@ > #endif > #include <sys/errno.h> > >-extern int errno; >+ > > is_mounted(device,dev_st) > char *device; >diff -r -u -N openafs-1.2.8.orig/src/vlserver/cnvldb.c openafs-1.2.8/src/vlserver/cnvldb.c >--- openafs-1.2.8.orig/src/vlserver/cnvldb.c 2001-08-07 18:04:22.000000000 -0600 >+++ openafs-1.2.8/src/vlserver/cnvldb.c 2003-05-16 11:09:32.000000000 -0600 >@@ -30,7 +30,7 @@ > #define MAXSIZE 2048 /* most I'll get back from PIOCTL */ > #define BADSERVERID 255 /* XXX */ > >-extern int errno; >+ > extern struct cmd_syndesc *cmd_CreateSyntax(); > static char pn[] = "cnvldb"; > static char tempname[] = "XXnewvldb"; >diff -r -u -N openafs-1.2.8.orig/src/vlserver/sascnvldb.c openafs-1.2.8/src/vlserver/sascnvldb.c >--- openafs-1.2.8.orig/src/vlserver/sascnvldb.c 2001-08-07 18:04:22.000000000 -0600 >+++ openafs-1.2.8/src/vlserver/sascnvldb.c 2003-05-16 11:09:34.000000000 -0600 >@@ -35,7 +35,7 @@ > > #define MAXSIZE 2048 /* most I'll get back from PIOCTL */ > >-extern int errno; >+ > extern struct cmd_syndesc *cmd_CreateSyntax(); > static char pn[] = "cnvldb"; > static char tempname[] = "XXnewvldb"; >diff -r -u -N openafs-1.2.8.orig/src/vol/fs_conv_411.c openafs-1.2.8/src/vol/fs_conv_411.c >--- openafs-1.2.8.orig/src/vol/fs_conv_411.c 2001-08-07 18:04:23.000000000 -0600 >+++ openafs-1.2.8/src/vol/fs_conv_411.c 2003-05-16 11:09:37.000000000 -0600 >@@ -84,7 +84,7 @@ > int icount=0, iarraysize=0, *iarray; > > char *rawname(), *unrawname(), *vol_DevName(), *blockcheck(); >-extern int errno; >+ > #define ROOTINODE 2 > int force = 0, verbose = 0, unconv = 0; > >diff -r -u -N openafs-1.2.8.orig/src/vol/partition.c openafs-1.2.8/src/vol/partition.c >--- openafs-1.2.8.orig/src/vol/partition.c 2002-09-11 02:18:12.000000000 -0600 >+++ openafs-1.2.8/src/vol/partition.c 2003-05-16 11:05:15.000000000 -0600 >@@ -1,3 +1,4 @@ >+#include <errno.h> > /* > * Copyright 2000, International Business Machines Corporation and others. > * All Rights Reserved. >@@ -811,7 +812,7 @@ > #else > void VSetPartitionDiskUsage_r(register struct DiskPartition *dp) > { >- extern int errno; >+ > int fd, totalblks, free, used, availblks, bsize, code; > int reserved; > #if AFS_HAVE_STATVFS
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 21832
:
12500
| 12501