Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 737 for proc (0.07 sec)

  1. src/runtime/testdata/testprog/syscall_windows.go

    	register("StackMemory", StackMemory)
    }
    
    func RaiseException() {
    	const EXCEPTION_NONCONTINUABLE = 1
    	mod := syscall.MustLoadDLL("kernel32.dll")
    	proc := mod.MustFindProc("RaiseException")
    	proc.Call(0xbad, EXCEPTION_NONCONTINUABLE, 0, 0)
    	println("RaiseException should not return")
    }
    
    func ZeroDivisionException() {
    	x := 1
    	y := 0
    	z := x / y
    	println(z)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 17:31:31 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  2. src/runtime/fds_test.go

    		if strings.HasPrefix(e, "GODEBUG=") || strings.HasPrefix(e, "GOTRACEBACK=") {
    			continue
    		}
    		env = append(env, e)
    	}
    
    	proc, err := os.StartProcess(fdsBin, []string{fdsBin}, &os.ProcAttr{
    		Env:   env,
    		Files: []*os.File{},
    	})
    	if err != nil {
    		t.Fatal(err)
    	}
    	ps, err := proc.Wait()
    	if err != nil {
    		t.Fatal(err)
    	}
    	if ps.ExitCode() != 0 {
    		t.Fatalf("testfds failed: %d", ps.ExitCode())
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 25 16:33:33 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/sys/cpu/hwcap_linux.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package cpu
    
    import (
    	"os"
    )
    
    const (
    	_AT_HWCAP  = 16
    	_AT_HWCAP2 = 26
    
    	procAuxv = "/proc/self/auxv"
    
    	uintSize = int(32 << (^uint(0) >> 63))
    )
    
    // For those platforms don't have a 'cpuid' equivalent we use HWCAP/HWCAP2
    // These are initialized in cpu_$GOARCH.go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. src/os/exec_unix_test.go

    	if err != nil {
    		t.Skipf("starting test process: %v", err)
    	}
    	defer p.Kill()
    
    	proc, err := FindProcess(p.Pid)
    	if err != nil {
    		t.Errorf("OS reported error for running process: %v", err)
    	}
    	err = proc.Signal(syscall.Signal(0))
    	if err != nil {
    		t.Errorf("OS reported error for running process: %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. pkg/util/kernel/version_test.go

    		},
    		{
    			name: "failed to read os-release file",
    			readFileFunc: func(_ string) ([]byte, error) {
    				return nil, errors.New("open /proc/sys/kernel/osrelease: failed to read file")
    			},
    			err:      errors.New("failed to read os-release file: open /proc/sys/kernel/osrelease: failed to read file"),
    			expected: nil,
    		},
    		{
    			name: "version not parsable",
    			readFileFunc: func(_ string) ([]byte, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 19:24:34 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/runtime/runtime_test.go

    	if runtime.GOOS == "windows" {
    		return
    	}
    
    	const tempPrefix = "test.kubeadm.runtime.isExistingSocket."
    	tests := []struct {
    		name string
    		proc func(*testing.T)
    	}{
    		{
    			name: "Valid domain socket is detected as such",
    			proc: func(t *testing.T) {
    				tmpFile, err := os.CreateTemp("", tempPrefix)
    				if err != nil {
    					t.Fatalf("unexpected error by TempFile: %v", err)
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 06:33:22 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. pkg/volume/util/fsquota/common/quota_common_linux.go

    // FirstQuota is the quota ID we start with.
    // XXXXXXX Need a better way of doing this...
    var FirstQuota QuotaID = 1048577
    
    // MountsFile is the location of the system mount data
    var MountsFile = "/proc/self/mounts"
    
    // MountParseRegexp parses out /proc/sys/self/mounts
    var MountParseRegexp = regexp.MustCompilePOSIX("^([^ ]*)[ \t]*([^ ]*)[ \t]*([^ ]*)") // Ignore options etc.
    
    // LinuxVolumeQuotaProvider returns an appropriate quota applier
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 28 06:09:31 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. src/internal/trace/event.go

    // starting to run on this thread and/or proc, then this will return
    // NoGoroutine. In this case, the goroutine starting to run will be
    // can be found at Event.StateTransition().Resource.
    func (e Event) Goroutine() GoID {
    	return e.ctx.G
    }
    
    // Proc returns the ID of the proc this event event pertains to.
    //
    // Note that for proc state transitions this always refers to the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:39:00 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/native-binaries/assembler/groovy/src/main/asm_i386_masm/sum.s

        .386
        .model    flat
    
    PUBLIC    _sum
    _TEXT     SEGMENT
    _sum    PROC
        mov    eax, DWORD PTR 4[esp]
        add    eax, DWORD PTR 8[esp]
        ret    0
    _sum    ENDP
    _TEXT   ENDS
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 184 bytes
    - Viewed (0)
  10. src/runtime/testdata/testprog/syscalls_linux.go

    )
    
    func gettid() int {
    	return syscall.Gettid()
    }
    
    func tidExists(tid int) (exists, supported bool, err error) {
    	// Open the magic proc status file for reading with the syscall package.
    	// We want to identify certain valid errors very precisely.
    	statusFile := fmt.Sprintf("/proc/self/task/%d/status", tid)
    	fd, err := syscall.Open(statusFile, syscall.O_RDONLY, 0)
    	if errno, ok := err.(syscall.Errno); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top