Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 411 for getgid (0.07 sec)

  1. src/runtime/testdata/testprog/syscalls_linux.go

    }
    
    func getcwd() (string, error) {
    	if !syscall.ImplementsGetwd {
    		return "", nil
    	}
    	// Use the syscall to get the current working directory.
    	// This is imperative for checking for OS thread state
    	// after an unshare since os.Getwd might just check the
    	// environment, or use some other mechanism.
    	var buf [4096]byte
    	n, err := syscall.Getcwd(buf[:])
    	if err != nil {
    		return "", err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. cluster/gce/gci/apiserver_kms_test.go

    			defer c.tearDown()
    
    			e := kubeAPIServerEnv{
    				KubeHome:                     c.kubeHome,
    				KubeAPIServerRunAsUser:       strconv.Itoa(os.Getuid()),
    				EncryptionProviderConfigPath: filepath.Join(c.kubeHome, "encryption-provider-config.yaml"),
    				EncryptionProviderConfig:     tc.encryptionProviderConfig,
    			}
    
    			c.mustInvokeFunc(
    				e,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 30 06:23:50 UTC 2021
    - 6.3K bytes
    - Viewed (0)
  3. src/runtime/sys_linux_loong64.s

    	//MOVW	R4, R4	// arg 1 pid
    	MOVW	sig+0(FP), R5	// arg 2
    	MOVV	$SYS_kill, R11
    	SYSCALL
    	RET
    
    // func getpid() int
    TEXT ·getpid(SB),NOSPLIT|NOFRAME,$0-8
    	MOVV	$SYS_getpid, R11
    	SYSCALL
    	MOVV	R4, ret+0(FP)
    	RET
    
    // func tgkill(tgid, tid, sig int)
    TEXT ·tgkill(SB),NOSPLIT|NOFRAME,$0-24
    	MOVV	tgid+0(FP), R4
    	MOVV	tid+8(FP), R5
    	MOVV	sig+16(FP), R6
    	MOVV	$SYS_tgkill, R11
    	SYSCALL
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 20:58:13 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/testdata/deadcode/globalmap.go

    package main
    
    import "os"
    
    // Too small to trigger deadcode (currently)
    var small = map[string]int{"foo": 1}
    
    // Has side effects, which prevent deadcode
    var effect = map[string]int{"foo": os.Getpid()}
    
    // Large and side-effect free
    var large = map[string]int{
    	"11": 1, "12": 2, "13": 3, "14": 4, "15": 5, "16": 6, "17": 7, "18": 8, "19": 9, "110": 10,
    	"21": 1, "22": 2, "23": 3, "24": 4, "25": 5, "26": 6, "27": 7, "28": 8, "29": 9, "210": 10,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 20:56:47 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  5. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/PidInstrumentation.groovy

        private final File pidFileInitScript = createPidFileInitScript(pidFile)
    
        List<String> getGradleArgs() {
            ["--init-script", pidFileInitScript.absolutePath]
        }
    
        String getPid() {
            pidFile.text
        }
    
        private static File createPidFile() {
            def pidFile = File.createTempFile("build-under-test", ".pid")
            pidFile.deleteOnExit()
            pidFile
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. test/sigchld.go

    // license that can be found in the LICENSE file.
    
    // Test that a program can survive SIGCHLD.
    
    package main
    
    import "syscall"
    
    func main() {
    	syscall.Kill(syscall.Getpid(), syscall.SIGCHLD)
    	println("survived SIGCHLD")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 381 bytes
    - Viewed (0)
  7. src/runtime/testdata/testprog/segv.go

    	register("Segv", Segv)
    }
    
    var Sum int
    
    func Segv() {
    	c := make(chan bool)
    	go func() {
    		close(c)
    		for i := 0; ; i++ {
    			Sum += i
    		}
    	}()
    
    	<-c
    
    	syscall.Kill(syscall.Getpid(), syscall.SIGSEGV)
    
    	// Wait for the OS to deliver the signal.
    	select {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 05 15:24:08 UTC 2023
    - 479 bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/testdata/issue39256/x.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	_ "unsafe"
    )
    
    //go:cgo_import_dynamic libc_getpid getpid "libc.so"
    //go:cgo_import_dynamic libc_kill kill "libc.so"
    //go:cgo_import_dynamic libc_close close "libc.so"
    //go:cgo_import_dynamic libc_open open "libc.so"
    
    //go:cgo_import_dynamic _ _ "libc.so"
    
    func trampoline()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 16 18:39:54 UTC 2020
    - 489 bytes
    - Viewed (0)
  9. src/os/executable_plan9.go

    // license that can be found in the LICENSE file.
    
    //go:build plan9
    
    package os
    
    import (
    	"internal/itoa"
    	"syscall"
    )
    
    func executable() (string, error) {
    	fn := "/proc/" + itoa.Itoa(Getpid()) + "/text"
    	f, err := Open(fn)
    	if err != nil {
    		return "", err
    	}
    	defer f.Close()
    	return syscall.Fd2path(int(f.Fd()))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 427 bytes
    - Viewed (0)
  10. src/runtime/testdata/testprog/syscalls_none.go

    // license that can be found in the LICENSE file.
    
    //go:build !linux
    // +build !linux
    
    package main
    
    func gettid() int {
    	return 0
    }
    
    func tidExists(tid int) (exists, supported bool, err error) {
    	return false, false, nil
    }
    
    func getcwd() (string, error) {
    	return "", nil
    }
    
    func unshareFs() error {
    	return nil
    }
    
    func chdir(path string) error {
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 471 bytes
    - Viewed (0)
Back to top