Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 888 for proc (0.09 sec)

  1. src/internal/poll/fd_io_plan9.go

    }
    
    // Cancel interrupts the I/O operation, causing
    // the Wait function to return.
    func (aio *asyncIO) Cancel() {
    	aio.mu.Lock()
    	defer aio.mu.Unlock()
    	if aio.pid == -1 {
    		return
    	}
    	f, e := syscall.Open("/proc/"+itoa.Itoa(aio.pid)+"/note", syscall.O_WRONLY)
    	if e != nil {
    		return
    	}
    	syscall.Write(f, []byte("hangup"))
    	syscall.Close(f)
    }
    
    // Wait for the I/O operation to complete.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Mar 14 17:56:50 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  2. src/encoding/pem/pem.go

    		return err
    	}
    
    	if len(b.Headers) > 0 {
    		const procType = "Proc-Type"
    		h := make([]string, 0, len(b.Headers))
    		hasProcType := false
    		for k := range b.Headers {
    			if k == procType {
    				hasProcType = true
    				continue
    			}
    			h = append(h, k)
    		}
    		// The Proc-Type header must be written first.
    		// See RFC 1421, section 4.6.1.1
    		if hasProcType {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/integTest/groovy/org/gradle/language/fixtures/app/DuplicateMixedSameBaseNamesTestApp.groovy

                return """
    .386
    ;.model flat
    .model small,c
    .data
    msg db "fooFromAsm", 10, 0
    .code
    includelib MSVCRT
    extrn printf:near
    extrn exit:NEAR
    public sayFooFromAsm
    sayFooFromAsm proc
    push    offset msg
    call    printf
    mov eax,0
    push eax
    call exit
    sayFooFromAsm endp
    end
    """
            } else {
                return """
    .text
    
    LC0:
    .ascii "fooFromAsm\\12\\0"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/MixedLanguageHelloWorldApp.groovy

        // See: https://github.com/gradle/gradle/issues/3662
        private static String windowsMasmSource = '''
    .386
    .model    flat
    
    INCLUDE <ks386.inc>
    PUBLIC    _sumx
    _TEXT     SEGMENT
    _sumx    PROC
    mov    eax, DWORD PTR 4[esp]
    add    eax, DWORD PTR 8[esp]
    ret    0
    _sumx    ENDP
    _TEXT   ENDS
    END
    '''
    
        private static String i386GnuAsmSource = '''
        .text
        .globl  _sumx
    _sumx:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. pkg/kubelet/winstats/perfcounter_nodestats.go

    	// 2. On Linux node, total physical memory is read from MemTotal in /proc/meminfo.
    	// GlobalMemoryStatusEx returns the amount of physical memory that is available
    	// for the operating system to use. The amount returned by GlobalMemoryStatusEx
    	// is closer in parity with Linux
    	// https://www.kernel.org/doc/Documentation/filesystems/proc.txt
    	var statex MemoryStatusEx
    	statex.Length = uint32(unsafe.Sizeof(statex))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 18:37:21 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. internal/mountinfo/mountinfo_linux_test.go

    	// Success case, where path doesn't have any mounts.
    	{
    		if err = mounts.checkCrossMounts("/path/to/x"); err != nil {
    			t.Fatalf("Expected success, failed instead (%s)", err)
    		}
    	}
    }
    
    // Tests read proc mounts file.
    func TestReadProcmountInfos(t *testing.T) {
    	successCase := `/dev/0 /path/to/0 type0 flags 0 0
    		/dev/1    /path/to/1   type1	flags 1 1
    		/dev/2 /path/to/2 type2 flags,1,2=3 2 2
    		`
    	var err error
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. pkg/util/procfs/procfs_linux_test.go

    	procCgroupEmpty := ""
    	verifyContainerName(procCgroupEmpty, "", true, t)
    
    	content, err := os.ReadFile("example_proc_cgroup")
    	if err != nil {
    		t.Errorf("Could not read example /proc cgroup file")
    	}
    	verifyContainerName(string(content), "/user/1000.user/c1.session", false, t)
    
    	procCgroupNoDevice := "2:freezer:docker/kubelet\n5:cpuacct:pkg/kubectl"
    	verifyContainerName(procCgroupNoDevice, "", true, t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 07:13:28 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  8. src/syscall/mksyscall_libc.pl

    	if($dynimports !~ /\s+${sysvarname}\s+/) {
    		$dynimports .= "//go:cgo_import_dynamic ${sysvarname} ${sysname} \"$modname\"\n";
    		# Link symbol to proc address variable.
    		$linknames .= "//go:linkname ${sysvarname} ${sysvarname}\n";
    		# Library proc address variable.
    		push @vars, $sysvarname;
    	}
    
    	# Go function header.
    	$out = join(', ', @out);
    	if($out ne "") {
    		$out = " ($out)";
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 11:28:51 UTC 2023
    - 8K bytes
    - Viewed (0)
  9. src/runtime/runtime-gdb_unix_test.go

    	}
    
    	// Make sure core pattern will send core to the current directory.
    	b, err := os.ReadFile("/proc/sys/kernel/core_pattern")
    	if err != nil {
    		t.Fatalf("error reading core_pattern: %v", err)
    	}
    	if string(b) != "core\n" {
    		t.Skipf("Unexpected core pattern %q", string(b))
    	}
    
    	coreUsesPID := false
    	b, err = os.ReadFile("/proc/sys/kernel/core_uses_pid")
    	if err == nil {
    		switch string(bytes.TrimSpace(b)) {
    		case "0":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 17 19:05:30 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  10. src/runtime/traceruntime.go

    }
    
    // Gomaxprocs emits a ProcsChange event.
    func (tl traceLocker) Gomaxprocs(procs int32) {
    	tl.eventWriter(traceGoRunning, traceProcRunning).commit(traceEvProcsChange, traceArg(procs), tl.stack(1))
    }
    
    // ProcStart traces a ProcStart event.
    //
    // Must be called with a valid P.
    func (tl traceLocker) ProcStart() {
    	pp := tl.mp.p.ptr()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 25.7K bytes
    - Viewed (0)
Back to top