/* Define if you have the <sys/param.h> header file. */
#undef HAVE_SYS_PARAM_H
+/* Define if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
/* Define if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H
/* ReallyAbort: called from assert. May/85 */
#include <afsconfig.h>
#include <afs/param.h>
-#include <stdlib.h>
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
-#include <string.h>
+#include <roken.h>
-#include <stdio.h>
#include "afsutil.h"
#ifdef AFS_NT40_ENV
#include <afsconfig.h>
#include <afs/param.h>
+#include <roken.h>
-#include <string.h>
#include <ctype.h>
-#include <stddef.h>
-#include <stdarg.h>
/* Just like strncpy but shift-case in transit and forces null termination */
char *
#include <afsconfig.h>
#include <afs/param.h>
+#include <roken.h>
#include <stddef.h>
-#include <stdlib.h>
-#include <string.h>
#include <ctype.h>
#include <limits.h>
-#include <errno.h>
-#include <stdio.h>
+
#include "afs_assert.h"
#include "afsutil.h"
#include "fileutil.h"
+
#ifdef AFS_PTHREAD_ENV
#include <pthread.h>
static pthread_once_t dirInit_once = PTHREAD_ONCE_INIT;
#endif
+
#ifdef AFS_NT40_ENV
-#include <windows.h>
#include <WINNT\afssw.h>
#endif
-#ifdef AFS_DARWIN_ENV
-#include <unistd.h>
-#endif
/* local vars */
/* static storage for path strings */
#include <afsconfig.h>
#include <afs/param.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
-#include <stdlib.h>
+#include <roken.h>
/* helper for afs_exec_alt; just constructs the string for the 'alternate'
* program */
#include <afsconfig.h>
#include <afs/param.h>
+#include <afs/stds.h>
+#include <roken.h>
-#include <afs/stds.h>
#include <stddef.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
#ifdef AFS_NT40_ENV
-#include <windows.h>
-#include <io.h>
#include "errmap_nt.h"
#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#include <sys/types.h>
-#include <dirent.h>
-#include <sys/stat.h>
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
#include "fileutil.h"
#include <afsconfig.h>
#include <afs/param.h>
-
+#include <roken.h>
#if defined(AFS_NAMEI_ENV)
-#include <sys/types.h>
#include "afsutil.h"
/* This version of base64 gets it right and starts converting from the low
#include <afsconfig.h>
#include <afs/param.h>
+#include <roken.h>
+
#if defined(AFS_DARWIN_ENV)
/*
* Reworked from FreeBSD umount
*/
-#include <sys/param.h>
#include <sys/mount.h>
-
-#include <err.h>
-#include <errno.h>
#include <fstab.h>
-#include <stdio.h>
-#include <stdlib.h>
size_t
mntinfo(struct statfs **mntbuffer)
#include <roken.h>
-#include <stdio.h>
-#include <string.h>
#include <ctype.h>
+
#include "afsutil.h"
/*
#include <afsconfig.h>
#include <afs/param.h>
+#include <roken.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include <stdlib.h>
#ifdef AFS_NT40_ENV
-#include <winsock2.h>
#include <direct.h>
#else
-#include <netinet/in.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
-#include <netdb.h>
#include <ctype.h>
#endif
-#include <string.h>
-#include <errno.h>
-#include "afsutil.h"
+#include "afsutil.h"
/* also parse a.b.c.d addresses */
struct hostent *
#include <afsconfig.h>
#include <afs/param.h>
+#include <roken.h>
#ifdef AFS_HPUX_ENV
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/time.h>
#include <utime.h>
/* insque/remque moved to timer.c where they are used. */
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
- #include <afsconfig.h>
+#include <afsconfig.h>
#include <afs/param.h>
#include <windows.h>
#include <afsconfig.h>
#include <afs/param.h>
+#include <afs/stds.h>
+#include <roken.h>
-#include <afs/stds.h>
-#include <sys/types.h>
-#include <stdio.h>
-#include "ktime.h"
-#include <time.h>
#include <ctype.h>
-#include <string.h>
-#include "afsutil.h"
+#include "ktime.h"
+#include "afsutil.h"
/* maximum values for relative dates */
#include <afsconfig.h>
#include <afs/param.h>
+#include <roken.h>
-#include <sys/types.h>
-#include <stdio.h>
-#include <time.h>
#include <ctype.h>
-#ifdef AFS_NT40_ENV
-#include <malloc.h>
-#endif
-#include <string.h>
-#include <stdlib.h>
-#include "afsutil.h"
+#include "afsutil.h"
#include "ktime.h"
/* some date parsing routines */
#include <afsconfig.h>
#include <afs/param.h>
-#include <roken.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <roken.h>
#include <ctype.h>
-#if defined(AFS_NT40_ENV)
-# include <winsock2.h>
-#else
-# if defined(__FreeBSD__)
-# include <sys/types.h>
-# endif
-# include <netinet/in.h>
-# include <sys/errno.h>
-#endif
-#include <errno.h>
#include <rx/rx.h>
+#include <afs/dirpath.h>
#include "afs_assert.h"
#include "afsutil.h"
-#include <afs/dirpath.h>
#define AFS_IPINVALID 0xffffffff /* invalid IP address */
#define AFS_IPINVALIDIGNORE 0xfffffffe /* no input given to extractAddr */
#include <afsconfig.h>
#include <afs/param.h>
+#include <roken.h>
#if defined(AFS_NT40_ENV) && defined(AFS_PTHREAD_ENV)
#define AFS_GRMUTEX_DECLSPEC __declspec(dllexport)
#endif
#ifdef AFS_PTHREAD_ENV
#include <afs/pthread_glock.h>
-#include <string.h>
/*
* Implement a pthread based recursive global lock for use in porting
#include <afsconfig.h>
#include <afs/param.h>
+#include <roken.h>
-#include <errno.h>
#include <afs/errmap_nt.h>
#include <windows.h>
#include <winbase.h>
#include <dirent.h>
-#include <stdlib.h>
-#include <sys/stat.h>
/* opendir() - The case insensitive version of opendir */
DIR *
#include <afs/param.h>
#include <afsconfig.h>
-
-
#include <afs/stds.h>
#include <stddef.h>
#include <afsconfig.h>
#include <afs/param.h>
+#include <afs/stds.h>
-
-#include <stdio.h>
-#ifdef AFS_NT40_ENV
-#include <io.h>
-#include <time.h>
-#else
-#ifdef AFS_AIX_ENV
-#include <time.h>
-#endif
-#include <sys/param.h>
-#include <sys/time.h>
-#include <syslog.h>
-#endif
#include <afs/procmgmt.h> /* signal(), kill(), wait(), etc. */
#include <roken.h> /* Must come after procmgmt.h */
-#include <fcntl.h>
-#include <afs/stds.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/stat.h>
#include "afsutil.h"
#include "fileutil.h"
#include <lwp.h>
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
+
#if defined(AFS_PTHREAD_ENV)
#include <afs/afs_assert.h>
/* can't include rx when we are libutil; it's too early */
#include <afsconfig.h>
#include <afs/param.h>
-
-#include <sys/types.h>
-#include <stdlib.h>
-#include <stdarg.h>
-#include <stdio.h>
+#include <roken.h>
#include <ctype.h>
-#include <string.h>
-#ifdef HAVE_STDINT_H
-#include <stdint.h>
-#endif
-#ifndef AFS_NT40_ENV
-#include <netinet/in.h>
-#include <netdb.h>
-#ifndef HAVE_VSYSLOG
-#include <syslog.h>
-#endif
-#else
-#include <winsock2.h>
-#endif
-#if defined(AFS_AIX32_ENV) || defined(AFS_SUN_ENV) || defined(AFS_XBSD_ENV) || defined(AFS_HPUX_ENV) || defined(AFS_SGI65_ENV)
-#include <sys/socket.h>
-#endif
/* This is an enhanced version of the *printf functionality shipped
* with Heimdal. In addition to the standard Unix formatting types
#include <afsconfig.h>
#include <afs/param.h>
+#include <afs/procmgmt.h> /* Must be before roken.h */
+
+#include <roken.h>
-#include <afs/param.h>
#include <assert.h>
-#include <stdlib.h>
-#include <stdio.h>
-#ifndef AFS_NT40_ENV
-#include <signal.h>
-#include <unistd.h>
-#else
-#include <afs/procmgmt.h>
-#endif
#include <pthread.h>
#include "pthread_nosigs.h"
#include <afsconfig.h>
#include <afs/param.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <time.h>
+
+#include <roken.h>
+
#include <afs/afsutil.h>
#include <afs/tabular_output.h>
-#include <errno.h>
/* private structures */
#include <afsconfig.h>
#include <afs/param.h>
+#include <roken.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <sys/stat.h>
-#include <dirent.h>
#include <afs/afs_assert.h>
-#include <string.h>
-#include <sys/file.h>
-#include <sys/param.h>
#include <lock.h>
-#if defined(AFS_SUN5_ENV) || defined(AFS_HPUX_ENV)
-#include <unistd.h>
-#endif
#include <afs/afsutil.h>
#include <lwp.h>
#include <afs/afsint.h>
*/
#include <afsconfig.h>
-#ifdef KERNEL
-#include "afs/param.h"
-#else
#include <afs/param.h>
-#include <roken.h>
-#endif
+#ifndef KERNEL
+# include <roken.h>
+
+# 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 <netinet/if_ether.h>
+# endif
+# endif
-#ifdef KERNEL
-#include "afs/sysincludes.h"
-#include "afsincludes.h"
-#else /* KERNEL */
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#ifdef AFS_NT40_ENV
-#include <rpc.h>
-#include <winsock2.h>
-#include <process.h>
-#else
-#include <sys/file.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#include <sys/ioctl.h>
-#include <sys/socket.h>
-#ifndef ITIMER_REAL
-#include <sys/time.h>
-#endif /* ITIMER_REAL */
-#include <net/if.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#include <stdlib.h>
-#endif
-#include <sys/stat.h>
-#include <fcntl.h>
-#if !defined(AFS_NT40_ENV) && !defined(AFS_LINUX20_ENV) && !defined(AFS_ARM_DARWIN_ENV)
-#include <netinet/if_ether.h>
-#endif
#include "afsutil.h"
-#endif /* KERNEL */
+#else
+# include "afs/sysincludes.h"
+# include "afsincludes.h"
+#endif
typedef struct {
char eaddr[6]; /* 6 bytes of ethernet hardware address */
#include <afsconfig.h>
#include <afs/param.h>
-#include <string.h>
-#include <errno.h>
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
#include <roken.h>
#include "afsutil.h"
#include <afsconfig.h>
#include <afs/param.h>
+#include <roken.h>
+#include <sys/file.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <sys/stat.h>
-#include <dirent.h>
#include <afs/afs_assert.h>
-#include <string.h>
-#include <sys/file.h>
-#include <sys/param.h>
#include <lock.h>
#define __AFS_WORK_QUEUE_IMPL 1