Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 888 for proc (0.74 sec)

  1. src/internal/syscall/windows/exec_windows_test.go

    			return nil, e
    		}
    	}
    }
    
    func getIntegrityLevelToken(wns string) (syscall.Token, error) {
    	var procToken, token syscall.Token
    
    	proc, err := syscall.GetCurrentProcess()
    	if err != nil {
    		return 0, err
    	}
    	defer syscall.CloseHandle(proc)
    
    	err = syscall.OpenProcessToken(proc,
    		syscall.TOKEN_DUPLICATE|
    			syscall.TOKEN_ADJUST_DEFAULT|
    			syscall.TOKEN_QUERY|
    			syscall.TOKEN_ASSIGN_PRIMARY,
    		&procToken)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/netns_linux_test.go

    // limitations under the License.
    
    package nodeagent
    
    import "testing"
    
    func TestOpenNetns(t *testing.T) {
    	ns, err := OpenNetns("/proc/self/ns/net")
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	// the inode for netns is proc dynamic, so it needs to be higher than
    	// #define PROC_DYNAMIC_FIRST 0xF0000000U
    
    	if ns.Inode() < 0xF0000000 {
    		t.Fatalf("unexpected inode: %v", ns.Inode())
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 976 bytes
    - Viewed (0)
  3. test/fixedbugs/issue5963.go

    fatal error: internal lockOSThread error
    
    goroutine 2 [runnable]:
    runtime.MHeap_Scavenger()
    	/Users/rsc/g/go/src/pkg/runtime/mheap.c:438
    runtime.goexit()
    	/Users/rsc/g/go/src/pkg/runtime/proc.c:1313
    created by runtime.main
    	/Users/rsc/g/go/src/pkg/runtime/proc.c:165
    
    goroutine 3 [runnable]:
    main.funcĀ·002()
    	/Users/rsc/g/go/test/fixedbugs/issue5963.go:22
    created by main.initĀ·1
    	/Users/rsc/g/go/test/fixedbugs/issue5963.go:24 +0xb9
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 929 bytes
    - Viewed (0)
  4. internal/net/net.go

    	"github.com/prometheus/procfs"
    )
    
    // GetInterfaceNetStats - get procfs.NetDevLine by interfaceName
    func GetInterfaceNetStats(interf string) (procfs.NetDevLine, error) {
    	proc, err := procfs.Self()
    	if err != nil {
    		return procfs.NetDevLine{}, err
    	}
    	netDev, err := proc.NetDev()
    	if err != nil {
    		return procfs.NetDevLine{}, err
    	}
    	ndl, ok := netDev[interf]
    	if !ok {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jul 17 08:14:01 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  5. pkg/util/procfs/procfs_linux.go

    			pid, err := strconv.Atoi(entry.Name())
    			if err != nil {
    				continue
    			}
    
    			cmdline, err := os.ReadFile(filepath.Join("/proc", entry.Name(), "cmdline"))
    			if err != nil {
    				klog.V(4).Infof("Error reading file %s: %+v", filepath.Join("/proc", entry.Name(), "cmdline"), err)
    				continue
    			}
    
    			// The bytes we read have '\0' as a separator for the command line
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 16 09:22:35 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. internal/mountinfo/mountinfo.go

    package mountinfo
    
    // mountInfo - This represents a single line in /proc/mounts.
    type mountInfo struct {
    	Device  string
    	Path    string
    	FSType  string
    	Options []string
    	Freq    string
    	Pass    string
    }
    
    func (m mountInfo) String() string {
    	return m.Path
    }
    
    // mountInfos - This represents the entire /proc/mounts.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  7. pkg/util/oom/oom_linux.go

    	return oomAdjuster
    }
    
    func getPids(cgroupName string) ([]int, error) {
    	return cmutil.GetPids(filepath.Join("/", cgroupName))
    }
    
    // Writes 'value' to /proc/<pid>/oom_score_adj. PID = 0 means self
    // Returns os.ErrNotExist if the `pid` does not exist.
    func applyOOMScoreAdj(pid int, oomScoreAdj int) error {
    	if pid < 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 07:13:28 UTC 2022
    - 4K bytes
    - Viewed (0)
  8. src/syscall/exec_linux_test.go

    		}
    		t.Fatal(err)
    	}
    }
    
    func TestUnshare(t *testing.T) {
    	path := "/proc/net/dev"
    	if _, err := os.Stat(path); err != nil {
    		if os.IsNotExist(err) {
    			t.Skip("kernel doesn't support proc filesystem")
    		}
    		if os.IsPermission(err) {
    			t.Skip("unable to test proc filesystem due to permissions")
    		}
    		t.Fatal(err)
    	}
    
    	b, err := os.ReadFile(path)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top