date and time created 90/05/15 19:17:03 by bostic
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 16 May 1990 10:17:03 +0000 (02:17 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 16 May 1990 10:17:03 +0000 (02:17 -0800)
SCCS-vsn: include/stddef.h 5.1

usr/src/include/stddef.h [new file with mode: 0644]

diff --git a/usr/src/include/stddef.h b/usr/src/include/stddef.h
new file mode 100644 (file)
index 0000000..1e6b314
--- /dev/null
@@ -0,0 +1,32 @@
+/*-
+ * Copyright (c) 1990 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * %sccs.include.redist.c%
+ *
+ *     @(#)stddef.h    5.1 (Berkeley) %G%
+ */
+
+#ifndef _STDDEF_H_
+#define _STDDEF_H_
+#include <machine/x3j11.h>
+
+typedef        _PTRDIFF_T_     ptrdiff_t;
+
+#ifdef _SIZE_T_
+typedef        _SIZE_T_        size_t;
+#undef _SIZE_T_
+#endif
+
+#ifdef _WCHAR_T_
+typedef        _WCHAR_T_       wchar_t;
+#undef _WCHAR_T_
+#endif
+
+#ifndef        NULL
+#define        NULL    0
+#endif
+
+#define        offsetof(type, member)  ((size_t)(&((type *)0)->member))
+
+#endif /* _STDDEF_H_ */