Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 179 for lchflags (0.33 sec)

  1. 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
    	var mu sync.Mutex
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 817 bytes
    - Viewed (0)
  2. 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)
  3. 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()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 927 bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/cgo/internal/testsanitizers/testdata/tsan8.go

    // 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;
    
    void forwardSignal(int signo, siginfo_t *info, void *context) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testsanitizers/testdata/tsan_shared.go

    // The Go runtime had re-registered the C handler with the wrong flags due to a
    // typo, resulting in null pointers being passed for the info and context
    // parameters to the handler.
    
    /*
    #cgo CFLAGS: -fsanitize=thread
    #cgo LDFLAGS: -fsanitize=thread
    
    #include <signal.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <ucontext.h>
    
    void check_params(int signo, siginfo_t *info, void *context) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testsanitizers/testdata/tsan13.go

    package main
    
    // This program failed when run under the C/C++ ThreadSanitizer.
    // There was no TSAN synchronization for the call to the cgo
    // traceback routine.
    
    /*
    #cgo CFLAGS: -g -fsanitize=thread
    #cgo LDFLAGS: -g -fsanitize=thread
    
    #include <pthread.h>
    #include <stdint.h>
    #include <stdlib.h>
    #include <sys/time.h>
    #include <unistd.h>
    
    struct tracebackArg {
    	uintptr_t  Context;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. src/runtime/asan/asan.go

    // license that can be found in the LICENSE file.
    
    //go:build asan && linux && (arm64 || amd64 || loong64 || riscv64 || ppc64le)
    
    package asan
    
    /*
    #cgo CFLAGS: -fsanitize=address
    #cgo LDFLAGS: -fsanitize=address
    
    #include <stdbool.h>
    #include <stdint.h>
    #include <sanitizer/asan_interface.h>
    
    void __asan_read_go(void *addr, uintptr_t sz, void *sp, void *pc) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 00:22:11 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. src/runtime/defs_linux_loong64.go

    	ss_sp     *byte
    	ss_flags  int32
    	pad_cgo_0 [4]byte
    	ss_size   uintptr
    }
    
    type sigcontext struct {
    	sc_pc         uint64
    	sc_regs       [32]uint64
    	sc_flags      uint32
    	sc_extcontext [0]uint64
    }
    
    type ucontext struct {
    	uc_flags     uint64
    	uc_link      *ucontext
    	uc_stack     stackt
    	uc_sigmask   usigset
    	uc_x_unused  [0]uint8
    	uc_pad_cgo_0 [8]byte
    	uc_mcontext  sigcontext
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  10. src/runtime/defs_freebsd_386.go

    	mc_fpformat      uint32
    	mc_ownedfp       uint32
    	mc_flags         uint32
    	mc_fpstate       [128]uint32
    	mc_fsbase        uint32
    	mc_gsbase        uint32
    	mc_xfpustate     uint32
    	mc_xfpustate_len uint32
    	mc_spare2        [4]uint32
    }
    
    type ucontext struct {
    	uc_sigmask  sigset
    	uc_mcontext mcontext
    	uc_link     *ucontext
    	uc_stack    stackt
    	uc_flags    int32
    	__spare__   [4]int32
    	pad_cgo_0   [12]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top