- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 888 for proc (0.04 sec)
-
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) -
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) -
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) -
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) -
src/os/exec_unix_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 18:08:44 UTC 2024 - 2K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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)