gtsocial-umbx

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

poll_darwin_arm64.go (7174B)


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