Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 785 for CGO (0.03 sec)

  1. src/runtime/cgo/gcc_darwin_arm64.c

    	CFRelease(url_ref);
    	if (!res) {
    		fprintf(stderr, "runtime/cgo: cannot get URL string\n");
    		return;
    	}
    
    	// url is of the form "file:///path/to/Info.plist".
    	// strip it down to the working directory "/path/to".
    	int url_len = strlen(buf);
    	if (url_len < sizeof("file://")+sizeof("/Info.plist")) {
    		fprintf(stderr, "runtime/cgo: bad URL: %s\n", buf);
    		return;
    	}
    	buf[url_len-sizeof("/Info.plist")+1] = 0;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 03:13:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/cgo_undef.txt

    # such that the .syso file only works when linked against the .a file.
    # Package a has #cgo LDFLAGS to make this happen.
    #
    # Package c imports package a, and uses cgo itself.
    # The generation of the _cgo_import.go for package c will fail,
    # because it won't know that it has to link against a/libb.a
    # (because we don't gather the #cgo LDFLAGS from all transitively
    # imported packages).
    #
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 22 20:56:07 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/cache_vet.txt

    # Check that second vet reuses cgo-derived inputs.
    # The first command could be build instead of vet,
    # except that if the cache is empty and there's a net.a
    # in GOROOT/pkg, the build will not bother to regenerate
    # and cache the cgo outputs, whereas vet always will.
    
    go vet -x os/user
    ! stderr '^(clang|gcc)'  # should not have run compiler
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 721 bytes
    - Viewed (0)
  4. src/runtime/cgo/gcc_signal_ios_arm64.c

    	ret = mach_port_allocate(mach_task_self(), MACH_PORT_RIGHT_RECEIVE, &port);
    	if (ret) {
    		fprintf(stderr, "runtime/cgo: mach_port_allocate failed: %d\n", ret);
    		abort();
    	}
    	ret = mach_port_insert_right(
    		mach_task_self(),
    		port,
    		port,
    		MACH_MSG_TYPE_MAKE_SEND);
    	if (ret) {
    		fprintf(stderr, "runtime/cgo: mach_port_insert_right failed: %d\n", ret);
    		abort();
    	}
    
    	ret = thread_set_exception_ports(
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 21:04:22 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/autocgo.txt

    # Test automatic setting of CGO_ENABLED based on $CC and what's in $PATH.
    
    [!cgo] skip
    [cross] skip
    
    # Assume we're on a system that can enable cgo normally.
    env CGO_ENABLED=
    go env CGO_ENABLED
    stdout 1
    
    # Clearing CC and removing everything but Go from the PATH should usually
    # disable cgo: no C compiler anymore (unless the baked-in defaultCC is an
    # absolute path and exists.
    env CC=
    env PATH=$GOROOT/bin
    go env CGO_ENABLED
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 17 02:01:30 UTC 2022
    - 625 bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/darwin_no_cgo.txt

    # For reproducibility and easier cross-compilation,
    # nothing in std is supposed to use cgo on macOS.
    # Check that cgo does not appear as a dependency
    # of cmd/go, which imports approximately everything
    # in std (certainly everything relevant).
    [!GOOS:darwin] skip
    go list -deps cmd/go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 18:09:52 UTC 2024
    - 308 bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/mod_case_cgo.txt

    [!cgo] skip
    
    env GO111MODULE=on
    
    go get rsc.io/CGO
    [short] stop
    
    go build rsc.io/CGO
    
    -- go.mod --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 108 bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/issue52611.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cgo
    
    // Issue 52611: inconsistent compiler behaviour when compiling a C.struct.
    // No runtime test; just make sure it compiles.
    
    package cgotest
    
    import (
    	_ "cmd/cgo/internal/test/issue52611a"
    	_ "cmd/cgo/internal/test/issue52611b"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 406 bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testerrors/testdata/notmatchedcfunction.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    /*
    // TODO(#56378): change back to "#cgo noescape noMatchedCFunction: no matched C function" in Go 1.23
    // ERROR MESSAGE: #cgo noescape disabled until Go 1.23
    #cgo noescape noMatchedCFunction
    */
    import "C"
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 16:43:23 UTC 2023
    - 397 bytes
    - Viewed (0)
  10. test/fixedbugs/issue42076.go

    // Copyright 2020 The Go Authors. All rights reserved.  Use of this
    // source code is governed by a BSD-style license that can be found in
    // the LICENSE file.
    
    //go:build cgo
    
    package main
    
    import (
    	"reflect"
    	"runtime/cgo"
    )
    
    type NIH struct {
    	_ cgo.Incomplete
    }
    
    var x, y NIH
    
    func main() {
    	if reflect.DeepEqual(&x, &y) != true {
    		panic("should report true")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 15:27:18 UTC 2022
    - 379 bytes
    - Viewed (0)
Back to top