Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 21832
Collapse All | Expand All

(-)openafs-1.2.8.orig/src/WINNT/afsd/afsmsg95.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 19-25 Link Here
19
20
20
int sock;
21
int sock;
21
struct sockaddr_in addr;
22
struct sockaddr_in addr;
22
extern int errno;
23
23
24
24
int afsMsg_Init()
25
int afsMsg_Init()
25
{
26
{
(-)openafs-1.2.8.orig/src/WINNT/afsd/cm_config.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 38-44 Link Here
38
#define AFS_CELLSERVDB AFS_CELLSERVDB_UNIX
39
#define AFS_CELLSERVDB AFS_CELLSERVDB_UNIX
39
#ifdef DJGPP
40
#ifdef DJGPP
40
extern char cm_confDir[];
41
extern char cm_confDir[];
41
extern int errno;
42
42
#endif /* DJGPP */
43
#endif /* DJGPP */
43
#else
44
#else
44
#define AFS_CELLSERVDB AFS_CELLSERVDB_NT
45
#define AFS_CELLSERVDB AFS_CELLSERVDB_NT
(-)openafs-1.2.8.orig/src/WINNT/afsd/cm_diskcache95.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 46-52 Link Here
46
char cacheInfoPath[128];
47
char cacheInfoPath[128];
47
char cacheFileName[128];
48
char cacheFileName[128];
48
49
49
extern int errno;
50
50
51
51
#define MAX_OPEN_FILES 22
52
#define MAX_OPEN_FILES 22
52
53
(-)openafs-1.2.8.orig/src/WINNT/afsd/cm_dns.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/* Copyright 2000, International Business Machines Corporation and others.
2
/* Copyright 2000, International Business Machines Corporation and others.
2
 * All Rights Reserved.
3
 * All Rights Reserved.
3
 *
4
 *
Lines 19-25 Link Here
19
#include <lwp.h>
20
#include <lwp.h>
20
#include <afs/afsint.h>
21
#include <afs/afsint.h>
21
22
22
extern int errno;
23
23
static char dns_addr[30];
24
static char dns_addr[30];
24
#ifdef DJGPP
25
#ifdef DJGPP
25
extern char cm_confDir[];
26
extern char cm_confDir[];
(-)openafs-1.2.8.orig/src/afsmonitor/afsmonitor.c (-1 / +1 lines)
Lines 209-215 Link Here
209
/* EXTERN DEFINITIONS */
209
/* EXTERN DEFINITIONS */
210
210
211
extern struct hostent *hostutil_GetHostByName(); 
211
extern struct hostent *hostutil_GetHostByName(); 
212
extern int errno;
212
213
213
214
214
215
/* routines from afsmon-output.c */
215
/* routines from afsmon-output.c */
(-)openafs-1.2.8.orig/src/butm/butm_test.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 23-29 Link Here
23
#include <afs/butm.h>
24
#include <afs/butm.h>
24
#include "AFS_component_version_number.c"
25
#include "AFS_component_version_number.c"
25
26
26
extern int errno;
27
27
28
28
static char *whoami = "TEST FAIL";
29
static char *whoami = "TEST FAIL";
29
30
(-)openafs-1.2.8.orig/src/comerr/test/test.c (+1 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
#include <afsconfig.h>
2
#include <afsconfig.h>
2
#include <afs/param.h>
3
#include <afs/param.h>
3
4
(-)openafs-1.2.8.orig/src/export/cfgafs.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 26-32 Link Here
26
#include <signal.h>
27
#include <signal.h>
27
28
28
extern char    *malloc(), *optarg;
29
extern char    *malloc(), *optarg;
29
extern int	errno;
30
30
extern int	sysconfig(int cmd, void *arg, int len);
31
extern int	sysconfig(int cmd, void *arg, int len);
31
32
32
#include "AFS_component_version_number.c"
33
#include "AFS_component_version_number.c"
(-)openafs-1.2.8.orig/src/export/cfgexport.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 29-35 Link Here
29
#include "sym.h"
30
#include "sym.h"
30
31
31
extern char    *malloc(), *optarg;
32
extern char    *malloc(), *optarg;
32
extern int	errno;
33
33
extern int	sysconfig(int cmd, void *arg, int len);
34
extern int	sysconfig(int cmd, void *arg, int len);
34
35
35
int debug;
36
int debug;
(-)openafs-1.2.8.orig/src/ftpd43+/ftpd.c (-1 / +1 lines)
Lines 117-123 Link Here
117
#define	FTPUSERS	"/etc/ftpusers"
117
#define	FTPUSERS	"/etc/ftpusers"
118
118
119
#ifndef AFS_LINUX20_ENV
119
#ifndef AFS_LINUX20_ENV
120
extern	int errno;
120
121
extern	char *sys_errlist[];
121
extern	char *sys_errlist[];
122
extern	int sys_nerr;
122
extern	int sys_nerr;
123
#endif
123
#endif
(-)openafs-1.2.8.orig/src/ftpd43+/glob.c (-1 / +1 lines)
Lines 55-61 Link Here
55
char	*globerr;
55
char	*globerr;
56
char	*home;
56
char	*home;
57
struct	passwd *getpwnam();
57
struct	passwd *getpwnam();
58
extern	int errno;
58
59
static	char *strspl(), *strend();
59
static	char *strspl(), *strend();
60
char	*malloc(), *strcpy(), *strcat();
60
char	*malloc(), *strcpy(), *strcat();
61
char	**copyblk();
61
char	**copyblk();
(-)openafs-1.2.8.orig/src/gtx/X11windows.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 24-30 Link Here
24
#include <stdio.h>			/*Standard I/O package*/
25
#include <stdio.h>			/*Standard I/O package*/
25
26
26
#if	!defined(NeXT)
27
#if	!defined(NeXT)
27
extern int errno;			/*System error number*/
28
			/*System error number*/
28
#endif /* NeXT */
29
#endif /* NeXT */
29
int X11_debug;				/*Is debugging turned on?*/
30
int X11_debug;				/*Is debugging turned on?*/
30
static char mn[] = "gator_X11windows";	/*Module name*/
31
static char mn[] = "gator_X11windows";	/*Module name*/
(-)openafs-1.2.8.orig/src/gtx/curseswindows.c (-1 / +1 lines)
Lines 41-47 Link Here
41
#include "gtxobjects.h"
41
#include "gtxobjects.h"
42
#include "gtxframe.h"
42
#include "gtxframe.h"
43
43
44
extern int errno;               /* everybody else puts it in errno.h */
44
               /* everybody else puts it in errno.h */
45
45
46
int curses_debug;			    /*Is debugging turned on?*/
46
int curses_debug;			    /*Is debugging turned on?*/
47
static char mn[] = "gator_curseswindows";   /*Module name*/
47
static char mn[] = "gator_curseswindows";   /*Module name*/
(-)openafs-1.2.8.orig/src/gtx/dumbwindows.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 22-28 Link Here
22
#include <stdio.h>			/*Standard I/O package*/
23
#include <stdio.h>			/*Standard I/O package*/
23
24
24
#if	!defined(NeXT)
25
#if	!defined(NeXT)
25
extern int errno;			/*System error number*/
26
			/*System error number*/
26
#endif /* NeXT */
27
#endif /* NeXT */
27
int dumb_debug;				/*Is debugging turned on?*/
28
int dumb_debug;				/*Is debugging turned on?*/
28
static char mn[] = "gator_dumbwindows";	/*Module name*/
29
static char mn[] = "gator_dumbwindows";	/*Module name*/
(-)openafs-1.2.8.orig/src/gtx/object_test.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 26-32 Link Here
26
#include <stdio.h>                  /*Standard I/O stuff*/
27
#include <stdio.h>                  /*Standard I/O stuff*/
27
#include <cmd.h>		    /*Command interpretation library*/
28
#include <cmd.h>		    /*Command interpretation library*/
28
29
29
extern int errno;
30
30
31
31
/*
32
/*
32
 * Command line parameter indicies.
33
 * Command line parameter indicies.
(-)openafs-1.2.8.orig/src/gtx/screen_test.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 22-28 Link Here
22
#include "gtxX11win.h"	    /*X11 window interface*/
23
#include "gtxX11win.h"	    /*X11 window interface*/
23
#include <cmd.h>		    /*Command interpretation library*/
24
#include <cmd.h>		    /*Command interpretation library*/
24
25
25
extern int errno;
26
26
27
27
/*
28
/*
28
 * Command line parameter indicies.
29
 * Command line parameter indicies.
(-)openafs-1.2.8.orig/src/inetd/ta-rauth.c (-1 / +1 lines)
Lines 106-112 Link Here
106
    name.sin_port = htons(RAUTH_PORT);
106
    name.sin_port = htons(RAUTH_PORT);
107
    name.sin_addr = raddr;
107
    name.sin_addr = raddr;
108
    if(connect(s, (struct sockaddr *) &name, sizeof(name)) == -1) {
108
    if(connect(s, (struct sockaddr *) &name, sizeof(name)) == -1) {
109
	extern int errno;
109
	
110
	
110
	
111
	if(ta_debug) {
111
	if(ta_debug) {
112
	    syslog(LOG_ERR, "ta_rauth(%s): connect call to (%d:%d) failed=%d\n",svc_name,raddr.s_addr, htons(RAUTH_PORT), errno);
112
	    syslog(LOG_ERR, "ta_rauth(%s): connect call to (%d:%d) failed=%d\n",svc_name,raddr.s_addr, htons(RAUTH_PORT), errno);
(-)openafs-1.2.8.orig/src/kauth/test/test_interim_ktc.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 27-33 Link Here
27
#include "kautils.h"
28
#include "kautils.h"
28
29
29
30
30
extern int errno;
31
31
32
32
static char *whoami = "test_interim_ktc";
33
static char *whoami = "test_interim_ktc";
33
static verbose = 1;
34
static verbose = 1;
(-)openafs-1.2.8.orig/src/log/test/gettoktest.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 19-25 Link Here
19
#include <afs/comauth.h>
20
#include <afs/comauth.h>
20
#include <errno.h>
21
#include <errno.h>
21
22
22
extern int errno;
23
23
24
24
main(argc, argv)
25
main(argc, argv)
25
    int argc;
26
    int argc;
(-)openafs-1.2.8.orig/src/log/test/testlog.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 35-41 Link Here
35
#include <afs/cellconfig.h>
36
#include <afs/cellconfig.h>
36
#include <errno.h>
37
#include <errno.h>
37
38
38
extern int errno;
39
39
40
40
#define	DB_CELLS    1
41
#define	DB_CELLS    1
41
#define	DB_ARGPARSE 0
42
#define	DB_ARGPARSE 0
(-)openafs-1.2.8.orig/src/login/login.c (-2 / +2 lines)
Lines 285-291 Link Here
285
	int argc;
285
	int argc;
286
	char **argv;
286
	char **argv;
287
{
287
{
288
	extern int errno, optind;
288
	extern int optind;
289
	extern char *optarg, **environ;
289
	extern char *optarg, **environ;
290
	struct group *gr, *getgrnam();
290
	struct group *gr, *getgrnam();
291
	register int ch;
291
	register int ch;
Lines 2032-2038 Link Here
2032
}
2032
}
2033
2033
2034
static char *getlinep(const char *string, int size, FILE *stream) {
2034
static char *getlinep(const char *string, int size, FILE *stream) {
2035
    extern int errno;
2035
    
2036
    int c;
2036
    int c;
2037
    char *cp;
2037
    char *cp;
2038
2038
(-)openafs-1.2.8.orig/src/ntp/ntp.c (-1 / +1 lines)
Lines 79-85 Link Here
79
struct sockaddr_in dst = {AF_INET};
79
struct sockaddr_in dst = {AF_INET};
80
struct servent *sp;
80
struct servent *sp;
81
extern double ul_fixed_to_double(), s_fixed_to_double();
81
extern double ul_fixed_to_double(), s_fixed_to_double();
82
extern int errno;
82
83
int set, verbose, force;
83
int set, verbose, force;
84
int debug;
84
int debug;
85
extern int optind;
85
extern int optind;
(-)openafs-1.2.8.orig/src/ntp/ntp_sock.c (-1 / +1 lines)
Lines 36-42 Link Here
36
int nintf;
36
int nintf;
37
37
38
#ifdef	TEST
38
#ifdef	TEST
39
extern int errno;
39
40
40
41
#include "AFS_component_version_number.c"
41
#include "AFS_component_version_number.c"
42
42
(-)openafs-1.2.8.orig/src/ntp/ntpd.c (-1 / +1 lines)
Lines 112-118 Link Here
112
struct ntpdata ntpframe;
112
struct ntpdata ntpframe;
113
struct sysdata sys;
113
struct sysdata sys;
114
114
115
extern int errno;
115
116
extern char *malloc(), *ntoa();
116
extern char *malloc(), *ntoa();
117
extern double s_fixed_to_double(), ul_fixed_to_double();
117
extern double s_fixed_to_double(), ul_fixed_to_double();
118
118
(-)openafs-1.2.8.orig/src/ntp/ntpdc.c (-1 / +1 lines)
Lines 36-42 Link Here
36
#define	STIME	500000		/* usec to wait for another response */
36
#define	STIME	500000		/* usec to wait for another response */
37
#define	MAXPACKETSIZE 1500
37
#define	MAXPACKETSIZE 1500
38
38
39
extern int errno;
39
40
int debug;
40
int debug;
41
int s;
41
int s;
42
int timedout;
42
int timedout;
(-)openafs-1.2.8.orig/src/ntp/ntpsubs.c (-1 / +1 lines)
Lines 28-34 Link Here
28
#endif
28
#endif
29
#include "ntp.h"
29
#include "ntp.h"
30
30
31
extern int errno;
31
32
32
33
#define	TRUE	1
33
#define	TRUE	1
34
#define	FALSE	0
34
#define	FALSE	0
(-)openafs-1.2.8.orig/src/ntp/runntp.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 21-27 Link Here
21
#include <afs/afsutil.h>
22
#include <afs/afsutil.h>
22
23
23
24
24
extern int errno;
25
25
26
26
char *whoami;
27
char *whoami;
27
28
(-)openafs-1.2.8.orig/src/package/fileops.c (-1 / +1 lines)
Lines 35-41 Link Here
35
#include "package.h"
35
#include "package.h"
36
36
37
extern char *strcpy();
37
extern char *strcpy();
38
extern int errno;
38
39
39
40
int mv(from,to)
40
int mv(from,to)
41
register char *from;
41
register char *from;
(-)openafs-1.2.8.orig/src/package/messages.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * (C) Copyright Transarc Corporation 1989
3
 * (C) Copyright Transarc Corporation 1989
3
 * Licensed Materials - Property of Transarc
4
 * Licensed Materials - Property of Transarc
Lines 98-104 Link Here
98
	  }
99
	  }
99
	case 'm':
100
	case 'm':
100
	  {
101
	  {
101
	    extern int errno;
102
	    
102
	    extern int sys_nerr;
103
	    extern int sys_nerr;
103
	    extern char *sys_errlist[];
104
	    extern char *sys_errlist[];
104
105
(-)openafs-1.2.8.orig/src/pinstall/install.c (-1 / +1 lines)
Lines 85-91 Link Here
85
85
86
struct stat istat, ostat;
86
struct stat istat, ostat;
87
87
88
extern int errno;
88
89
#if !defined(AFS_DARWIN60_ENV)
89
#if !defined(AFS_DARWIN60_ENV)
90
extern int sys_nerr;
90
extern int sys_nerr;
91
#endif
91
#endif
(-)openafs-1.2.8.orig/src/ptserver/db_verify.c (-1 / +1 lines)
Lines 7-13 Link Here
7
 * directory or online at http://www.openafs.org/dl/license10.html
7
 * directory or online at http://www.openafs.org/dl/license10.html
8
 */
8
 */
9
9
10
extern int errno;
10
11
11
12
#include <afsconfig.h>
12
#include <afsconfig.h>
13
#include <afs/param.h>
13
#include <afs/param.h>
(-)openafs-1.2.8.orig/src/ptserver/pt_util.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/* $Id: pt_util.c,v 1.3.4.2 2001/10/13 04:21:47 shadow Exp $ */
2
/* $Id: pt_util.c,v 1.3.4.2 2001/10/13 04:21:47 shadow Exp $ */
2
3
3
/*
4
/*
Lines 39-45 Link Here
39
40
40
extern char *optarg;
41
extern char *optarg;
41
extern int optind;
42
extern int optind;
42
extern int errno;
43
43
44
44
int display_entry();
45
int display_entry();
45
void add_group();
46
void add_group();
(-)openafs-1.2.8.orig/src/rlogind/rexecd.c (-1 lines)
Lines 34-40 Link Here
34
#include <usersec.h>
34
#include <usersec.h>
35
#endif
35
#endif
36
36
37
extern	errno;
38
struct	passwd *getpwnam();
37
struct	passwd *getpwnam();
39
char	*crypt(), *strncat();
38
char	*crypt(), *strncat();
40
#if	!defined(AFS_AIX_ENV) && !defined(AFS_HPUX_ENV) && !defined(AFS_OSF_ENV) && !defined(AFS_SUN5_ENV)
39
#if	!defined(AFS_AIX_ENV) && !defined(AFS_HPUX_ENV) && !defined(AFS_OSF_ENV) && !defined(AFS_SUN5_ENV)
(-)openafs-1.2.8.orig/src/rlogind/rlogind.c (-2 / +2 lines)
Lines 145-151 Link Here
145
145
146
#define	SUPERUSER(pwd)	((pwd)->pw_uid == 0)
146
#define	SUPERUSER(pwd)	((pwd)->pw_uid == 0)
147
147
148
extern	int errno;
148
149
int	reapchild();
149
int	reapchild();
150
struct	passwd *getpwnam(), *pwd;
150
struct	passwd *getpwnam(), *pwd;
151
#ifdef	AFS_HPUX_ENV
151
#ifdef	AFS_HPUX_ENV
Lines 1658-1664 Link Here
1658
 * whole packet.
1658
 * whole packet.
1659
 */  
1659
 */  
1660
1660
1661
extern int errno;
1661
1662
1662
1663
intokens(s)
1663
intokens(s)
1664
int s;
1664
int s;
(-)openafs-1.2.8.orig/src/rsh/herror.c (+1 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright (c) 1987 Regents of the University of California.
3
 * Copyright (c) 1987 Regents of the University of California.
3
 * All rights reserved.
4
 * All rights reserved.
(-)openafs-1.2.8.orig/src/rsh/rlogin.c (-1 / +1 lines)
Lines 43-49 Link Here
43
    { "0", "50", "75", "110", "134", "150", "200", "300",
43
    { "0", "50", "75", "110", "134", "150", "200", "300",
44
      "600", "1200", "1800", "2400", "4800", "9600", "19200", "38400" };
44
      "600", "1200", "1800", "2400", "4800", "9600", "19200", "38400" };
45
char	term[256] = "network";
45
char	term[256] = "network";
46
extern	int errno;
46
47
int	lostpeer();
47
int	lostpeer();
48
#ifndef	COMPAT
48
#ifndef	COMPAT
49
int	dosigwinch = 0;
49
int	dosigwinch = 0;
(-)openafs-1.2.8.orig/src/rxkad/test/stress_internal.h (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 21-27 Link Here
21
#define RXKST_CLIENT_INST ""
22
#define RXKST_CLIENT_INST ""
22
#define RXKST_CLIENT_CELL "rxtest.openafs.org"
23
#define RXKST_CLIENT_CELL "rxtest.openafs.org"
23
24
24
extern int errno;
25
25
26
26
struct serverParms {
27
struct serverParms {
27
    char *whoami;
28
    char *whoami;
(-)openafs-1.2.8.orig/src/scout/scout.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 33-39 Link Here
33
#include <cmd.h>		/*Command interpretation library*/
34
#include <cmd.h>		/*Command interpretation library*/
34
#include <fsprobe.h>		/*Interface for fsprobe module*/
35
#include <fsprobe.h>		/*Interface for fsprobe module*/
35
36
36
extern int errno;
37
37
extern struct hostent *hostutil_GetHostByName();
38
extern struct hostent *hostutil_GetHostByName();
38
extern int gtx_InputServer();
39
extern int gtx_InputServer();
39
extern int gethostname();
40
extern int gethostname();
(-)openafs-1.2.8.orig/src/sys/afssyscalls.c (-8 / +9 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 238-244 Link Here
238
icreate(dev, near_inode, param1, param2, param3, param4)
239
icreate(dev, near_inode, param1, param2, param3, param4)
239
int dev, near_inode, param1, param2, param3, param4;
240
int dev, near_inode, param1, param2, param3, param4;
240
{
241
{
241
    extern int errno;
242
    
242
    int errcode;
243
    int errcode;
243
    struct iparam iparams;
244
    struct iparam iparams;
244
245
Lines 255-261 Link Here
255
iopen(dev, inode, usrmod)
256
iopen(dev, inode, usrmod)
256
int dev, inode, usrmod;
257
int dev, inode, usrmod;
257
{
258
{
258
    extern int errno;
259
    
259
    int errcode;
260
    int errcode;
260
261
261
    errcode = syscall(AFS_SYSCALL, AFSCALL_IOPEN, dev, inode, usrmod);
262
    errcode = syscall(AFS_SYSCALL, AFSCALL_IOPEN, dev, inode, usrmod);
Lines 266-272 Link Here
266
iinc(dev, inode, inode_p1)
267
iinc(dev, inode, inode_p1)
267
int dev, inode, inode_p1;
268
int dev, inode, inode_p1;
268
{
269
{
269
    extern int errno;
270
    
270
    int errcode;
271
    int errcode;
271
272
272
    errcode = syscall(AFS_SYSCALL, AFSCALL_IINC, dev, inode, inode_p1);
273
    errcode = syscall(AFS_SYSCALL, AFSCALL_IINC, dev, inode, inode_p1);
Lines 277-283 Link Here
277
idec(dev, inode, inode_p1)
278
idec(dev, inode, inode_p1)
278
int dev, inode, inode_p1;
279
int dev, inode, inode_p1;
279
{
280
{
280
    extern int errno;
281
    
281
    int errcode;
282
    int errcode;
282
283
283
    errcode = syscall(AFS_SYSCALL, AFSCALL_IDEC, dev, inode, inode_p1);
284
    errcode = syscall(AFS_SYSCALL, AFSCALL_IDEC, dev, inode, inode_p1);
Lines 292-298 Link Here
292
char *cbuf;
293
char *cbuf;
293
unsigned int count;
294
unsigned int count;
294
{
295
{
295
    extern int errno;
296
    
296
    int errcode;
297
    int errcode;
297
    struct iparam iparams;
298
    struct iparam iparams;
298
299
Lines 311-317 Link Here
311
char *cbuf;
312
char *cbuf;
312
unsigned int count;
313
unsigned int count;
313
{
314
{
314
    extern int errno;
315
    
315
    int errcode;
316
    int errcode;
316
    struct iparam iparams;
317
    struct iparam iparams;
317
318
Lines 329-335 Link Here
329
330
330
lsetpag()
331
lsetpag()
331
{
332
{
332
    extern int errno;
333
    
333
    int errcode;
334
    int errcode;
334
335
335
    errcode = syscall(AFS_SYSCALL, AFSCALL_SETPAG);
336
    errcode = syscall(AFS_SYSCALL, AFSCALL_SETPAG);
Lines 340-346 Link Here
340
char *path, *cmarg;
341
char *path, *cmarg;
341
int cmd, follow;
342
int cmd, follow;
342
{
343
{
343
    extern int errno;
344
    
344
    int errcode;
345
    int errcode;
345
346
346
    errcode = syscall(AFS_SYSCALL, AFSCALL_PIOCTL, path, cmd, cmarg, follow);
347
    errcode = syscall(AFS_SYSCALL, AFSCALL_PIOCTL, path, cmd, cmarg, follow);
(-)openafs-1.2.8.orig/src/sys/rmtsysd.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 32-38 Link Here
32
#include <rx/xdr.h>
33
#include <rx/xdr.h>
33
#include "rmtsys.h"
34
#include "rmtsys.h"
34
35
35
extern int errno;   /* We ship this over the net if needed */
36
   /* We ship this over the net if needed */
36
extern RMTSYS_ExecuteRequest();
37
extern RMTSYS_ExecuteRequest();
37
38
38
#define N_SECURITY_OBJECTS 1	/* No real security yet */
39
#define N_SECURITY_OBJECTS 1	/* No real security yet */
(-)openafs-1.2.8.orig/src/sys/rmtsyss.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 33-39 Link Here
33
/*#include <afs/cellconfig.h>*/
34
/*#include <afs/cellconfig.h>*/
34
#include "rmtsys.h"
35
#include "rmtsys.h"
35
36
36
extern int errno;   /* We ship this over the net if needed */
37
   /* We ship this over the net if needed */
37
extern RMTSYS_ExecuteRequest();
38
extern RMTSYS_ExecuteRequest();
38
39
39
#define	NFS_EXPORTER	    1	/* To probably handle more later */
40
#define	NFS_EXPORTER	    1	/* To probably handle more later */
(-)openafs-1.2.8.orig/src/uss/uss_fs.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 31-37 Link Here
31
#include <netinet/in.h>
32
#include <netinet/in.h>
32
#include <afs/venus.h>
33
#include <afs/venus.h>
33
#include "uss_common.h"
34
#include "uss_common.h"
34
extern int errno;
35
35
36
36
37
37
/*
38
/*
(-)openafs-1.2.8.orig/src/uss/uss_kauth.c (-1 / +1 lines)
Lines 28-34 Link Here
28
#include <afs/kautils.h>	/*MAXKTCREALMLEN*/
28
#include <afs/kautils.h>	/*MAXKTCREALMLEN*/
29
#include <afs/kaport.h>         /* pack_long */
29
#include <afs/kaport.h>         /* pack_long */
30
30
31
extern int errno;
31
32
extern afs_int32 KAM_CreateUser();
32
extern afs_int32 KAM_CreateUser();
33
33
34
#define uss_kauth_MAX_SIZE	2048
34
#define uss_kauth_MAX_SIZE	2048
(-)openafs-1.2.8.orig/src/uss/uss_procs.c (-1 / +1 lines)
Lines 33-39 Link Here
33
#endif
33
#endif
34
#include <afs/kautils.h>	/*MAXKTCREALMLEN*/
34
#include <afs/kautils.h>	/*MAXKTCREALMLEN*/
35
35
36
extern int errno;
36
37
37
38
#undef USS_PROCS_DB
38
#undef USS_PROCS_DB
39
#undef USS_PROCS_DB_INSTANCE
39
#undef USS_PROCS_DB_INSTANCE
(-)openafs-1.2.8.orig/src/uss/uss_ptserver.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 25-31 Link Here
25
#include <afs/pterror.h>	/*Protection Server error codes*/
26
#include <afs/pterror.h>	/*Protection Server error codes*/
26
#include <afs/com_err.h>	/*Error code xlation*/
27
#include <afs/com_err.h>	/*Error code xlation*/
27
28
28
extern int errno;
29
29
30
30
#undef USS_PTSERVER_DB
31
#undef USS_PTSERVER_DB
31
32
(-)openafs-1.2.8.orig/src/uss/uss_vol.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 38-44 Link Here
38
#include <afs/keys.h>
39
#include <afs/keys.h>
39
#include <ubik.h>
40
#include <ubik.h>
40
41
41
extern int errno;
42
42
extern struct rx_connection *UV_Bind();
43
extern struct rx_connection *UV_Bind();
43
extern  struct rx_securityClass *rxnull_NewClientSecurityObject();
44
extern  struct rx_securityClass *rxnull_NewClientSecurityObject();
44
extern int line;
45
extern int line;
(-)openafs-1.2.8.orig/src/venus/fs.c (-1 / +1 lines)
Lines 66-72 Link Here
66
extern struct hostent *hostutil_GetHostByName();
66
extern struct hostent *hostutil_GetHostByName();
67
extern afs_int32 VL_GetEntryByNameO();
67
extern afs_int32 VL_GetEntryByNameO();
68
68
69
extern int errno;
69
70
extern struct cmd_syndesc *cmd_CreateSyntax();
70
extern struct cmd_syndesc *cmd_CreateSyntax();
71
static char pn[] = "fs";
71
static char pn[] = "fs";
72
static int rxInitDone = 0;
72
static int rxInitDone = 0;
(-)openafs-1.2.8.orig/src/venus/kdump.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 518-524 Link Here
518
#ifndef AFS_KDUMP_LIB
519
#ifndef AFS_KDUMP_LIB
519
extern struct cmd_syndesc *cmd_CreateSyntax();
520
extern struct cmd_syndesc *cmd_CreateSyntax();
520
#endif
521
#endif
521
extern int errno;
522
522
int opencore();
523
int opencore();
523
524
524
/* Note: this should agree with the definition in afs_buffer.c */
525
/* Note: this should agree with the definition in afs_buffer.c */
(-)openafs-1.2.8.orig/src/venus/test/owntest.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 17-23 Link Here
17
#include <sys/stat.h>
18
#include <sys/stat.h>
18
#include <sys/time.h>
19
#include <sys/time.h>
19
20
20
extern int errno;
21
21
22
22
main(argc, argv)
23
main(argc, argv)
23
int argc;
24
int argc;
(-)openafs-1.2.8.orig/src/venus/twiddle.c (-1 / +1 lines)
Lines 44-50 Link Here
44
static char tspace[1024];
44
static char tspace[1024];
45
static struct ubik_client *uclient;
45
static struct ubik_client *uclient;
46
46
47
extern int errno;
47
48
extern struct cmd_syndesc *cmd_CreateSyntax();
48
extern struct cmd_syndesc *cmd_CreateSyntax();
49
static char pn[] = "fs";
49
static char pn[] = "fs";
50
static int rxInitDone = 0;
50
static int rxInitDone = 0;
(-)openafs-1.2.8.orig/src/vfsck/main.c (-1 / +1 lines)
Lines 112-118 Link Here
112
static	int tryForce;
112
static	int tryForce;
113
int	returntosingle;
113
int	returntosingle;
114
114
115
extern int errno;
115
116
116
117
struct part {
117
struct part {
118
	char	*name;			/* device name */
118
	char	*name;			/* device name */
(-)openafs-1.2.8.orig/src/vfsck/setup.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright (c) 1980, 1986 The Regents of the University of California.
3
 * Copyright (c) 1980, 1986 The Regents of the University of California.
3
 * All rights reserved.
4
 * All rights reserved.
Lines 797-803 Link Here
797
#endif
798
#endif
798
#include <sys/errno.h>
799
#include <sys/errno.h>
799
800
800
extern int errno;
801
801
802
802
is_mounted(device,dev_st)
803
is_mounted(device,dev_st)
803
    char *device;
804
    char *device;
(-)openafs-1.2.8.orig/src/vlserver/cnvldb.c (-1 / +1 lines)
Lines 30-36 Link Here
30
#define MAXSIZE 2048 /* most I'll get back from PIOCTL */
30
#define MAXSIZE 2048 /* most I'll get back from PIOCTL */
31
#define	BADSERVERID	255	/* XXX */
31
#define	BADSERVERID	255	/* XXX */
32
32
33
extern int errno;
33
34
extern struct cmd_syndesc *cmd_CreateSyntax();
34
extern struct cmd_syndesc *cmd_CreateSyntax();
35
static char pn[] = "cnvldb";
35
static char pn[] = "cnvldb";
36
static char tempname[] = "XXnewvldb";
36
static char tempname[] = "XXnewvldb";
(-)openafs-1.2.8.orig/src/vlserver/sascnvldb.c (-1 / +1 lines)
Lines 35-41 Link Here
35
35
36
#define MAXSIZE 2048 /* most I'll get back from PIOCTL */
36
#define MAXSIZE 2048 /* most I'll get back from PIOCTL */
37
37
38
extern int errno;
38
39
extern struct cmd_syndesc *cmd_CreateSyntax();
39
extern struct cmd_syndesc *cmd_CreateSyntax();
40
static char pn[] = "cnvldb";
40
static char pn[] = "cnvldb";
41
static char tempname[] = "XXnewvldb";
41
static char tempname[] = "XXnewvldb";
(-)openafs-1.2.8.orig/src/vol/fs_conv_411.c (-1 / +1 lines)
Lines 84-90 Link Here
84
int icount=0, iarraysize=0, *iarray;
84
int icount=0, iarraysize=0, *iarray;
85
85
86
char *rawname(),  *unrawname(), *vol_DevName(), *blockcheck();
86
char *rawname(),  *unrawname(), *vol_DevName(), *blockcheck();
87
extern int errno;
87
88
#define ROOTINODE	2	
88
#define ROOTINODE	2	
89
int force = 0,  verbose = 0,  unconv = 0;
89
int force = 0,  verbose = 0,  unconv = 0;
90
90
(-)openafs-1.2.8.orig/src/vol/partition.c (-1 / +2 lines)
Lines 1-3 Link Here
1
#include <errno.h>
1
/*
2
/*
2
 * Copyright 2000, International Business Machines Corporation and others.
3
 * Copyright 2000, International Business Machines Corporation and others.
3
 * All Rights Reserved.
4
 * All Rights Reserved.
Lines 811-817 Link Here
811
#else
812
#else
812
void VSetPartitionDiskUsage_r(register struct DiskPartition *dp)
813
void VSetPartitionDiskUsage_r(register struct DiskPartition *dp)
813
{
814
{
814
    extern int errno;
815
    
815
    int fd, totalblks, free, used, availblks, bsize, code;
816
    int fd, totalblks, free, used, availblks, bsize, code;
816
    int reserved;
817
    int reserved;
817
#if AFS_HAVE_STATVFS
818
#if AFS_HAVE_STATVFS

Return to bug 21832