Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 73 for Getgid (0.2 sec)

  1. src/internal/coverage/cfile/emit.go

    // of a test coverage run. If updates the 'cfname' and 'cf' fields in
    // 's', returning an error if something went wrong.
    func (s *emitState) openCounterFile(metaHash [16]byte) error {
    	processID := os.Getpid()
    	fn := fmt.Sprintf(coverage.CounterFileTempl, coverage.CounterFilePref, metaHash, processID, time.Now().UnixNano())
    	s.cfname = filepath.Join(s.outdir, fn)
    	s.cftmp = filepath.Join(s.outdir, "tmp."+fn)
    	var err error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  2. src/runtime/sys_darwin.go

    //go:cgo_import_dynamic libc_pthread_sigmask pthread_sigmask "/usr/lib/libSystem.B.dylib"
    //go:cgo_import_dynamic libc_sigaltstack sigaltstack "/usr/lib/libSystem.B.dylib"
    //go:cgo_import_dynamic libc_getpid getpid "/usr/lib/libSystem.B.dylib"
    //go:cgo_import_dynamic libc_kill kill "/usr/lib/libSystem.B.dylib"
    //go:cgo_import_dynamic libc_setitimer setitimer "/usr/lib/libSystem.B.dylib"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  3. src/runtime/sys_linux_ppc64x.s

    	SYSCALL	$SYS_getpid
    	MOVW	R3, R3	// arg 1 pid
    	MOVW	sig+0(FP), R4	// arg 2
    	SYSCALL	$SYS_kill
    	RET
    
    TEXT ·getpid(SB),NOSPLIT|NOFRAME,$0-8
    	SYSCALL $SYS_getpid
    	MOVD	R3, ret+0(FP)
    	RET
    
    TEXT ·tgkill(SB),NOSPLIT|NOFRAME,$0-24
    	MOVD	tgid+0(FP), R3
    	MOVD	tid+8(FP), R4
    	MOVD	sig+16(FP), R5
    	SYSCALL $SYS_tgkill
    	RET
    
    TEXT runtime·setitimer(SB),NOSPLIT|NOFRAME,$0-24
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  4. src/os/exec/exec_test.go

    // (and thus cannot run as an ordinary Test function, since the testing
    // package monkey-patches those variables before running tests).
    func TestMain(m *testing.M) {
    	flag.Parse()
    
    	pid := os.Getpid()
    	if os.Getenv("GO_EXEC_TEST_PID") == "" {
    		os.Setenv("GO_EXEC_TEST_PID", strconv.Itoa(pid))
    
    		if runtime.GOOS == "windows" {
    			// Normalize environment so that test behavior is consistent.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  5. src/cmd/go/internal/fsys/fsys.go

    func Trace(op, path string) {
    	if !doTrace {
    		return
    	}
    	traceMu.Lock()
    	defer traceMu.Unlock()
    	fmt.Fprintf(traceFile, "%d gofsystrace %s %s\n", os.Getpid(), op, path)
    	if pattern := gofsystracestack.Value(); pattern != "" {
    		if match, _ := pathpkg.Match(pattern, path); match {
    			traceFile.Write(debug.Stack())
    		}
    	}
    }
    
    var (
    	doTrace   bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:35:34 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go

    		if err != nil {
    			return nil, err
    		}
    		return nil, errors.NewConflict(p.resource.GroupResource(), p.name, fmt.Errorf("uid mismatch: the provided object specified uid %s, and no existing object was found", accessor.GetUID()))
    	}
    
    	// if this object supports namespace info
    	if objectMeta, err := meta.Accessor(objToUpdate); err == nil {
    		// ensure namespace on the object is correct, or error if a conflicting namespace was set in the object
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  7. pilot/cmd/pilot-agent/status/server.go

    		return
    	}
    	_, err = w.Write(b)
    	if err != nil {
    		w.WriteHeader(http.StatusInternalServerError)
    	}
    }
    
    // notifyExit sends SIGTERM to itself
    func notifyExit() {
    	p, err := os.FindProcess(os.Getpid())
    	if err != nil {
    		log.Error(err)
    	}
    	if err := p.Signal(syscall.SIGTERM); err != nil {
    		log.Errorf("failed to send SIGTERM to self: %v", err)
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  8. src/os/os_windows_test.go

    	}
    }
    
    func TestNetworkSymbolicLink(t *testing.T) {
    	testenv.MustHaveSymlink(t)
    
    	const _NERR_ServerNotStarted = syscall.Errno(2114)
    
    	dir := t.TempDir()
    	chdir(t, dir)
    
    	pid := os.Getpid()
    	shareName := fmt.Sprintf("GoSymbolicLinkTestShare%d", pid)
    	sharePath := filepath.Join(dir, shareName)
    	testDir := "TestDir"
    
    	err := os.MkdirAll(filepath.Join(sharePath, testDir), 0777)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  9. src/net/http/fs_test.go

    	if err := testenv.Command(t, "strace", "-f", "-q", os.Args[0], "-test.run=^$").Run(); err != nil {
    		t.Skipf("skipping; failed to run strace: %v", err)
    	}
    
    	filename := fmt.Sprintf("1kb-%d", os.Getpid())
    	filepath := path.Join(os.TempDir(), filename)
    
    	if err := os.WriteFile(filepath, bytes.Repeat([]byte{'a'}, 1<<10), 0755); err != nil {
    		t.Fatal(err)
    	}
    	defer os.Remove(filepath)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  10. src/cmd/dist/test.go

    			fatalf("unknown test %q", name)
    		}
    	}
    
    	// On a few builders, make GOROOT unwritable to catch tests writing to it.
    	if strings.HasPrefix(os.Getenv("GO_BUILDER_NAME"), "linux-") {
    		if os.Getuid() == 0 {
    			// Don't bother making GOROOT unwritable:
    			// we're running as root, so permissions would have no effect.
    		} else {
    			xatexit(t.makeGOROOTUnwritable())
    		}
    	}
    
    	if !t.json {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
Back to top