Remove headers which are provided by libroken, and reorder header
includes so that they're a bit a more legible.
Change-Id: I4952f8d115d38a3bd1dfe86478cd4a30f533e86f
Reviewed-on: http://gerrit.openafs.org/4386
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
12 files changed:
sys/pag.h \
sys/param.h \
sys/resource.h \
+ sys/select.h \
sys/statfs.h \
sys/statvfs.h \
sys/socket.h \
#include <afsconfig.h>
#include <afs/param.h>
+#include <roken.h>
-#include <stdio.h>
-#include <sys/types.h>
-#ifdef AFS_NT40_ENV
-#include <sys/timeb.h>
-#include <winsock2.h>
-#else
-#include <sys/time.h>
-#include <sys/file.h>
-#endif
#include <afs/afsutil.h>
int ft_debug;
#include <afsconfig.h>
#include <afs/param.h>
+#include <roken.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#include <malloc.h>
extern void lwp_abort(void);
-#else
-#include <unistd.h> /* select() prototype */
-#include <sys/types.h> /* fd_set on older platforms */
-#include <sys/time.h> /* struct timeval, select() prototype */
-#ifndef FD_SET
-# include <sys/select.h> /* fd_set on newer platforms */
-#endif
-#include <sys/file.h>
#endif /* AFS_NT40_ENV */
+
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif
+
#include "lwp.h"
#include "timer.h"
-#include <signal.h>
-#include <errno.h>
-#ifdef AFS_SUN5_ENV
-#include <fcntl.h>
-#endif
typedef unsigned char bool;
#define FALSE 0
#include <afsconfig.h>
#include <afs/param.h>
+#include <roken.h>
+
#ifdef AFS_PTHREAD_ENV
#include <afs/afs_assert.h>
/* can't include this in lwp, rx hasn't built yet */
-#include <roken.h>
#include <rx/rx.h>
#else
#include <assert.h>
#include "lwp.h"
#include "lock.h"
-#include <stdio.h>
#define FALSE 0
#define TRUE 1
#include <afsconfig.h>
#include <afs/param.h>
-
-#include <stdlib.h>
-#include <stdio.h>
-#ifdef HAVE_STDINT_H
-#include <stdint.h>
-#endif
-#include <time.h>
+#include <roken.h>
/* allocate externs here */
#define LWP_KERNEL
#include "lwp.h"
+
#ifdef AFS_AIX32_ENV
#include <ulimit.h>
#include <sys/errno.h>
#pragma alloca
int setlim(int limcon, uchar_t hard, int limit);
#endif
-#ifdef AFS_SGI64_ENV
-extern char *getenv();
-#include <time.h>
-#endif
-#include <string.h>
#ifndef AFS_ARM_LINUX20_ENV
#if defined(AFS_OSF_ENV) || defined(AFS_S390_LINUX20_ENV)
#include <afsconfig.h>
#include <afs/param.h>
+#include <roken.h>
#ifdef AFS_NT40_ENV
-#include <stdio.h>
-#include <stdlib.h>
#include <afs/afsutil.h>
#include "lwp.h"
#include <afsconfig.h>
#include <afs/param.h>
+#include <roken.h>
#include "lwp.h"
}
#else
-#include <sys/time.h>
-#include <signal.h>
#ifdef HAVE_UCONTEXT_H
#include <ucontext.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
-#include <stdio.h>
-#include <assert.h>
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <roken.h>
+#include <assert.h>
#include "lwp.h"
#include <afsconfig.h>
#include <afs/param.h>
-
-#ifdef AFS_NT40_ENV
-#include <malloc.h>
-#include <stdlib.h>
-#else
-#include <sys/time.h>
-#endif
-#include <stdio.h>
-#include <stdlib.h>
+#include <roken.h>
#include "lwp.h"
#include "lock.h"
#include <afsconfig.h>
#include <afs/param.h>
-
-#include <string.h>
+#include <roken.h>
#if defined(AFS_PTHREAD_ENV)
#include <pthread.h>
#include <afsconfig.h>
#include <afs/param.h>
-
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/time.h>
-#endif
-#include <stdlib.h>
+#include <roken.h>
#define _TIMER_IMPL_
#include "timer.h"
#include <afsconfig.h>
#include <afs/param.h>
+#include <roken.h>
-#include <stdio.h>
#ifdef HAVE_STDIO_EXT_H
#include <stdio_ext.h>
#endif
-#include <sys/types.h>
+
#ifdef AFS_NT40_ENV
-#include <time.h>
#include <conio.h>
-#include <assert.h>
-#else
-#include <sys/time.h>
-#include <unistd.h>
#endif
-#include <string.h>
+
#include "lwp.h"
#define LWP_KEYSTROKE_DELAY 250 /* 250ms. Must be < 1000 */