/* EXTERN DEFINITIONS */
extern struct hostent *hostutil_GetHostByName();
-extern int errno;
+
/* routines from afsmon-output.c */
RCSID("$Header$");
+#include <errno.h>
#include <sys/types.h>
#include <sys/file.h>
#include <sys/stat.h>
#include <afs/butm.h>
#include "AFS_component_version_number.c"
-extern int errno;
+
static char *whoami = "TEST FAIL";
RCSID("$Header$");
+#include <errno.h>
#include <stdio.h>
#include <fcntl.h>
#include <sys/types.h>
#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"
RCSID("$Header$");
+#include <errno.h>
#include <stdio.h>
#include <fcntl.h>
#include <sys/types.h>
#include "sym.h"
extern char *malloc(), *optarg;
-extern int errno;
extern int sysconfig(int cmd, void *arg, int len);
int debug = 0 ;
#include "gtxobjects.h"
#include "gtxframe.h"
-extern int errno; /* everybody else puts it in errno.h */
+
int curses_debug; /*Is debugging turned on?*/
static char mn[] = "gator_curseswindows"; /*Module name*/
#include "gtxdumbwin.h" /*Interface definition*/
#include <stdio.h> /*Standard I/O package*/
+#include <errno.h>
-#if !defined(NeXT)
-extern int errno; /*System error number*/
-#endif /* NeXT */
int dumb_debug; /*Is debugging turned on?*/
static char mn[] = "gator_dumbwindows"; /*Module name*/
#include "gtxcurseswin.h" /*Gator curses window package*/
#include "gtxdumbwin.h" /*Gator dumb terminal window package*/
#include "gtxX11win.h" /*Gator X11 window package*/
+#include <errno.h>
#include <stdio.h> /*Standard I/O stuff*/
#include <cmd.h> /*Command interpretation library*/
-extern int errno;
/*
* Command line parameter indicies.
#include "gtxdumbwin.h" /*Dumb terminal window interface*/
#include "gtxX11win.h" /*X11 window interface*/
#include <cmd.h> /*Command interpretation library*/
+#include <errno.h>
-extern int errno;
/*
* Command line parameter indicies.
#include <sys/stat.h>
#include <sys/file.h>
#include <dirent.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
#include <errno.h>
#ifdef AFS_SUN5_ENV
#include <sys/fcntl.h>
#include "globals.h"
#include "package.h"
-extern char *strcpy();
-extern int errno;
int mv(from,to)
register char *from;
#endif
#include <varargs.h>
#include "package.h"
+#include <errno.h>
+
static char *putnum(dp, n, b)
register char *dp;
}
case 'm':
{
- extern int errno;
extern int sys_nerr;
extern char *sys_errlist[];
static struct stat istat, ostat;
static int stripcalled = 0;
-extern int errno;
#if !defined(AFS_DARWIN60_ENV)
extern int sys_nerr;
#endif
* directory or online at http://www.openafs.org/dl/license10.html
*/
-extern int errno;
#include <afsconfig.h>
#include <afs/param.h>
RCSID("$Header$");
+#include <errno.h>
#include <lock.h>
#include <netinet/in.h>
#define UBIK_INTERNALS
extern char *optarg;
extern int optind;
-extern int errno;
int display_entry();
void add_group();
#include <stdio.h> /*Standard I/O stuff*/
#include <cmd.h> /*Command interpretation library*/
#include <fsprobe.h> /*Interface for fsprobe module*/
+#include <errno.h>
+
-extern int errno;
extern struct hostent *hostutil_GetHostByName();
extern int gtx_InputServer();
extern int gethostname();
#ifdef AFS_SGI_XFS_IOPS_ENV
#include "xfsattrs.h"
#endif
+#include <errno.h>
#include "afssyscalls.h"
#ifdef AFS_DEBUG_IOPS
int icreate(int dev, int near_inode, int param1, int param2, int param3, int param4)
{
- extern int errno;
- int errcode;
+ int errcode;
struct iparam iparams;
iparams.param1 = param1;
int iopen(int dev, int inode, int usrmod)
{
- extern int errno;
int errcode;
errcode = syscall(AFS_SYSCALL, AFSCALL_IOPEN, dev, inode, usrmod);
int iinc(int dev, int inode, int inode_p1)
{
- extern int errno;
int errcode;
errcode = syscall(AFS_SYSCALL, AFSCALL_IINC, dev, inode, inode_p1);
int idec(int dev, int inode, int inode_p1)
{
- extern int errno;
int errcode;
errcode = syscall(AFS_SYSCALL, AFSCALL_IDEC, dev, inode, inode_p1);
#ifdef notdef
int iread(int dev, int inode, int inode_p1, unsigned int offset, char *cbuf, unsigned int count)
{
- extern int errno;
int errcode;
struct iparam iparams;
iwrite(int dev, int inode, int inode_p1, unsigned int offset, char *cbuf, unsigned int count)
{
- extern int errno;
int errcode;
struct iparam iparams;
int lsetpag(void)
{
- extern int errno;
int errcode;
errcode = syscall(AFS_SYSCALL, AFSCALL_SETPAG);
int lpioctl(char *path, int cmd, char *cmarg, int follow)
{
- extern int errno;
int errcode;
errcode = syscall(AFS_SYSCALL, AFSCALL_PIOCTL, path, cmd, cmarg, follow);
#include <netinet/in.h>
#include <sys/stat.h>
#include <sys/file.h>
+#include <errno.h>
#include <stdio.h>
#include <rx/xdr.h>
#include "rmtsys.h"
-extern int errno; /* We ship this over the net if needed */
+
extern RMTSYS_ExecuteRequest();
#define N_SECURITY_OBJECTS 1 /* No real security yet */
#include <sys/stat.h>
#include <sys/file.h>
#include <stdio.h>
+#include <errno.h>
#include <rx/xdr.h>
#include <errno.h>
#include <signal.h>
/*#include <afs/cellconfig.h>*/
#include "rmtsys.h"
-extern int errno; /* We ship this over the net if needed */
extern RMTSYS_ExecuteRequest();
#define NFS_EXPORTER 1 /* To probably handle more later */
#include "uss_fs.h" /*Interface to this module*/
#include <sys/types.h>
-#include <sys/errno.h>
+#include <errno.h>
#include <sys/socket.h>
-#include <sys/errno.h>
#ifdef AFS_SUN5_ENV
#include <sys/ioccom.h>
#endif
#include <afs/venus.h>
#include "uss_common.h"
-extern int errno;
/*
#include <afs/kautils.h> /*MAXKTCREALMLEN*/
#include <afs/kaport.h> /* pack_long */
-extern int errno;
-
#define uss_kauth_MAX_SIZE 2048
#undef USS_KAUTH_DB
#include <afs/kautils.h> /*MAXKTCREALMLEN*/
-extern int errno;
#undef USS_PROCS_DB
#undef USS_PROCS_DB_INSTANCE
#include <afs/pterror.h> /*Protection Server error codes*/
#include <afs/com_err.h> /*Error code xlation*/
-extern int errno;
#undef USS_PTSERVER_DB
#include <sys/stat.h>
#include <pwd.h>
#include <netdb.h>
-#include <sys/errno.h>
+#include <errno.h>
#ifdef HAVE_STRING_H
#include <string.h>
#include <afs/keys.h>
#include <ubik.h>
-extern int errno;
extern struct rx_connection *UV_Bind();
extern int line;
extern int VL_GetEntryByID();
extern char *hostutil_GetNameByINet();
extern struct hostent *hostutil_GetHostByName();
-extern int errno;
+
extern struct cmd_syndesc *cmd_CreateSyntax();
static char pn[] = "fs";
static int rxInitDone = 0;
RCSID("$Header$");
#include <stdio.h>
+#include <errno.h>
#include <stdlib.h> /* for malloc() */
#ifdef AFS_LINUX24_ENV
#ifndef AFS_KDUMP_LIB
extern struct cmd_syndesc *cmd_CreateSyntax();
#endif
-extern int errno;
int opencore();
#if defined(AFS_HPUX_ENV) && defined(__LP64__)
#undef VICE
#include "afs/prs_fs.h"
#include <afs/afsint.h>
-#include <afs/auth.h>
+#include <afs/auth.h>>
+#include <errno.h
#include <afs/cellconfig.h>
#include <afs/cmd.h>
#include <strings.h>
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;
#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";
#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";
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;
#endif
#endif /* AFS_VFSINCL_ENV */
#endif /* AFS_OSF_ENV */
-#include <sys/errno.h>
+#include <errno.h>
#include <sys/stat.h>
#include <stdio.h>
#include <sys/file.h>
#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