date and time created 81/03/21 16:09:48 by wnj
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Sun, 22 Mar 1981 08:09:48 +0000 (00:09 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Sun, 22 Mar 1981 08:09:48 +0000 (00:09 -0800)
SCCS-vsn: sys/sys/types.h 4.1

usr/src/sys/sys/types.h [new file with mode: 0644]

diff --git a/usr/src/sys/sys/types.h b/usr/src/sys/sys/types.h
new file mode 100644 (file)
index 0000000..61a3627
--- /dev/null
@@ -0,0 +1,32 @@
+/*     types.h 4.1     81/03/21        */
+
+/*
+ * Basic system types and major/minor device constructing/busting macros.
+ */
+
+/* major part of a device */
+#define        major(x)        ((int)(((unsigned)(x)>>8)&0377))
+
+/* minor part of a device */
+#define        minor(x)        ((int)((x)&0377))
+
+/* make a device number */
+#define        makedev(x,y)    ((dev_t)(((x)<<8) | (y)))
+
+typedef        unsigned char   u_char;
+typedef        unsigned short  u_short;
+typedef        unsigned int    u_int;
+typedef        unsigned long   u_long;
+
+/* SHOULD USE long RATHER THAN int HERE BUT IT WOULD GIVE LINT ON THE KERNEL */
+/* GASTRIC DISTRESS AND DON'T HAVE TIME TO FIX THAT JUST NOW */
+typedef        struct  _physadr { int r[1]; } *physadr;
+typedef        int     daddr_t;
+typedef        char *  caddr_t;
+typedef        u_short ino_t;
+typedef        int     swblk_t;
+typedef        int     size_t;
+typedef        int     time_t;
+typedef        int     label_t[14];
+typedef        short   dev_t;
+typedef        int     off_t;