Additional UKERNEL headers, prototyping and other fixes
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Tue, 28 Jul 2009 11:55:36 +0000 (12:55 +0100)
committerDerrick Brashear <shadow@dementia.org>
Tue, 28 Jul 2009 13:08:25 +0000 (06:08 -0700)
Add additonal headers to include prototypes for UKERNEL builds
Add some more prototypes
Remove some unused variables

Reviewed-on: http://gerrit.openafs.org/241
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Marc Dionne <marc.c.dionne@gmail.com>

src/kauth/token.c
src/kauth/user.c
src/ptserver/ptclient.c
src/ptserver/ptuser.c
src/rx/UKERNEL/rx_knet.c
src/rx/rx_kernel.h
src/rx/rx_packet.c
src/rx/rx_prototypes.h

index c5635a2..07e7978 100644 (file)
@@ -31,6 +31,7 @@
 #include "afs/kautils.h"
 #include "afs/auth.h"
 #include "afs/pthread_glock.h"
+#include "afs/afsutil.h"
 #else /* defined(UKERNEL) */
 #include <afs/stds.h>
 #include <sys/types.h>
index ec82f62..0f0a274 100644 (file)
@@ -34,6 +34,8 @@
 #include "afs/kauth.h"
 #include "afs/kautils.h"
 #include "afs/afsutil.h"
+#include "afs/ptuser.h"
+#include "des.h"
 #else /* defined(UKERNEL) */
 #include <afs/stds.h>
 #include <signal.h>
index f4d1ab5..4ae639a 100644 (file)
@@ -31,6 +31,7 @@
 #include <afs/cellconfig.h>
 #include "ptclient.h"
 #include "pterror.h"
+#include "display.h"
 #include <afs/afsutil.h>
 
 
index 67436f2..a90fe84 100644 (file)
@@ -28,6 +28,7 @@
 #include "afs/ptclient.h"
 #include "afs/ptuser.h"
 #include "afs/pterror.h"
+#include "afs/com_err.h"
 #else /* defined(UKERNEL) */
 #include <afs/stds.h>
 #include <ctype.h>
@@ -69,7 +70,9 @@ pr_Initialize(IN afs_int32 secLevel, IN const char *confDir, IN char *cell)
     afs_int32 scIndex;
     static struct afsconf_cell info;
     afs_int32 i;
+#if !defined(UKERNEL)
     char cellstr[64];
+#endif
     afs_int32 gottdir = 0;
     afs_int32 refresh = 0;
 
index 00d800f..6692b54 100644 (file)
@@ -24,6 +24,7 @@ struct usr_ifnet *usr_ifnet = NULL;
 struct usr_in_ifaddr *usr_in_ifaddr = NULL;
 
 void rxk_InitializeSocket(void);
+extern int afs_osi_CheckTimedWaits(void);
 
 void
 afs_rxevent_daemon(void)
@@ -200,7 +201,8 @@ rxk_InitializeSocket(void)
 #ifdef AFS_USR_AIX_ENV
     unsigned long len, optval, optval0, optlen;
 #else /* AFS_USR_AIX_ENV */
-    int len, optval, optval0, optlen;
+    socklen_t len, optlen;
+    int optval, optval0;
 #endif /* AFS_USR_AIX_ENV */
     struct usr_socket *usockp;
     struct sockaddr_in lcladdr;
index 2d997ad..e3d5912 100644 (file)
@@ -18,7 +18,7 @@
 #define rxi_ReScheduleEvents    0      /* Not needed by kernel */
 
 /* This is a no-op, because the kernel server procs are pre-allocated */
-#define rxi_StartServerProcs(x) 0
+#define rxi_StartServerProcs(x) (void)0
 
 /* Socket stuff */
 typedef struct socket *osi_socket;
index 402f78a..9f16c5f 100644 (file)
@@ -104,12 +104,13 @@ static void rxi_SendDebugPacket(struct rx_packet *apacket, osi_socket asocket,
                                afs_int32 ahost, short aport,
                                afs_int32 istack);
 
-static int rxi_FreeDataBufsToQueue(struct rx_packet *p, 
-                                  afs_uint32 first, 
-                                  struct rx_queue * q);
 #ifdef RX_ENABLE_TSFPQ
 static int
 rxi_FreeDataBufsTSFPQ(struct rx_packet *p, afs_uint32 first, int flush_global);
+#else
+static int rxi_FreeDataBufsToQueue(struct rx_packet *p,
+                                  afs_uint32 first,
+                                  struct rx_queue * q);
 #endif
 
 /* some rules about packets:
index b7415ac..94009be 100755 (executable)
@@ -280,6 +280,9 @@ extern int clock_UnInit(void);
 #if !defined(clock_UpdateTime)
 extern void clock_UpdateTime(void);
 #endif
+#if defined(UKERNEL) && !defined(osi_GetTime)
+extern int osi_GetTime(struct timeval *tv);
+#endif
 
 /* rx_clock_nt.c */
 
@@ -438,6 +441,11 @@ extern struct afs_ifinfo afsifinfo[ADDRSPERSITE];
 #endif
 extern void osi_StopListener(void);
 extern int rxi_FindIfMTU(afs_uint32 addr);
+#if defined(UKERNEL)
+extern void rxi_ListenerProc(osi_socket usockp, int *tnop,
+                            struct rx_call **newcallp);
+#endif
+
 #ifndef RXK_LISTENER_ENV
 extern void rxk_init();
 #endif
@@ -570,7 +578,6 @@ extern int rxi_Listen(osi_socket sock);
 extern int rxi_Recvmsg(osi_socket socket, struct msghdr *msg_p, int flags);
 extern int rxi_Sendmsg(osi_socket socket, struct msghdr *msg_p, int flags);
 
-
 /* rx_rdwr.c */
 extern int rxi_ReadProc(struct rx_call *call, char *buf,
                        int nbytes);