protect all user-level include files against reinclusion
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 4 Apr 1991 07:48:31 +0000 (23:48 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 4 Apr 1991 07:48:31 +0000 (23:48 -0800)
SCCS-vsn: include/ttyent.h 5.7
SCCS-vsn: include/tzfile.h 5.10
SCCS-vsn: include/unistd.h 5.10
SCCS-vsn: include/utime.h 5.4
SCCS-vsn: include/utmp.h 5.11
SCCS-vsn: sys/hp300/include/varargs.h 5.3
SCCS-vsn: include/vis.h 5.9

usr/src/include/ttyent.h
usr/src/include/tzfile.h
usr/src/include/unistd.h
usr/src/include/utime.h
usr/src/include/utmp.h
usr/src/include/vis.h
usr/src/sys/hp300/include/varargs.h

index 6f77c3e..66e86dd 100644 (file)
@@ -4,9 +4,12 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)ttyent.h    5.6 (Berkeley) %G%
+ *     @(#)ttyent.h    5.7 (Berkeley) %G%
  */
 
  */
 
+#ifndef        _TTYENT_H_
+#define        _TTYENT_H_
+
 #define        _PATH_TTYS      "/etc/ttys"
 
 #define        _TTYS_OFF       "off"
 #define        _PATH_TTYS      "/etc/ttys"
 
 #define        _TTYS_OFF       "off"
@@ -33,3 +36,5 @@ struct ttyent *getttynam __P((const char *));
 int setttyent __P((void));
 int endttyent __P((void));
 __END_DECLS
 int setttyent __P((void));
 int endttyent __P((void));
 __END_DECLS
+
+#endif /* !_TTYENT_H_ */
index a1c8ce3..f6c72f4 100644 (file)
@@ -7,13 +7,15 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)tzfile.h    5.9 (Berkeley) %G%
+ *     @(#)tzfile.h    5.10 (Berkeley) %G%
  */
 
  */
 
-/*
-** Information about time zone files.
-*/
+#ifndef _TZFILE_H_
+#define        _TZFILE_H_
 
 
+/*
+ * Information about time zone files.
+ */
                        /* Time zone object file directory */
 #define TZDIR          "/usr/share/zoneinfo"
 #define TZDEFAULT      "/etc/localtime"
                        /* Time zone object file directory */
 #define TZDIR          "/usr/share/zoneinfo"
 #define TZDEFAULT      "/etc/localtime"
@@ -119,3 +121,5 @@ struct tzhead {
 */
 
 #define isleap(y) (((y) % 4) == 0 && ((y) % 100) != 0 || ((y) % 400) == 0)
 */
 
 #define isleap(y) (((y) % 4) == 0 && ((y) % 100) != 0 || ((y) % 400) == 0)
+
+#endif /* !_TZFILE_H_ */
index 50be418..13615f9 100644 (file)
@@ -4,9 +4,12 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)unistd.h    5.9 (Berkeley) %G%
+ *     @(#)unistd.h    5.10 (Berkeley) %G%
  */
 
  */
 
+#ifndef _UNISTD_H_
+#define        _UNISTD_H_
+
 #include <sys/cdefs.h>
 #include <sys/types.h>
 #include <sys/unistd.h>
 #include <sys/cdefs.h>
 #include <sys/types.h>
 #include <sys/unistd.h>
@@ -152,3 +155,5 @@ int  vfork __P((void));
 
 #endif /* !_POSIX_SOURCE */
 __END_DECLS
 
 #endif /* !_POSIX_SOURCE */
 __END_DECLS
+
+#endif /* !_UNISTD_H_ */
index 15ab8e2..f90ad5c 100644 (file)
@@ -4,9 +4,12 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)utime.h     5.3 (Berkeley) %G%
+ *     @(#)utime.h     5.4 (Berkeley) %G%
  */
 
  */
 
+#ifndef        _UTIME_H_
+#define        _UTIME_H_
+
 struct utimbuf {
        time_t actime;          /* Access time */
        time_t modtime;         /* Modification time */
 struct utimbuf {
        time_t actime;          /* Access time */
        time_t modtime;         /* Modification time */
@@ -17,3 +20,5 @@ struct utimbuf {
 __BEGIN_DECLS
 int utime __P((const char *, const struct utimbuf *));
 __END_DECLS
 __BEGIN_DECLS
 int utime __P((const char *, const struct utimbuf *));
 __END_DECLS
+
+#endif /* !_UTIME_H_ */
index 131edd6..0d54f84 100644 (file)
@@ -4,9 +4,12 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)utmp.h      5.10 (Berkeley) %G%
+ *     @(#)utmp.h      5.11 (Berkeley) %G%
  */
 
  */
 
+#ifndef        _UTMP_H_
+#define        _UTMP_H_
+
 #define        _PATH_UTMP      "/var/run/utmp"
 #define        _PATH_WTMP      "/var/log/wtmp"
 #define        _PATH_LASTLOG   "/var/log/lastlog"
 #define        _PATH_UTMP      "/var/run/utmp"
 #define        _PATH_WTMP      "/var/log/wtmp"
 #define        _PATH_LASTLOG   "/var/log/lastlog"
@@ -27,3 +30,5 @@ struct utmp {
        char    ut_host[UT_HOSTSIZE];
        long    ut_time;
 };
        char    ut_host[UT_HOSTSIZE];
        long    ut_time;
 };
+
+#endif /* !_UTMP_H_ */
index 091f8e5..083d0d4 100644 (file)
@@ -4,9 +4,12 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)vis.h       5.8 (Berkeley) %G%
+ *     @(#)vis.h       5.9 (Berkeley) %G%
  */
 
  */
 
+#ifndef _VIS_H_
+#define        _VIS_H_
+
 /*
  * to select alternate encoding format
  */
 /*
  * to select alternate encoding format
  */
@@ -51,3 +54,5 @@ int   strvisx __P((char *, const char *, size_t, int));
 int    strunvis __P((char *, const char *));
 int    unvis __P((char *, char, int *, int));
 __END_DECLS
 int    strunvis __P((char *, const char *));
 int    unvis __P((char *, char, int *, int));
 __END_DECLS
+
+#endif /* !_VIS_H_ */
index c8795c0..012b89b 100644 (file)
@@ -4,9 +4,12 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)varargs.h   5.2 (Berkeley) %G%
+ *     @(#)varargs.h   5.3 (Berkeley) %G%
  */
 
  */
 
+#ifndef _VARARGS_H_
+#define        _VARARGS_H_
+
 #include <stdarg.h>
 
 #undef va_dcl
 #include <stdarg.h>
 
 #undef va_dcl
@@ -15,3 +18,5 @@
 #undef va_start
 #define        va_start(ap) \
        ap = (char *)&va_alist
 #undef va_start
 #define        va_start(ap) \
        ap = (char *)&va_alist
+
+#endif /* !_VARARGS_H_ */