]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Add system headers
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Sat, 11 Jul 2009 17:54:15 +0000 (18:54 +0100)
committerJeffrey Altman <jaltman@openafs.org>
Sun, 12 Jul 2009 23:49:32 +0000 (17:49 -0600)
There are a number of places in the tree which are missing system
headers such as <unistd.h> <ctype.h> and <dirent.h>. Add these.

Reviewed-on: http://gerrit.openafs.org/62
Verified-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
20 files changed:
src/afs/UKERNEL/afs_usrops.c
src/auth/cellconfig.c
src/auth/ktc.c
src/gtx/input.c
src/libadmin/pts/afs_ptsAdmin.c
src/libadmin/test/vos.c
src/rx/rx_pthread.c
src/rx/rx_user.c
src/rxkad/rxkad_client.c
src/rxkad/ticket.c
src/util/hostparse.c
src/viced/callback.c
src/vol/clone.c
src/vol/daemon_com.c
src/vol/fssync-server.c
src/vol/nuke.c
src/vol/partition.c
src/vol/purge.c
src/volser/vol_split.c
src/volser/volmain.c

index 3c7bfdcff70de21ef57233d2b868666ec472c2b1..94f7c89846012072b8227788bbf0bdb6b2891fbd 100644 (file)
 
 #include "afs/sysincludes.h"   /* Standard vendor system headers */
 #include <net/if.h>
+#include <ctype.h>
+#include <unistd.h>
+#include <sys/types.h>
+#include <dirent.h>
+
 #include "afsincludes.h"       /* Afs-based standard headers */
 #include "afs_usrops.h"
 #include "afs/afs_stats.h"
index 9f6bef6c11ca065b4cd4b3418ebeddc35a189dae..72fa3d0f0ef330d1e665f4fc44cdc2eb6452f475 100644 (file)
@@ -19,6 +19,7 @@
 #include "des/des.h"
 #include "rx/rxkad.h"
 #include <netdb.h>
+#include <ctype.h>
 #else /* UKERNEL */
 #include <sys/types.h>
 #ifdef AFS_NT40_ENV
@@ -32,6 +33,7 @@
 #include <netdb.h>
 #include <sys/file.h>
 #include <sys/time.h>
+#include <ctype.h>
 #ifdef AFS_AFSDB_ENV
 #include <arpa/nameser.h>
 #ifdef HAVE_ARPA_NAMESER_COMPAT_H
index 01ec233785c65231f6a94c503a720fed69e172f1..6d267509337a5cac89cf8ac9f86714d861541ead 100644 (file)
@@ -27,6 +27,7 @@
 #include "afs/venus.h"
 #include "afs/pthread_glock.h"
 #include "afs/dirpath.h"
+#include <ctype.h>
 
 #if !defined(min)
 #define min(a,b) ((a)<(b)?(a):(b))
index 74114400deb87a603013e2a39c38fc4a287ca697..b905073ba0780ec4e5d5edc7fcdac8aaa1b7b010 100644 (file)
@@ -10,6 +10,7 @@
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <stdlib.h>
 
 #ifdef AFS_HPUX_ENV
 #include <sys/types.h>
index c33b293f83ffa6bcff9ea36706b391ddc62cdabc..e671f95d32a3efee808b983e7f6d7bb0c7d8e155 100644 (file)
@@ -12,6 +12,7 @@
 
 
 #include <stdio.h>
+#include <ctype.h>
 #include <afs/stds.h>
 #include <rx/rx.h>
 #include <rx/rxstat.h>
index ea09921a65744e591712b09405d9cf41af2c4c57..0d5aa46033786979767d1e515f1c61576d2309fe 100644 (file)
@@ -18,6 +18,7 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <afs/afsutil.h>
+#include <unistd.h>
 #endif
 
 
index d0cd33185a5dbaea09e0dffa51244119ef705fd9..40507fbf640aa977a8650d2fa7ae9877493ca244 100644 (file)
@@ -31,6 +31,7 @@
 # include <net/if.h>
 # include <sys/ioctl.h>
 # include <sys/time.h>
+# include <unistd.h>
 #endif
 #include <sys/stat.h>
 #include <rx/rx.h>
index 78c992bfaf3a74f8a2b672c2427c078bea1f0ce9..8049bb679cb818333426659366e1b7900a780227 100644 (file)
@@ -28,6 +28,7 @@
 # include <sys/time.h>
 # include <net/if.h>
 # include <sys/ioctl.h>
+# include <unistd.h>
 #endif
 # include <fcntl.h>
 #if !defined(AFS_AIX_ENV) && !defined(AFS_NT40_ENV) 
index 26ef6df3cb2f5e32758c55f3adbaf9b8ba7ec38d..150efd7fb6c2f40e4e50798fd0ebf4c068b7a21f 100644 (file)
@@ -50,6 +50,7 @@
 #include <winsock2.h>
 #else
 #include <netinet/in.h>
+#include <unistd.h>
 #endif
 #include <rx/rx.h>
 #include <rx/xdr.h>
index 4e0864bc988840b736d5f53e1651807e6868e319..7b6392910c5f2eabca91f1886b8568d58b8fbc25 100644 (file)
@@ -226,7 +226,7 @@ tkt_MakeTicket(char *ticket, int *ticketLen, struct ktc_encryptionKey *key,
        return -1;
 
     /* encrypt ticket */
-    if (code = key_sched(key, schedule.schedule)) {
+    if ((code = key_sched(key, schedule.schedule))) {
        printf("In tkt_MakeTicket: key_sched returned %d\n", code);
        return RXKADBADKEY;
     }
index b68d714a5df0fa6286d2141394d73de4adfeacb9..86361f693f59719fd86832f0ec0da2a6498f635a 100644 (file)
@@ -19,6 +19,7 @@
 #include "afs/sysincludes.h"
 #include "afs/afsutil.h"
 #include <netdb.h>
+#include <ctype.h>
 #else /* UKERNEL */
 #include <stdio.h>
 #include <sys/types.h>
index 984a6cfc4287549f263278d7980ebcfdec686a05..7860e4904101761775eb0bf73241d876312e9153 100644 (file)
@@ -95,6 +95,7 @@
 #else
 #include <sys/time.h>
 #include <sys/file.h>
+#include <unistd.h>
 #endif
 #include <afs/assert.h>
 
index b848a77530ec02944c88d5502a4685771f9cbbd7..ea32812d454180afaf225ca9caf4b05488256e59 100644 (file)
@@ -35,6 +35,7 @@
 #else
 #include <sys/file.h>
 #include <sys/time.h>
+#include <unistd.h>
 #endif
 #include <string.h>
 #include <errno.h>
index 28bcf520ce22e0f714074f456638ffcb11013b85..5c3d801decb2110c9ae594c28ce66d917d30a715 100644 (file)
@@ -33,6 +33,7 @@
 #include <netinet/in.h>
 #include <netdb.h>
 #include <sys/time.h>
+#include <unistd.h>
 #endif
 #include <errno.h>
 #include <assert.h>
index ef604201aea6199386ffbe0a0fc7e5014566d3fd..d59605622d6a9f42a417e82b0c004819558028d2 100644 (file)
@@ -55,6 +55,7 @@
 #include <netinet/in.h>
 #include <netdb.h>
 #include <sys/time.h>
+#include <unistd.h>
 #endif
 #include <errno.h>
 #ifdef AFS_PTHREAD_ENV
index fb6df1b864e0586503fe9f2695e16522c2be03fc..f1de4d1eea36344bd086488919fcab86aaee3cc4 100644 (file)
 #else
 #include <strings.h>
 #endif
+#ifndef AFS_NT40_ENV
+#include <unistd.h>
+#endif
+
 #include <afs/afsutil.h>
     
 #include <afs/assert.h>
index 7a108742084e70c1939894446e3ac05631b7338e..8542410a1b93389e61e562d936c7bcfc76919ecb 100644 (file)
@@ -31,6 +31,7 @@
 #else
 #include <sys/param.h>
 #include <sys/types.h>
+#include <unistd.h>
 
 #if AFS_HAVE_STATVFS || AFS_HAVE_STATVFS64
 #include <sys/statvfs.h>
index 15b871b72de33ac64f661f9566726fdd79f96ad8..3248e463c48a682011071a0dad2d1bf6cb0d679b 100644 (file)
@@ -25,6 +25,7 @@
 #include <sys/param.h>
 #include <sys/file.h>
 #include <sys/time.h>
+#include <unistd.h>
 #endif
 #include <string.h>
 #include <sys/stat.h>
index f541041fe6c4f35c3090e66b768d5d13beaec38f..8af67eafcd1869a238b5336227617fa51d49252a 100644 (file)
@@ -25,6 +25,7 @@
 #else
 #include <sys/file.h>
 #include <sys/time.h>
+#include <unistd.h>
 #endif
 #ifdef HAVE_STRING_H
 #include <string.h>
index 8f40a6df594cf7cfbb77e89abd96b8be84820e46..b78085ed96bc2af10f52c9f793341c875a946e51 100644 (file)
@@ -22,6 +22,7 @@
 #include <sys/time.h>
 #include <sys/file.h>
 #include <netinet/in.h>
+#include <unistd.h>
 #endif
 #include <rx/xdr.h>
 #include <afs/afsint.h>