Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 432 for proc (0.05 sec)

  1. internal/mountinfo/mountinfo_linux.go

    import (
    	"bufio"
    	"fmt"
    	"io"
    	"os"
    	"path/filepath"
    	"strconv"
    	"strings"
    	"syscall"
    )
    
    const (
    	// Number of fields per line in /proc/mounts as per the fstab man page.
    	expectedNumFieldsPerLine = 6
    	// Location of the mount file to use
    	procMountsPath = "/proc/mounts"
    )
    
    // IsLikelyMountPoint determines if a directory is a mountpoint.
    func IsLikelyMountPoint(path string) bool {
    	s1, err := os.Lstat(path)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 4.7K 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. test/fixedbugs/bug286.go

    test2 called g
    panic: wrong method called
    
    panic PC=0x24e040
    runtime.panic+0x7c /home/gri/go1/src/pkg/runtime/proc.c:1012
    	runtime.panic(0x0, 0x24e0a0)
    main.main+0xef /home/gri/go1/test/bugs/bug286.go:76
    	main.main()
    mainstart+0xf /home/gri/go1/src/pkg/runtime/amd64/asm.s:60
    	mainstart()
    goexit /home/gri/go1/src/pkg/runtime/proc.c:145
    	goexit()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  5. test/fixedbugs/issue10607a.go

    package main
    
    import (
    	"bytes"
    	"debug/elf"
    	"fmt"
    	"os"
    )
    
    func main() {
    	f, err := elf.Open("/proc/self/exe")
    	if err != nil {
    		if os.IsNotExist(err) {
    			return
    		}
    		fmt.Fprintln(os.Stderr, "opening /proc/self/exe:", err)
    		os.Exit(1)
    	}
    
    	c := 0
    	fail := false
    	for i, s := range f.Sections {
    		if s.Type != elf.SHT_NOTE {
    			continue
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 07 14:00:27 UTC 2017
    - 1.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/os/exec/read3.go

    		}
    
    		fmt.Printf("leaked parent file. fdtest.Exists(%d) got true want false\n", fd)
    
    		fdfile := fmt.Sprintf("/proc/self/fd/%d", fd)
    		link, err := os.Readlink(fdfile)
    		fmt.Printf("readlink(%q) = %q, %v\n", fdfile, link, err)
    
    		var args []string
    		switch runtime.GOOS {
    		case "plan9":
    			args = []string{fmt.Sprintf("/proc/%d/fd", os.Getpid())}
    		case "aix", "solaris", "illumos":
    			args = []string{fmt.Sprint(os.Getpid())}
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 26 14:49:07 UTC 2022
    - 2.2K 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. 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)
Back to top