github.com/afumu/libc@v0.0.6/poll/poll_netbsd_arm.go (about)

     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_netbsd_arm.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  	INFTIM                    = -1     // poll.h:67:1:
    19  	POLLERR                   = 0x0008 // poll.h:59:1:
    20  	POLLHUP                   = 0x0010 // poll.h:60:1:
    21  	POLLIN                    = 0x0001 // poll.h:48:1:
    22  	POLLNVAL                  = 0x0020 // poll.h:61:1:
    23  	POLLOUT                   = 0x0004 // poll.h:50:1:
    24  	POLLPRI                   = 0x0002 // poll.h:49:1:
    25  	POLLRDBAND                = 0x0080 // poll.h:53:1:
    26  	POLLRDNORM                = 0x0040 // poll.h:51:1:
    27  	POLLWRBAND                = 0x0100 // poll.h:54:1:
    28  	POLLWRNORM                = 4      // poll.h:52:1:
    29  	X_ARM_ARCH_4T             = 0      // cdefs.h:44:1:
    30  	X_ARM_ARCH_5              = 0      // cdefs.h:40:1:
    31  	X_ARM_ARCH_5T             = 0      // cdefs.h:36:1:
    32  	X_ARM_ARCH_6              = 0      // cdefs.h:31:1:
    33  	X_ARM_ARCH_7              = 0      // cdefs.h:20:1:
    34  	X_ARM_ARCH_DWORD_OK       = 0      // cdefs.h:51:1:
    35  	X_ARM_ARCH_T2             = 0      // cdefs.h:24:1:
    36  	X_ARM_CDEFS_H_            = 0      // cdefs.h:4:1:
    37  	X_ARM_INT_TYPES_H_        = 0      // int_types.h:33:1:
    38  	X_FILE_OFFSET_BITS        = 64     // <builtin>:25:1:
    39  	X_NETBSD_SOURCE           = 1      // featuretest.h:70:1:
    40  	X_SYS_CDEFS_ELF_H_        = 0      // cdefs_elf.h:31:1:
    41  	X_SYS_CDEFS_H_            = 0      // cdefs.h:37:1:
    42  	X_SYS_COMMON_ANSI_H_      = 0      // common_ansi.h:33:1:
    43  	X_SYS_COMMON_INT_TYPES_H_ = 0      // common_int_types.h:33:1:
    44  	X_SYS_POLL_H_             = 0      // poll.h:33:1:
    45  	X_SYS_SIGTYPES_H_         = 0      // sigtypes.h:40:1:
    46  )
    47  
    48  type Ptrdiff_t = int32 /* <builtin>:3:26 */
    49  
    50  type Size_t = uint32 /* <builtin>:9:23 */
    51  
    52  type Wchar_t = int32 /* <builtin>:15:24 */
    53  
    54  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    55  type X__float128 = float64        /* <builtin>:47:21 */
    56  
    57  //	$NetBSD: poll.h,v 1.15 2009/11/11 09:48:51 rmind Exp $
    58  
    59  // -
    60  // Copyright (c) 1998 The NetBSD Foundation, Inc.
    61  // All rights reserved.
    62  //
    63  // This code is derived from software contributed to The NetBSD Foundation
    64  // by Charles M. Hannum.
    65  //
    66  // Redistribution and use in source and binary forms, with or without
    67  // modification, are permitted provided that the following conditions
    68  // are met:
    69  // 1. Redistributions of source code must retain the above copyright
    70  //    notice, this list of conditions and the following disclaimer.
    71  // 2. Redistributions in binary form must reproduce the above copyright
    72  //    notice, this list of conditions and the following disclaimer in the
    73  //    documentation and/or other materials provided with the distribution.
    74  //
    75  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
    76  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
    77  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    78  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
    79  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    80  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    81  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    82  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    83  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    84  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    85  // POSSIBILITY OF SUCH DAMAGE.
    86  
    87  //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
    88  
    89  // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
    90  // Public domain.
    91  //
    92  // NOTE: Do not protect this header against multiple inclusion.  Doing
    93  // so can have subtle side-effects due to header file inclusion order
    94  // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
    95  // protect each CPP macro that we want to supply.
    96  
    97  // Feature-test macros are defined by several standards, and allow an
    98  // application to specify what symbols they want the system headers to
    99  // expose, and hence what standard they want them to conform to.
   100  // There are two classes of feature-test macros.  The first class
   101  // specify complete standards, and if one of these is defined, header
   102  // files will try to conform to the relevant standard.  They are:
   103  //
   104  // ANSI macros:
   105  // _ANSI_SOURCE			ANSI C89
   106  //
   107  // POSIX macros:
   108  // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
   109  // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
   110  // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
   111  // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
   112  // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
   113  // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
   114  // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
   115  //
   116  // X/Open macros:
   117  // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
   118  // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
   119  // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
   120  // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
   121  // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
   122  // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
   123  //
   124  // NetBSD macros:
   125  // _NETBSD_SOURCE == 1		Make all NetBSD features available.
   126  //
   127  // If more than one of these "major" feature-test macros is defined,
   128  // then the set of facilities provided (and namespace used) is the
   129  // union of that specified by the relevant standards, and in case of
   130  // conflict, the earlier standard in the above list has precedence (so
   131  // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
   132  // of rename() that's used is the POSIX one).  If none of the "major"
   133  // feature-test macros is defined, _NETBSD_SOURCE is assumed.
   134  //
   135  // There are also "minor" feature-test macros, which enable extra
   136  // functionality in addition to some base standard.  They should be
   137  // defined along with one of the "major" macros.  The "minor" macros
   138  // are:
   139  //
   140  // _REENTRANT
   141  // _ISOC99_SOURCE
   142  // _ISOC11_SOURCE
   143  // _LARGEFILE_SOURCE		Large File Support
   144  //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
   145  
   146  type Nfds_t = uint32 /* poll.h:37:22 */
   147  
   148  type Pollfd = struct {
   149  	Ffd      int32
   150  	Fevents  int16
   151  	Frevents int16
   152  } /* poll.h:39:1 */
   153  
   154  //	$NetBSD: sigtypes.h,v 1.11 2017/01/12 18:29:14 christos Exp $
   155  
   156  // Copyright (c) 1982, 1986, 1989, 1991, 1993
   157  //	The Regents of the University of California.  All rights reserved.
   158  // (c) UNIX System Laboratories, Inc.
   159  // All or some portions of this file are derived from material licensed
   160  // to the University of California by American Telephone and Telegraph
   161  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
   162  // the permission of UNIX System Laboratories, Inc.
   163  //
   164  // Redistribution and use in source and binary forms, with or without
   165  // modification, are permitted provided that the following conditions
   166  // are met:
   167  // 1. Redistributions of source code must retain the above copyright
   168  //    notice, this list of conditions and the following disclaimer.
   169  // 2. Redistributions in binary form must reproduce the above copyright
   170  //    notice, this list of conditions and the following disclaimer in the
   171  //    documentation and/or other materials provided with the distribution.
   172  // 3. Neither the name of the University nor the names of its contributors
   173  //    may be used to endorse or promote products derived from this software
   174  //    without specific prior written permission.
   175  //
   176  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   177  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   178  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   179  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   180  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   181  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   182  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   183  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   184  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   185  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   186  // SUCH DAMAGE.
   187  //
   188  //	@(#)signal.h	8.4 (Berkeley) 5/4/95
   189  
   190  // This header file defines various signal-related types.  We also keep
   191  // the macros to manipulate sigset_t here, to encapsulate knowledge of
   192  // its internals.
   193  
   194  //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
   195  
   196  // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
   197  // Public domain.
   198  //
   199  // NOTE: Do not protect this header against multiple inclusion.  Doing
   200  // so can have subtle side-effects due to header file inclusion order
   201  // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
   202  // protect each CPP macro that we want to supply.
   203  
   204  // Feature-test macros are defined by several standards, and allow an
   205  // application to specify what symbols they want the system headers to
   206  // expose, and hence what standard they want them to conform to.
   207  // There are two classes of feature-test macros.  The first class
   208  // specify complete standards, and if one of these is defined, header
   209  // files will try to conform to the relevant standard.  They are:
   210  //
   211  // ANSI macros:
   212  // _ANSI_SOURCE			ANSI C89
   213  //
   214  // POSIX macros:
   215  // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
   216  // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
   217  // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
   218  // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
   219  // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
   220  // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
   221  // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
   222  //
   223  // X/Open macros:
   224  // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
   225  // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
   226  // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
   227  // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
   228  // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
   229  // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
   230  //
   231  // NetBSD macros:
   232  // _NETBSD_SOURCE == 1		Make all NetBSD features available.
   233  //
   234  // If more than one of these "major" feature-test macros is defined,
   235  // then the set of facilities provided (and namespace used) is the
   236  // union of that specified by the relevant standards, and in case of
   237  // conflict, the earlier standard in the above list has precedence (so
   238  // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
   239  // of rename() that's used is the POSIX one).  If none of the "major"
   240  // feature-test macros is defined, _NETBSD_SOURCE is assumed.
   241  //
   242  // There are also "minor" feature-test macros, which enable extra
   243  // functionality in addition to some base standard.  They should be
   244  // defined along with one of the "major" macros.  The "minor" macros
   245  // are:
   246  //
   247  // _REENTRANT
   248  // _ISOC99_SOURCE
   249  // _ISOC11_SOURCE
   250  // _LARGEFILE_SOURCE		Large File Support
   251  //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
   252  
   253  //	$NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
   254  
   255  // -
   256  // Copyright (c) 2014 The NetBSD Foundation, Inc.
   257  // All rights reserved.
   258  //
   259  // This code is derived from software contributed to The NetBSD Foundation
   260  // by Matt Thomas of 3am Software Foundry.
   261  //
   262  // Redistribution and use in source and binary forms, with or without
   263  // modification, are permitted provided that the following conditions
   264  // are met:
   265  // 1. Redistributions of source code must retain the above copyright
   266  //    notice, this list of conditions and the following disclaimer.
   267  // 2. Redistributions in binary form must reproduce the above copyright
   268  //    notice, this list of conditions and the following disclaimer in the
   269  //    documentation and/or other materials provided with the distribution.
   270  //
   271  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   272  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   273  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   274  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   275  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   276  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   277  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   278  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   279  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   280  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   281  // POSSIBILITY OF SUCH DAMAGE.
   282  
   283  //	$NetBSD: common_int_types.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
   284  
   285  // -
   286  // Copyright (c) 2014 The NetBSD Foundation, Inc.
   287  // All rights reserved.
   288  //
   289  // This code is derived from software contributed to The NetBSD Foundation
   290  // by Joerg Sonnenberger.
   291  //
   292  // Redistribution and use in source and binary forms, with or without
   293  // modification, are permitted provided that the following conditions
   294  // are met:
   295  // 1. Redistributions of source code must retain the above copyright
   296  //    notice, this list of conditions and the following disclaimer.
   297  // 2. Redistributions in binary form must reproduce the above copyright
   298  //    notice, this list of conditions and the following disclaimer in the
   299  //    documentation and/or other materials provided with the distribution.
   300  //
   301  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   302  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   303  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   304  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   305  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   306  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   307  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   308  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   309  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   310  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   311  // POSSIBILITY OF SUCH DAMAGE.
   312  
   313  // 7.18.1 Integer types
   314  
   315  // 7.18.1.1 Exact-width integer types
   316  
   317  type X__int8_t = int8     /* common_int_types.h:45:27 */
   318  type X__uint8_t = uint8   /* common_int_types.h:46:27 */
   319  type X__int16_t = int16   /* common_int_types.h:47:27 */
   320  type X__uint16_t = uint16 /* common_int_types.h:48:27 */
   321  type X__int32_t = int32   /* common_int_types.h:49:27 */
   322  type X__uint32_t = uint32 /* common_int_types.h:50:27 */
   323  type X__int64_t = int64   /* common_int_types.h:51:27 */
   324  type X__uint64_t = uint64 /* common_int_types.h:52:27 */
   325  
   326  // 7.18.1.4 Integer types capable of holding object pointers
   327  
   328  type X__intptr_t = int32   /* common_int_types.h:58:27 */
   329  type X__uintptr_t = uint32 /* common_int_types.h:59:26 */
   330  
   331  type Sigset_t = struct{ F__bits [4]X__uint32_t } /* sigtypes.h:62:3 */
   332  
   333  // Macro for manipulating signal masks.
   334  
   335  type Sigaltstack = struct {
   336  	Fss_sp    uintptr
   337  	Fss_size  Size_t
   338  	Fss_flags int32
   339  } /* sigtypes.h:108:9 */
   340  
   341  // Macro for manipulating signal masks.
   342  
   343  type Stack_t = Sigaltstack /* sigtypes.h:116:3 */
   344  
   345  var _ uint8 /* gen.c:2:13: */