Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for cgo (0.14 sec)

  1. src/cmd/cgo/internal/test/cgo_linux_test.go

    // Copyright 2012 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 cgotest
    
    import (
    	"os"
    	"runtime"
    	"testing"
    )
    
    func TestSetgid(t *testing.T) {
    	if runtime.GOOS == "android" {
    		t.Skip("unsupported on Android")
    	}
    	if _, err := os.Stat("/etc/alpine-release"); err == nil {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/cgo_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cgo
    
    package cgotest
    
    import "testing"
    
    // The actual test functions are in non-_test.go files
    // so that they can use cgo (import "C").
    // These wrappers are here for gotest to find.
    
    func Test1328(t *testing.T)                  { test1328(t) }
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed May 17 21:53:11 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/cgo_unix_test.go

    // Copyright 2015 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 && !windows
    
    package cgotest
    
    import "testing"
    
    func TestSigaltstack(t *testing.T) { testSigaltstack(t) }
    func TestSigprocmask(t *testing.T) { testSigprocmask(t) }
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 391 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/cgo_thread_lock.go

    		for {
    			select {
    			case <-stop:
    				return
    			case <-time.After(time.Millisecond * 100):
    			}
    		}
    	}()
    	defer close(stop)
    
    	for i := 0; i < 1000; i++ {
    		if !C.Ctid() {
    			t.Fatalf("cgo has not locked OS thread")
    		}
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu May 18 16:55:07 GMT 2023
    - 939 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/cgo_stubs_android_test.go

    Austin Clements <******@****.***> 1683224724 -0400
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 359 bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/cgo_stubs_ppc64x_internal_linking_test.go

    Paul E. Murphy <******@****.***> 1707950547 -0600
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Feb 20 15:35:35 GMT 2024
    - 631 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/callback_c_gc.c

    // license that can be found in the LICENSE file.
    
    //go:build gc
    
    #include "_cgo_export.h"
    #include <stdint.h>
    #include <stdio.h>
    #include <stdlib.h>
    
    /* Test calling panic from C.  This is what SWIG does.  */
    
    extern void crosscall2(void (*fn)(void *, int), void *, int);
    extern void _cgo_panic(void *, int);
    extern void _cgo_allocate(void *, int);
    
    void
    callPanic(void)
    {
    	struct { const char *p; } a;
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 592 bytes
    - Viewed (0)
  8. .gitignore

    *.pyc
    ._*
    .nfs.*
    [56789a].out
    *~
    *.orig
    *.rej
    *.exe
    .*.swp
    core
    *.cgo*.go
    *.cgo*.c
    _cgo_*
    _obj
    _test
    _testmain.go
    
    /VERSION.cache
    /bin/
    /build.out
    /doc/articles/wiki/*.bin
    /goinstall.log
    /last-change
    /misc/cgo/life/run.out
    /misc/cgo/stdio/run.out
    /misc/cgo/testso/main
    /pkg/
    /src/*.*/
    /src/cmd/cgo/zdefaultcc.go
    /src/cmd/dist/dist
    /src/cmd/go/internal/cfg/zdefaultcc.go
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jun 22 19:44:52 GMT 2023
    - 958 bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/issue24161_darwin_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cgo
    
    package cgotest
    
    import (
    	"testing"
    
    	"cmd/cgo/internal/test/issue24161arg"
    	"cmd/cgo/internal/test/issue24161e0"
    	"cmd/cgo/internal/test/issue24161e1"
    	"cmd/cgo/internal/test/issue24161e2"
    	"cmd/cgo/internal/test/issue24161res"
    )
    
    func Test24161Arg(t *testing.T) {
    	issue24161arg.Test(t)
    }
    Go
    - Registered: Tue Apr 09 11:13:10 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 716 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/test/issue23555.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cgo
    
    // Test that we can have two identical cgo packages in a single binary.
    // No runtime test; just make sure it compiles.
    
    package cgotest
    
    import (
    	_ "cmd/cgo/internal/test/issue23555a"
    	_ "cmd/cgo/internal/test/issue23555b"
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 403 bytes
    - Viewed (0)
Back to top