#include "afsd.h"
#include <afs/afsutil.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <signal.h>
-#include <string.h>
-#include <stdlib.h>
-#include <time.h>
-#include <sys/types.h>
-#include <sys/stat.h>
+
#include <sys/file.h>
-#include <errno.h>
-#include <sys/time.h>
#include <sys/wait.h>
/* darwin dirent.h doesn't give us the prototypes we want if KERNEL is
# include <dirent.h>
#endif
-
-#ifdef HAVE_SYS_PARAM_H
-#include <sys/param.h>
-#endif
-
#ifdef HAVE_SYS_FS_TYPES_H
#include <sys/fs_types.h>
#endif
#include <sys/fstyp.h>
#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
+#include <ctype.h>
-#include <netinet/in.h>
#include <afs/afs_args.h>
#include <afs/cellconfig.h>
-#include <ctype.h>
#include <afs/afssyscalls.h>
#include <afs/afsutil.h>
#include <afs/sys_prototypes.h>
-#ifdef AFS_SGI61_ENV
-#include <unistd.h>
-#include <libelf.h>
-#include <dwarf.h>
-#include <libdwarf.h>
-void set_staticaddrs(void);
-#endif /* AFS_SGI61_ENV */
#if defined(AFS_SGI62_ENV) && !defined(AFS_SGI65_ENV)
#include <sym.h>
#include <symconst.h>
#ifdef AFS_DARWIN_ENV
#ifdef AFS_DARWIN80_ENV
-#include <sys/ioctl.h>
#include <sys/xattr.h>
#endif
#include <CoreFoundation/CoreFoundation.h>
#include <assert.h>
#include <afs/afsutil.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <signal.h>
-#include <string.h>
-#include <stdlib.h>
-#include <time.h>
-#include <sys/types.h>
-#include <sys/stat.h>
#include <sys/file.h>
-#include <errno.h>
-#include <sys/time.h>
-#include <dirent.h>
#include <sys/wait.h>
-
-#ifdef HAVE_SYS_PARAM_H
-#include <sys/param.h>
-#endif
-
#ifdef HAVE_SYS_FS_TYPES_H
#include <sys/fs_types.h>
#endif
#include <sys/fstyp.h>
#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
+#include <ctype.h>
-#include <netinet/in.h>
+#include <afs/opr.h>
#include <afs/afs_args.h>
#include <afs/cellconfig.h>
-#include <ctype.h>
#include <afs/afssyscalls.h>
#include <afs/afsutil.h>
#ifdef AFS_DARWIN_ENV
#ifdef AFS_DARWIN80_ENV
-#include <sys/ioctl.h>
#include <sys/xattr.h>
#endif
#include <mach/mach.h>
#define BUFSIZ 4096
#endif
-#ifdef AFS_HPUX_ENV
-#include <unistd.h>
-#endif
#if defined(AFS_AIX_ENV) || defined(AFS_SUN5_ENV)
static struct flock fileWlock = { F_WRLCK, 0, 0, 0, 0, 0 };
static struct flock fileRlock = { F_RDLCK, 0, 0, 0, 0, 0 };
*/
#if 0
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-#include <sys/stat.h>
#include <sys/file.h>
#include <krb.h>
#endif
#include <afs/param.h>
#include <roken.h>
-#include <stdlib.h>
#include <stddef.h>
-#include <stdio.h>
-#include <errno.h>
#include <afs/stds.h>
#include <afs/afsutil.h>
#include <rx/xdr.h>
#include <rx/rx.h>
#include <rx/rx_identity.h>
-#include <stdio.h>
#include <afs/afsutil.h>
#include <afs/fileutil.h>
#include <afs/afsutil.h>
#include <afs/cellconfig.h>
#include <rx/rx.h>
-#include <sys/stat.h>
#include <rx/xdr.h>
#include <afs/auth.h>
#include <afs/cellconfig.h>
* It writes warning messages to the standard error output if certain
* fundamental errors occur.
*
- * This routine requires
- *
- * #include <sys/types.h>
- * #include <sys/stat.h>
- * #include <fcntl.h>
- * #include <unistd.h>
- * #include <stdlib.h>
- *
- * and has been tested on:
+ * This routine has been tested on:
*
* AIX 4.2
* Digital Unix 4.0D
#include <ctype.h>
-#ifdef AFS_NT40_ENV
-#include <io.h>
-#endif
-
#include <lwp.h>
#include <afs/ktime.h>
#include <afs/afsutil.h>
#include <lwp.h>
#include <rx/rx.h>
-#ifdef AFS_NT40_ENV
-#include <io.h>
-#endif
#include <afs/afsutil.h>
#include "bnode.h"
#include <roken.h>
-#include <fcntl.h>
-
#ifdef AFS_NT40_ENV
#include <WINNT/afsevent.h>
#endif
# endif
#endif
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#include "internal.h"
char *current_token = (char *)NULL;
#define YYLTYPE yyltype
#endif
-#include <stdio.h>
-
#ifndef __cplusplus
#ifndef __STDC__
#define const
*
* For copyright info, see mit-sipb-cr.h.
*/
-#ifndef AFS_NT40_ENV
-#include <unistd.h>
-#endif
#include <afs/param.h>
-#include <string.h>
#include <assert.h>
#include <ctype.h>
#ifdef AFS_NT40_ENV
-#include <sys/types.h>
#include <afs/afsutil.h>
-#else
-#include <sys/time.h>
#endif
#include <sys/timeb.h>
#include "error_table.h"
#include "mit-sipb-cr.h"
-#include <stdio.h>
/*
* Copyright 2000, International Business Machines Corporation and others.
#include <roken.h>
-#include <stdarg.h>
-
#include <afs/dir.h>
long fidCounter = 0;
int MinHours = 0;
int npwSums = KA_NPWSUMS; /* needs to be variable sometime */
-#include <stdarg.h>
#if !defined(AFS_NT40_ENV) && !defined(AFS_LINUX20_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_XBSD_ENV)
#undef vfprintf
#define vfprintf(stream,fmt,args) _doprnt(fmt,args,stream)
#include <lastlog.h>
#include <ttyent.h>
-#include <grp.h>
-
static gid_t tty_gid(int default_gid);
static void getloginname(struct utmp *up);
* <mit-cpyright.h>.
*/
-#include <string.h>
-#include <time.h>
-
#include "krb.h"
-#include <sys/types.h>
-#include <winsock2.h>
-
static int swap_bytes;
/*
#include <rx/rxstat.h>
#ifdef AFS_NT40_ENV
-# include <winsock2.h>
# include <afs/krb5_nt.h>
#endif
#include <roken.h>
#ifdef AFS_NT40_ENV
-#include <winsock2.h>
#include <pthread.h>
#endif
#include <roken.h>
#ifdef AFS_NT40_ENV
-#include <winsock2.h>
#include <pthread.h>
#endif
#include <afs/bosint.h>
#include <ubik.h>
#include <ubik_int.h>
-#ifndef AFS_NT40_ENV
-#include <arpa/inet.h> /* for inet_ntoa() */
-#endif
void
Usage(void)
#include <roken.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <netinet/in.h>
-#endif
-
#include "ptserver.h"
#include "display.h"
}
#ifdef DUMPTRACE
-#include <errno.h>
#ifdef AFS_NT40_ENV
#include <afs/afsutil.h>
#endif
#if defined(AFS_NT40_ENV)
# include <roken.h>
-# include <winsock2.h>
# if (_WIN32_WINNT < 0x0501)
# undef _WIN32_WINNT
# define _WIN32_WINNT 0x0501
#include "rx_packet.h"
#include "rx_xmit_nt.h"
#include <malloc.h>
-#include <errno.h>
/*
#include <afs/param.h>
#include <roken.h>
-#include <stdarg.h>
-#include <sys/types.h>
-#ifdef AFS_NT40_ENV
-#include <io.h>
-#include <winsock2.h>
-#include <fcntl.h>
-#include <stdlib.h>
-#include <time.h>
-#else
-#include <sys/time.h>
-#include <sys/socket.h>
+#ifdef HAVE_SYS_FILE_H
#include <sys/file.h>
-#include <sys/stat.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
-#endif
-#include <stdio.h>
-#include <stdlib.h>
-#include <errno.h>
-#ifdef HAVE_STRING_H
-#include <string.h>
-#else
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
#endif
+
#include <assert.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#include <signal.h>
-#ifdef HAVE_ERRX
-#include <err.h> /* not stricly right, but if we have a errx() there
- * is hopefully a err.h */
-#endif
+
#include <rx/rx.h>
#include <rx/rx_null.h>
#include <rx/rx_globals.h>
#include <afs/param.h>
#include <roken.h>
-#include <sys/types.h>
-#include <stdio.h>
-#ifdef AFS_NT40_ENV
-#include <io.h>
-#include <winsock2.h>
-#include <fcntl.h>
-#include <stdlib.h>
-#else
-#include <netinet/in.h>
-#include <netdb.h>
+#ifdef HAVE_SYS_FILE_H
#include <sys/file.h>
#endif
-#include <sys/stat.h>
-#include <signal.h>
#include <afs/opr.h>
#include <rx/rx_clock.h>
#include <rx/rx.h>
#include <rx/rx_globals.h>
#include <rx/rx_null.h>
-#include <errno.h>
#include <afs/afsutil.h>
#ifndef osi_Alloc
*
* Open file descriptors until file descriptor n or higher is returned.
*/
-#include <sys/stat.h>
void
OpenFD(int n)
{
#include <afs/param.h>
#include <roken.h>
-#include <sys/types.h>
-#include <stdio.h>
-#ifdef AFS_NT40_ENV
-#include <io.h>
-#include <winsock2.h>
-#include <fcntl.h>
-#include <stdlib.h>
-#else
-#include <netinet/in.h>
-#include <netdb.h>
+#ifdef HAVE_SYS_FILE_H
#include <sys/file.h>
-#include <sys/time.h>
#endif
-#include <signal.h>
-#include <sys/stat.h>
#include <afs/opr.h>
#include <rx/rx_clock.h>
*
* Open file descriptors until file descriptor n or higher is returned.
*/
-#include <sys/stat.h>
void
OpenFD(int n)
{
#include <afsconfig.h>
#include <afs/param.h>
-#ifndef KERNEL
-# include <roken.h>
-#endif
+#include <roken.h>
#include "rx.h"
*/
#include "xdr.h"
-#include <stdio.h>
-#include <string.h>
#define LASTUNSIGNED ((u_int)0-1)
/*
}
f_print(fout, "#ifdef AFS_NT40_ENV\n");
f_print(fout, "#define AFS_RXGEN_EXPORT __declspec(dllexport)\n");
- f_print(fout, "#include <winsock2.h>\n");
f_print(fout, "#endif /* AFS_NT40_ENV */\n");
}
if (currfile && (include = extendfile(currfile, ".h"))) {
* the test case. Use TEST_KERNEL to get the mangled names.
*/
-#include <stdio.h>
-#include <string.h>
-
-#include <time.h>
-
const char the_quick[] = "The quick brown fox jumps over the lazy dogs.\0\0";
const unsigned char key1[8] =
#include <afsconfig.h>
#include <afs/param.h>
+#include <roken.h>
#include <afs/stds.h>
-#include <sys/types.h>
-#include <stdio.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <netdb.h>
-#include <netinet/in.h>
-#endif
+
#include <afs/com_err.h>
#include <afs/afsutil.h>
#include <rx/rxkad.h>
#include <rx/rxstat.h>
#if defined(KERNEL) && !defined(UKERNEL)
#include "sys/errno.h"
-#else /* KERNEL && !UKERNEL */
-#include <errno.h>
#endif /* KERNEL && !UKERNEL */
/*
#include <windows.h>
#include <winioctl.h>
-#include <winsock2.h>
#define SECURITY_WIN32
#include <security.h>
#include <nb30.h>
#include <afs/param.h>
#include <roken.h>
+
+#include <assert.h>
+
#include <afs/opr.h>
#include <lock.h>
#include <rx/xdr.h>
#include <rx/rx.h>
-#include <errno.h>
-#include <assert.h>
#include <afs/afsutil.h>
#define UBIK_INTERNALS
#include <WINNT/afsevent.h>
#include <sys/utime.h>
#include <direct.h>
-#include <process.h>
-#include <afs/procmgmt.h>
#endif
#ifdef AFS_AIX_ENV
#ifdef AFS_DARWIN_ENV
#include <sys/ioccom.h>
#endif
-#if defined(AFS_DUX40_ENV) || defined(AFS_OBSD_ENV) || defined(AFS_NBSD_ENV) || (defined(AFS_DARWIN_ENV) && !defined(AFS_DARWIN100_ENV))
-#include <sys/ioctl.h>
-#endif
#ifndef AFS_DARWIN100_ENV
#include <sys/mtio.h>
#endif
#include <windows.h>
#include <winioctl.h>
-#include <sys/stat.h>
#include <crtdbg.h>
#include <afs/errmap_nt.h>
#include <afs/errmap_nt.h>
#include <windows.h>
#include <winbase.h>
-#include <dirent.h>
/* opendir() - The case insensitive version of opendir */
DIR *
char *serverLogSyslogTag = 0;
#endif
-#include <stdarg.h>
int LogLevel;
int mrafsStyleLogs = 0;
static int threadIdLogs = 0;
# ifdef AFS_NT40_ENV
# include <rpc.h>
-# include <process.h>
# else
# include <net/if.h>
# if !defined(AFS_LINUX20_ENV) && !defined(AFS_ARM_DARWIN_ENV)
#include <roken.h>
#ifdef AFS_NT40_ENV
-#include <winsock2.h>
#include <sys/timeb.h>
#include <afs/afsutil.h>
#include <roken.h>
-#include <stdio.h>
#ifdef AFS_NT40_ENV
#include <windows.h>
#define _CRT_RAND_S
-#include <process.h>
#include <afs/smb_iocons.h>
#include <afs/afsd.h>
#include <afs/cm_ioctl.h>
#include <afs/pioctl_nt.h>
#include <WINNT/syscfg.h>
#else
-#include <netdb.h>
#include <afs/afsint.h>
#define FSINT_COMMON_XG 1
#endif
-#include <sys/stat.h>
+
+#include <afs/opr.h>
#include <afs/cmd.h>
#include <afs/auth.h>
#include <afs/vlserver.h>
#include <afs/ihandle.h>
#include <afs/com_err.h>
#include <afs/afscp.h>
-#ifdef HAVE_DIRENT_H
-#include <dirent.h>
-#endif
+
#ifdef HAVE_DIRECT_H
#include <direct.h>
#endif
#define _KERNEL 1
#endif
-#ifndef AFS_OSF_ENV
-#include <sys/param.h>
-#endif
-
#ifndef AFS_LINUX20_ENV
#include <nlist.h>
#endif
#endif
#include <afs/stds.h>
-#include <sys/types.h>
#if defined(AFS_OSF_ENV)
#define KERNEL
#ifdef _KERN_LOCK_H_
#include FFFFF
#endif
-#include <sys/time.h>
#include <kern/lock.h>
#include <sys/vnode.h>
#include <arch/alpha/pmap.h>
#include <sys/user.h>
#endif
-#ifndef AFS_LINUX20_ENV
-#include <sys/socket.h>
-#endif
-
#ifndef AFS_LINUX26_ENV
#include <sys/file.h>
#endif
# include <netinet/in.h> /* struct in_addr */
#endif
-#include <arpa/inet.h> /* inet_ntoa() */
-
#if defined(AFS_SGI_ENV) || defined(AFS_OSF_ENV)
#ifdef AFS_SGI_ENV
#include <sys/vnode.h>
#endif
#endif
#endif
-#include <signal.h>
#endif
/* AFS includes */
#ifdef AFS_LINUX20_ENV
/* Find symbols in a live kernel. */
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#ifdef AFS_LINUX26_ENV
#define KSYMS "/proc/kallsyms"
#endif /* AFS_OSF_ENV */
#include <afs/osi_inode.h>
-#include <pwd.h>
#include "fsck.h"
#ifdef AFS_SUN_ENV
#include <ufs/dir.h>
#undef _KERNEL
#undef _BSD
-#include <stdio.h>
#else /* AFS_OSF_ENV */
#ifdef AFS_VFSINCL_ENV
#include <sys/vnode.h>
#undef _BSD
#include <afs/osi_inode.h>
-#include <pwd.h>
#include "fsck.h"
struct prop_entry_desc {
#ifdef AFS_SUN5_ENV
#include <sys/mntent.h>
#include <sys/mnttab.h>
-#include <sys/stat.h>
#include <sys/vfstab.h>
offset_t llseek();
#if defined(AFS_HPUX101_ENV)
#include "libfs.h"
-#include <sys/stat.h>
#include <sys/fcntl.h>
int seek_options;
#define __ASSERT_H__
#ifdef AFS_SGI_XFS_IOPS_ENV
-#include <dirent.h>
#include <afs/xfsattrs.h>
/* xfs_ListViceInodes
*
#include "vnode.h"
#include "volume.h"
#include "viceinode.h"
-#include <dirent.h>
#include <afs/errmap_nt.h>
#define BASEFILEATTRIBUTE FILE_ATTRIBUTE_NORMAL
#endif
#endif
#ifdef AFS_SUN5_ENV
-#include <unistd.h>
#include <sys/mnttab.h>
#include <sys/mntent.h>
#else
#include "ntops.h"
#else
#include "namei_ops.h"
-#include <dirent.h>
#endif /* AFS_NT40_ENV */
#endif /* AFS_NAMEI_ENV */
#include "vnode.h"
#include "partition.h"
#if defined(AFS_HPUX_ENV)
-#include <sys/types.h>
#include <sys/privgrp.h>
#endif /* defined(AFS_HPUX_ENV) */
#endif
#ifdef AFS_NT40_ENV
-#include <string.h>
-#include <sys/stat.h>
/* VValidVPTEntry
*
* validate names in vptab.
#include <rx/xdr.h>
#include <afs/afsint.h>
-#include <errno.h>
#include <afs/afssyscalls.h>
#include "nfs.h"
#include "ihandle.h"
#include <roken.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#endif
-
-#include <rx/xdr.h>
+#include <afs/opr.h>
#include <afs/afsint.h>
#include "nfs.h"
#include <afs/errors.h>
#include <stddef.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#endif
-
-#include <rx/xdr.h>
+#include <afs/opr.h>
#include <afs/afsint.h>
#include "nfs.h"
#include <afs/errors.h>