/include/sys/ansi.h

http://www.minix3.org/ · C++ Header · 69 lines · 27 code · 9 blank · 33 comment · 0 complexity · fb5ed8a3e84a193c61e4025d2f006a56 MD5 · raw file

  1. /* $NetBSD: ansi.h,v 1.13 2010/03/27 22:14:10 tnozaki Exp $ */
  2. /*-
  3. * Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
  4. * All rights reserved.
  5. *
  6. * This code is derived from software contributed to The NetBSD Foundation
  7. * by Jun-ichiro itojun Hagino and by Klaus Klein.
  8. *
  9. * Redistribution and use in source and binary forms, with or without
  10. * modification, are permitted provided that the following conditions
  11. * are met:
  12. * 1. Redistributions of source code must retain the above copyright
  13. * notice, this list of conditions and the following disclaimer.
  14. * 2. Redistributions in binary form must reproduce the above copyright
  15. * notice, this list of conditions and the following disclaimer in the
  16. * documentation and/or other materials provided with the distribution.
  17. *
  18. * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  19. * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  20. * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  21. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  22. * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  23. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  24. * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  25. * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  26. * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  27. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  28. * POSSIBILITY OF SUCH DAMAGE.
  29. */
  30. #ifndef _SYS_ANSI_H_
  31. #define _SYS_ANSI_H_
  32. #include <machine/ansi.h>
  33. typedef char * __caddr_t; /* core address */
  34. typedef __uint32_t __gid_t; /* group id */
  35. typedef __uint32_t __in_addr_t; /* IP(v4) address */
  36. typedef __uint16_t __in_port_t; /* "Internet" port number */
  37. typedef unsigned short __mode_t; /* file permissions */
  38. typedef long __off_t; /* file offset */
  39. typedef int __pid_t; /* process id */
  40. typedef __uint8_t __sa_family_t; /* socket address family */
  41. typedef __int32_t __socklen_t; /* socket-related datum length */
  42. typedef __uint32_t __uid_t; /* user id */
  43. typedef unsigned long __fsblkcnt_t; /* fs block count (statvfs) */
  44. typedef unsigned long __fsfilcnt_t; /* fs file count */
  45. struct __tag_wctrans_t;
  46. typedef struct __tag_wctrans_t *__wctrans_t;
  47. struct __tag_wctype_t;
  48. typedef struct __tag_wctype_t *__wctype_t;
  49. /*
  50. * mbstate_t is an opaque object to keep conversion state, during multibyte
  51. * stream conversions. The content must not be referenced by user programs.
  52. */
  53. typedef union {
  54. __int64_t __mbstateL; /* for alignment */
  55. char __mbstate8[128];
  56. } __mbstate_t;
  57. #define _BSD_WCTRANS_T_ __wctrans_t /* wctrans_t */
  58. #define _BSD_WCTYPE_T_ __wctype_t /* wctype_t */
  59. #define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */
  60. #endif /* !_SYS_ANSI_H_ */