Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 65 for CFLAGS (0.23 sec)

  1. src/cmd/cgo/internal/testsanitizers/testdata/tsan9.go

    // TSAN library was not keeping track of whether signals should be
    // delivered on the alternate signal stack, and the Go signal handler
    // was not preserving callee-saved registers from C callers.
    
    /*
    #cgo CFLAGS: -g -fsanitize=thread
    #cgo LDFLAGS: -g -fsanitize=thread
    
    #include <stdlib.h>
    #include <sys/time.h>
    
    void spin() {
    	size_t n;
    	struct timeval tvstart, tvnow;
    	int diff;
    	void *prev = NULL, *cur;
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/issue24161e2/main.go

    // Copyright 2018 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 darwin
    
    package issue24161e2
    
    /*
    #cgo CFLAGS: -x objective-c
    #cgo LDFLAGS: -framework CoreFoundation -framework Security
    #include <TargetConditionals.h>
    #include <CoreFoundation/CoreFoundation.h>
    #include <Security/Security.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 1K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/issue6997_linux.go

    //go:build !android
    
    // Test that pthread_cancel works as expected
    // (NPTL uses SIGRTMIN to implement thread cancellation)
    // See https://golang.org/issue/6997
    package cgotest
    
    /*
    #cgo CFLAGS: -pthread
    #cgo LDFLAGS: -pthread
    extern int StartThread();
    extern int CancelThread();
    */
    import "C"
    
    import (
    	"testing"
    	"time"
    )
    
    func test6997(t *testing.T) {
    	r := C.StartThread()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 879 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testsanitizers/testdata/tsan6.go

    // license that can be found in the LICENSE file.
    
    package main
    
    // Check that writes to Go allocated memory, with Go synchronization,
    // do not look like a race.
    
    /*
    #cgo CFLAGS: -fsanitize=thread
    #cgo LDFLAGS: -fsanitize=thread
    
    void f(char *p) {
    	*p = 1;
    }
    */
    import "C"
    
    import (
    	"runtime"
    	"sync"
    )
    
    func main() {
    	var wg sync.WaitGroup
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 817 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testsanitizers/testdata/tsan11.go

    // run for an arbitrarily long time without triggering the libc interceptors.
    // See https://golang.org/issue/18717.
    
    import (
    	"os"
    	"os/signal"
    	"syscall"
    )
    
    /*
    #cgo CFLAGS: -g -fsanitize=thread
    #cgo LDFLAGS: -g -fsanitize=thread
    
    #include <signal.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    
    static void raise_usr2(int signo) {
    	raise(SIGUSR2);
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  6. src/cmd/go/internal/work/exec.go

    	}
    	return args
    }
    
    // CFlags returns the flags to use when invoking the C, C++ or Fortran compilers, or cgo.
    func (b *Builder) CFlags(p *load.Package) (cppflags, cflags, cxxflags, fflags, ldflags []string, err error) {
    	if cppflags, err = buildFlags("CPPFLAGS", "", p.CgoCPPFLAGS, checkCompilerFlags); err != nil {
    		return
    	}
    	if cflags, err = buildFlags("CFLAGS", DefaultCFlags, p.CgoCFLAGS, checkCompilerFlags); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testsanitizers/testdata/tsan5.go

    // license that can be found in the LICENSE file.
    
    package main
    
    // Check that calls to C.malloc/C.free do not collide with the calls
    // made by the os/user package.
    
    // #cgo CFLAGS: -fsanitize=thread
    // #cgo LDFLAGS: -fsanitize=thread
    // #include <stdlib.h>
    import "C"
    
    import (
    	"fmt"
    	"os"
    	"os/user"
    	"runtime"
    	"sync"
    )
    
    func main() {
    	u, err := user.Current()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 927 bytes
    - Viewed (0)
  8. src/runtime/cgo/cgo.go

    #cgo aix LDFLAGS: -Wl,-berok
    #cgo solaris LDFLAGS: -lxnet
    #cgo solaris LDFLAGS: -lsocket
    
    // Use -fno-stack-protector to avoid problems locating the
    // proper support functions. See issues #52919, #54313, #58385.
    #cgo CFLAGS: -Wall -Werror -fno-stack-protector
    
    #cgo solaris CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS
    
    */
    import "C"
    
    import "runtime/internal/sys"
    
    // Incomplete is used specifically for the semantics of incomplete C types.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 14:29:46 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testsanitizers/testdata/tsan8.go

    package main
    
    // This program failed when run under the C/C++ ThreadSanitizer.  The TSAN
    // sigaction function interceptor returned SIG_DFL instead of the Go runtime's
    // handler in registerSegvForwarder.
    
    /*
    #cgo CFLAGS: -fsanitize=thread
    #cgo LDFLAGS: -fsanitize=thread
    
    #include <signal.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    
    struct sigaction prev_sa;
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/DefaultModelSchemaExtractorTest.groovy

            String getCFlags()
            void setCFlags(String cflags)
        }
    
        def "extraction of double uppercase char first getter like getCFlags() is javabeans compliant"() {
            when:
            def schema = store.getSchema(HasDoubleCapsStartingGetter)
    
            then:
            schema instanceof ManagedImplSchema
            def cflags = schema.properties[0]
            assert cflags instanceof ModelProperty
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 29.9K bytes
    - Viewed (0)
Back to top