poll_darwin_amd64.go 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. // Code generated by 'ccgo poll/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o poll/poll_darwin_amd64.go -pkgname poll', DO NOT EDIT.
  2. package poll
  3. import (
  4. "math"
  5. "reflect"
  6. "sync/atomic"
  7. "unsafe"
  8. )
  9. var _ = math.Pi
  10. var _ reflect.Kind
  11. var _ atomic.Value
  12. var _ unsafe.Pointer
  13. const (
  14. POLLATTRIB = 0x0400 // poll.h:81:1:
  15. POLLERR = 0x0008 // poll.h:89:1:
  16. POLLEXTEND = 0x0200 // poll.h:80:1:
  17. POLLHUP = 0x0010 // poll.h:90:1:
  18. POLLIN = 0x0001 // poll.h:68:1:
  19. POLLNLINK = 0x0800 // poll.h:82:1:
  20. POLLNVAL = 0x0020 // poll.h:91:1:
  21. POLLOUT = 0x0004 // poll.h:70:1:
  22. POLLPRI = 0x0002 // poll.h:69:1:
  23. POLLRDBAND = 0x0080 // poll.h:73:1:
  24. POLLRDNORM = 0x0040 // poll.h:71:1:
  25. POLLSTANDARD = 511 // poll.h:93:1:
  26. POLLWRBAND = 0x0100 // poll.h:74:1:
  27. POLLWRITE = 0x1000 // poll.h:83:1:
  28. POLLWRNORM = 4 // poll.h:72:1:
  29. X_CDEFS_H_ = 0 // cdefs.h:68:1:
  30. X_DARWIN_FEATURE_64_BIT_INODE = 1 // cdefs.h:745:1:
  31. X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:771:1:
  32. X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:779:1:
  33. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  34. X_LP64 = 1 // <predefined>:1:1:
  35. X_Nonnull = 0 // cdefs.h:243:1:
  36. X_Null_unspecified = 0 // cdefs.h:246:1:
  37. X_Nullable = 0 // cdefs.h:240:1:
  38. X_SYS_POLL_H_ = 0 // poll.h:58:1:
  39. )
  40. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  41. type Size_t = uint64 /* <builtin>:9:23 */
  42. type Wchar_t = int32 /* <builtin>:15:24 */
  43. type X__int128_t = struct {
  44. Flo int64
  45. Fhi int64
  46. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  47. type X__uint128_t = struct {
  48. Flo uint64
  49. Fhi uint64
  50. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  51. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  52. type X__float128 = float64 /* <builtin>:47:21 */
  53. var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
  54. // Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
  55. //
  56. // @APPLE_LICENSE_HEADER_START@
  57. //
  58. // This file contains Original Code and/or Modifications of Original Code
  59. // as defined in and that are subject to the Apple Public Source License
  60. // Version 2.0 (the 'License'). You may not use this file except in
  61. // compliance with the License. Please obtain a copy of the License at
  62. // http://www.opensource.apple.com/apsl/ and read it before using this
  63. // file.
  64. //
  65. // The Original Code and all software distributed under the License are
  66. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  67. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  68. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  69. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  70. // Please see the License for the specific language governing rights and
  71. // limitations under the License.
  72. //
  73. // @APPLE_LICENSE_HEADER_END@
  74. // Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved.
  75. //
  76. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  77. //
  78. // This file contains Original Code and/or Modifications of Original Code
  79. // as defined in and that are subject to the Apple Public Source License
  80. // Version 2.0 (the 'License'). You may not use this file except in
  81. // compliance with the License. The rights granted to you under the License
  82. // may not be used to create, or enable the creation or redistribution of,
  83. // unlawful or unlicensed copies of an Apple operating system, or to
  84. // circumvent, violate, or enable the circumvention or violation of, any
  85. // terms of an Apple operating system software license agreement.
  86. //
  87. // Please obtain a copy of the License at
  88. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  89. //
  90. // The Original Code and all software distributed under the License are
  91. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  92. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  93. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  94. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  95. // Please see the License for the specific language governing rights and
  96. // limitations under the License.
  97. //
  98. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  99. // -
  100. // Copyright (c) 1997 Peter Wemm <peter@freebsd.org>
  101. // All rights reserved.
  102. //
  103. // Redistribution and use in source and binary forms, with or without
  104. // modification, are permitted provided that the following conditions
  105. // are met:
  106. // 1. Redistributions of source code must retain the above copyright
  107. // notice, this list of conditions and the following disclaimer.
  108. // 2. Redistributions in binary form must reproduce the above copyright
  109. // notice, this list of conditions and the following disclaimer in the
  110. // documentation and/or other materials provided with the distribution.
  111. // 3. The name of the author may not be used to endorse or promote products
  112. // derived from this software without specific prior written permission.
  113. //
  114. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  115. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  116. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  117. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  118. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  119. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  120. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  121. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  122. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  123. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  124. // SUCH DAMAGE.
  125. //
  126. // This file is intended to be compatible with the traditional poll.h.
  127. // Requestable events. If poll(2) finds any of these set, they are
  128. // copied to revents on return.
  129. // FreeBSD extensions: polling on a regular file might return one
  130. // of these events (currently only supported on local filesystems).
  131. // These events are set if they occur regardless of whether they were
  132. // requested.
  133. type Pollfd = struct {
  134. Ffd int32
  135. Fevents int16
  136. Frevents int16
  137. } /* poll.h:96:1 */
  138. type Nfds_t = uint32 /* poll.h:102:22 */
  139. var _ int8 /* gen.c:2:13: */