Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 110 for include (0.19 sec)

  1. src/cmd/cgo/internal/test/issue24161e0/main.go

    //go:build darwin
    
    package issue24161e0
    
    /*
    #cgo CFLAGS: -x objective-c
    #cgo LDFLAGS: -framework CoreFoundation -framework Security
    #include <TargetConditionals.h>
    #include <CoreFoundation/CoreFoundation.h>
    #include <Security/Security.h>
    #if TARGET_OS_IPHONE == 0 && __MAC_OS_X_VERSION_MAX_ALLOWED < 101200
      typedef CFStringRef SecKeyAlgorithm;
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 919 bytes
    - Viewed (0)
  2. src/cmd/asm/doc.go

    Flags:
    
    	-D name[=value]
    		Predefine symbol name with an optional simple value.
    		Can be repeated to define multiple symbols.
    	-I dir1 -I dir2
    		Search for #include files in dir1, dir2, etc,
    		after consulting $GOROOT/pkg/$GOOS_$GOARCH.
    	-S
    		Print assembly and machine code.
    	-V
    		Print assembler version and exit.
    	-debug
    		Dump instructions as they are parsed.
    	-dynlink
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 22 20:46:45 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/cgo_thread_lock.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build linux
    
    package cgotest
    
    /*
    #include <unistd.h>
    #include <stdbool.h>
    #include <sys/syscall.h>
    void Gosched(void);
    static bool Ctid(void) {
    	long tid1 = syscall(SYS_gettid);
    	Gosched();
    	return tid1 == syscall(SYS_gettid);
    }
    */
    import "C"
    
    import (
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu May 18 16:55:07 GMT 2023
    - 939 bytes
    - Viewed (0)
  4. cni/pkg/plugin/plugin_dryrun_test.go

    			},
    			proxyEnv: []corev1.EnvVar{},
    			golden:   filepath.Join(env.IstioSrc, "cni/pkg/plugin/testdata/include-exclude-ip.txt.golden"),
    		},
    		{
    			name: "include-exclude-ports",
    			annotations: map[string]string{
    				annotation.SidecarStatus.Name:                      "true",
    				annotation.SidecarTrafficIncludeInboundPorts.Name:  "1111,2222",
    				annotation.SidecarTrafficExcludeInboundPorts.Name:  "3333,4444",
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  5. misc/cgo/gmp/gmp.go

    it compiles into a shared object (.so) that is dynamically linked into
    any 6.out that imports the first two files.
    
    The stanza
    
    	// #include <gmp.h>
    	import "C"
    
    is a signal to cgo.  The doc comment on the import of "C" provides
    additional context for the C file.  Here it is just a single #include
    but it could contain arbitrary C definitions to be imported and used.
    
    Cgo recognizes any use of a qualified identifier C.xxx and uses gcc to
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 9.5K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/issue1435.go

    //go:build linux && cgo
    
    package cgotest
    
    import (
    	"fmt"
    	"internal/testenv"
    	"os"
    	"runtime"
    	"sort"
    	"strings"
    	"syscall"
    	"testing"
    )
    
    // #include <stdio.h>
    // #include <stdlib.h>
    // #include <pthread.h>
    // #include <unistd.h>
    // #include <sys/types.h>
    //
    // pthread_t *t = NULL;
    // pthread_mutex_t mu;
    // int nts = 0;
    // int all_done = 0;
    //
    // static void *aFn(void *vargp) {
    //   int done = 0;
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jul 28 21:31:41 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  7. src/cmd/cgo/doc.go

    may include command line options.
    
    The cgo tool will always invoke the C compiler with the source file's
    directory in the include path; i.e. -I${SRCDIR} is always implied. This
    means that if a header file foo/bar.h exists both in the source
    directory and also in the system include directory (or some other place
    specified by a -I flag), then "#include <foo/bar.h>" will always find the
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/issue24161res/restype.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build darwin
    
    package issue24161res
    
    /*
    #cgo LDFLAGS: -framework CoreFoundation
    #include <CoreFoundation/CoreFoundation.h>
    */
    import "C"
    import (
    	"reflect"
    	"testing"
    )
    
    func Test(t *testing.T) {
    	if k := reflect.TypeOf(C.CFArrayCreate(0, nil, 0, nil)).Kind(); k != reflect.Uintptr {
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 486 bytes
    - Viewed (0)
  9. cmd/data-usage-cache.go

    //msgp:tuple dataUsageEntryV2
    type dataUsageEntryV2 struct {
    	// These fields do no include any children.
    	Size     int64
    	Objects  uint64
    	ObjSizes sizeHistogram
    	Children dataUsageHashMap
    }
    
    //msgp:tuple dataUsageEntryV3
    type dataUsageEntryV3 struct {
    	// These fields do no include any children.
    	Size                   int64
    	ReplicatedSize         uint64
    	ReplicationPendingSize uint64
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  10. istioctl/pkg/tag/tag_test.go

    			if tc.error == "" && err != nil {
    				t.Fatalf("expected no error, got %v", err)
    			}
    			if tc.error != "" {
    				if err == nil {
    					t.Fatalf("expected error to include \"%s\" but got none", tc.error)
    				}
    				if !strings.Contains(err.Error(), tc.error) {
    					t.Fatalf("expected \"%s\" in error, got %v", tc.error, err)
    				}
    			}
    
    			commandOutput := out.String()
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Nov 17 22:41:06 GMT 2023
    - 8.7K bytes
    - Viewed (0)
Back to top