Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 145 for Getgid (0.32 sec)

  1. 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)
  2. src/runtime/testdata/testprog/syscalls_none.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // 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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 471 bytes
    - Viewed (0)
  3. src/runtime/testdata/testprogcgo/segv.go

    func init() {
    	register("SegvInCgo", SegvInCgo)
    }
    
    func SegvInCgo() {
    	c := make(chan bool)
    	go func() {
    		close(c)
    		for {
    			C.nop()
    		}
    	}()
    
    	<-c
    
    	syscall.Kill(syscall.Getpid(), syscall.SIGSEGV)
    
    	// Wait for the OS to deliver the signal.
    	C.pause()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 05 15:24:08 UTC 2023
    - 525 bytes
    - Viewed (0)
  4. pkg/util/procfs/procfs_linux_test.go

    		t.Skipf("not supported on GOOS=%s", runtime.GOOS)
    	}
    	pids, err := PidOf(filepath.Base(os.Args[0]))
    	assert.Empty(t, err)
    	assert.NotZero(t, pids)
    	assert.Contains(t, pids, os.Getpid())
    }
    
    func TestPKill(t *testing.T) {
    	if runtime.GOOS == "darwin" || runtime.GOOS == "windows" {
    		t.Skipf("not supported on GOOS=%s", runtime.GOOS)
    	}
    	sig := syscall.SIGCONT
    	c := make(chan os.Signal, 1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 07:13:28 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  5. src/runtime/testdata/testprognet/signal.go

    import (
    	"os/signal"
    	"syscall"
    )
    
    func init() {
    	register("SignalIgnoreSIGTRAP", SignalIgnoreSIGTRAP)
    }
    
    func SignalIgnoreSIGTRAP() {
    	signal.Ignore(syscall.SIGTRAP)
    	syscall.Kill(syscall.Getpid(), syscall.SIGTRAP)
    	println("OK")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 646 bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/test_fuzz_fuzztime.txt

    func FuzzFast(f *testing.F) {
    	f.Fuzz(func (*testing.T, []byte) {})
    }
    -- fuzz_count_test.go --
    package fuzz
    
    import (
    	"fmt"
    	"os"
    	"testing"
    )
    
    func FuzzTestCount(f *testing.F) {
    	pid := os.Getpid()
    	n := 0
    	f.Fuzz(func(t *testing.T, _ []byte) {
    		name := fmt.Sprintf("count/%v.%d", pid, n)
    		if err := os.WriteFile(name, nil, 0666); err != nil {
    			t.Fatal(err)
    		}
    		n++
    	})
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 20:09:52 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/caching_authorizer.go

    	GetPath() string
    })(nil)
    
    // The user info accessors known to cache key construction. If this fails to compile, the cache
    // implementation may need to be updated.
    var _ user.Info = (interface {
    	GetName() string
    	GetUID() string
    	GetGroups() []string
    	GetExtra() map[string][]string
    })(nil)
    
    // Authorize returns an authorization decision by delegating to another Authorizer. If an equivalent
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. 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)
  9. src/main/java/jcifs/smb/DirFileEntryEnumIterator1.java

                        th.getConfig().getListSize() - FIND_OVERHEAD),
                    this.response);
    
                this.nextRequest = new Trans2FindNext2(
                    th.getConfig(),
                    this.response.getSid(),
                    this.response.getResumeKey(),
                    this.response.getLastName(),
                    th.getConfig().getListCount(),
                    th.getConfig().getListSize() - FIND_OVERHEAD);
            }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sat Nov 13 15:13:49 UTC 2021
    - 5.3K bytes
    - Viewed (0)
  10. src/os/types.go

    	ModeNamedPipe  = fs.ModeNamedPipe  // p: named pipe (FIFO)
    	ModeSocket     = fs.ModeSocket     // S: Unix domain socket
    	ModeSetuid     = fs.ModeSetuid     // u: setuid
    	ModeSetgid     = fs.ModeSetgid     // g: setgid
    	ModeCharDevice = fs.ModeCharDevice // c: Unix character device, when ModeDevice is set
    	ModeSticky     = fs.ModeSticky     // t: sticky
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top