- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 888 for proc (0.04 sec)
-
src/vendor/golang.org/x/sys/cpu/proc_cpuinfo_linux.go
// license that can be found in the LICENSE file. //go:build linux && arm64 package cpu import ( "errors" "io" "os" "strings" ) func readLinuxProcCPUInfo() error { f, err := os.Open("/proc/cpuinfo") if err != nil { return err } defer f.Close() var buf [1 << 10]byte // enough for first CPU n, err := io.ReadFull(f, buf[:]) if err != nil && err != io.ErrUnexpectedEOF { return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 1.1K bytes - Viewed (0) -
src/runtime/security_test.go
tempfilePath := f.Name() f.Close() lowPrivUser := "nobody" setSetuid(t, lowPrivUser, helloBin) b := bytes.NewBuffer(nil) pr, pw, err := os.Pipe() if err != nil { t.Fatal(err) } proc, err := os.StartProcess(helloBin, []string{helloBin}, &os.ProcAttr{ Env: []string{"GOTRACEBACK=system", "TEST_OUTPUT=" + tempfilePath}, Files: []*os.File{os.Stdin, pw}, }) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 13 18:10:14 UTC 2023 - 4.1K bytes - Viewed (0) -
src/internal/trace/summary.go
case GoSyscall: s.syscallingP[ev.Proc()] = id s.syscallingG[id] = ev.Proc() g.lastSyscallTime = ev.Time() } // Handle procs to detect syscall blocking, which si identifiable as a // proc going idle while the goroutine it was attached to is in a syscall. case ResourceProc: id := st.Resource.Proc() old, new := st.Proc() if old != new && new == ProcIdle {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 20.7K bytes - Viewed (0) -
test/fixedbugs/bug206.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 31 17:36:45 UTC 2018 - 1K bytes - Viewed (0) -
src/internal/sysinfo/cpuinfo_linux.go
// license that can be found in the LICENSE file. package sysinfo import ( "bufio" "bytes" "io" "os" "strings" ) func readLinuxProcCPUInfo(buf []byte) error { f, err := os.Open("/proc/cpuinfo") if err != nil { return err } defer f.Close() _, err = io.ReadFull(f, buf) if err != nil && err != io.ErrUnexpectedEOF { return err } return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:42:42 UTC 2024 - 1.4K bytes - Viewed (0) -
pkg/util/kernel/version.go
return getVersion(os.ReadFile) } // getVersion reads os release file from the give readFile function. func getVersion(readFile readFileFunc) (*version.Version, error) { kernelVersionFile := "/proc/sys/kernel/osrelease" fileContent, err := readFile(kernelVersionFile) if err != nil { return nil, fmt.Errorf("failed to read os-release file: %s", err.Error()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 19:24:34 UTC 2023 - 1.4K bytes - Viewed (0) -
src/main/resources/fess_indices/fess/cs/stopwords.txt
a s k o i u v z dnes cz tímto budeš budem byli jseš můj svým ta tomto tohle tuto tyto jej zda proč máte tato kam tohoto kdo kteří mi nám tom tomuto mít nic proto kterou byla toho protože asi ho naši napište re což tím takže svých její
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Jul 19 06:31:02 UTC 2018 - 992 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue1435.go
expected := filter + expect pid := syscall.Getpid() fs, err := os.ReadDir(fmt.Sprintf("/proc/%d/task", pid)) if err != nil { return fmt.Errorf("unable to find %d tasks: %v", pid, err) } expectedProc := fmt.Sprintf("Pid:\t%d", pid) foundAThread := false for _, f := range fs { tf := fmt.Sprintf("/proc/%s/status", f.Name()) d, err := os.ReadFile(tf) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 28 21:31:41 UTC 2023 - 7.5K bytes - Viewed (0) -
src/runtime/os_linux_arm.go
"internal/cpu" "unsafe" ) const ( _HWCAP_VFP = 1 << 6 // introduced in at least 2.6.11 _HWCAP_VFPv3 = 1 << 13 // introduced in 2.6.30 ) func vdsoCall() func checkgoarm() { // On Android, /proc/self/auxv might be unreadable and hwcap won't // reflect the CPU capabilities. Assume that every Android arm device // has the necessary floating point hardware available. if GOOS == "android" { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 1.5K bytes - Viewed (0) -
src/runtime/debug_test.go
func skipUnderDebugger(t *testing.T) { pid := syscall.Getpid() status, err := os.ReadFile(fmt.Sprintf("/proc/%d/status", pid)) if err != nil { t.Logf("couldn't get proc tracer: %s", err) return } re := regexp.MustCompile(`TracerPid:\s+([0-9]+)`) sub := re.FindSubmatch(status) if sub == nil { t.Logf("couldn't find proc tracer PID") return } if string(sub[1]) == "0" { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 15:08:04 UTC 2023 - 8K bytes - Viewed (0)