summaryrefslogtreecommitdiffstats
path: root/sys/sys/_types.h
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-04-01 08:12:25 +0000
committermike <mike@FreeBSD.org>2002-04-01 08:12:25 +0000
commitbeecc37c73ebf8cf27e26fe5fc3a80fd02535ac4 (patch)
treeeff013810ee5bdc57f51e401f7ec54272cb4fafe /sys/sys/_types.h
parentf4cfa354ba07ca7cd849efb0cff903ac831f247a (diff)
downloadFreeBSD-src-beecc37c73ebf8cf27e26fe5fc3a80fd02535ac4.zip
FreeBSD-src-beecc37c73ebf8cf27e26fe5fc3a80fd02535ac4.tar.gz
o Implement <sys/_types.h>, a new header for storing types that are
MI, not required to be a fixed size, and used in multiple headers. This will grow in time, as more things move here from <sys/types.h> and <machine/ansi.h>. o Add missing type definitions (uint16_t and uint32_t) to <arpa/inet.h> and <netinet/in.h>. o Reduce pollution in <sys/types.h> by using `#if _FOO_T_DECLARED' widgets to avoid including <sys/stdint.h>. o Add some missing type definitions to <unistd.h> and note the ones that still need to be added. o Make use of <sys/_types.h> primitives in <grp.h> and <sys/types.h>. Reviewed by: bde
Diffstat (limited to 'sys/sys/_types.h')
-rw-r--r--sys/sys/_types.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/sys/sys/_types.h b/sys/sys/_types.h
new file mode 100644
index 0000000..676430a
--- /dev/null
+++ b/sys/sys/_types.h
@@ -0,0 +1,38 @@
+/*-
+ * Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * $FreeBSD$
+ */
+
+#ifndef _SYS__TYPES_H_
+#define _SYS__TYPES_H_
+
+#include <sys/cdefs.h>
+#include <machine/ansi.h>
+
+#define _BSD_GID_T_ __uint32_t
+#define _BSD_UID_T_ __uint32_t
+
+#endif /* !_SYS__TYPES_H_ */
OpenPOWER on IntegriCloud