gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

poll_darwin_amd64.go (7040B)


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