Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 39 of 39 for getgid (0.16 sec)

  1. src/net/http/cgi/cgi_main.go

    	}
    
    	params := req.Form
    	if params.Get("loc") != "" {
    		fmt.Printf("Location: %s\r\n\r\n", params.Get("loc"))
    		return
    	}
    
    	fmt.Printf("Content-Type: text/html\r\n")
    	fmt.Printf("X-CGI-Pid: %d\r\n", os.Getpid())
    	fmt.Printf("X-Test-Header: X-Test-Value\r\n")
    	fmt.Printf("\r\n")
    
    	if params.Get("writestderr") != "" {
    		fmt.Fprintf(os.Stderr, "Hello, stderr!\n")
    	}
    
    	if params.Get("bigresponse") != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. src/runtime/write_err_android.go

    	//      hdr[7:11] nsec unsigned uint32, little endian.
    	hdr[0] = 0 // LOG_ID_MAIN
    	sec, nsec, _ := time_now()
    	packUint32(hdr[3:7], uint32(sec))
    	packUint32(hdr[7:11], uint32(nsec))
    
    	// TODO(hakim):  hdr[1:2] = gettid?
    
    	return 11 + len(writeHeader)
    }
    
    func packUint32(b []byte, v uint32) {
    	// little-endian.
    	b[0] = byte(v)
    	b[1] = byte(v >> 8)
    	b[2] = byte(v >> 16)
    	b[3] = byte(v >> 24)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. src/os/pidfd_linux.go

    // seccomp or a similar technology.
    func checkPidfd() error {
    	// Get a pidfd of the current process (opening of "/proc/self" won't
    	// work for waitid).
    	fd, err := unix.PidFDOpen(syscall.Getpid(), 0)
    	if err != nil {
    		return NewSyscallError("pidfd_open", err)
    	}
    	defer syscall.Close(int(fd))
    
    	// Check waitid(P_PIDFD) works.
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. src/os/user/cgo_lookup_unix.go

    package user
    
    import (
    	"fmt"
    	"runtime"
    	"strconv"
    	"strings"
    	"syscall"
    	"unsafe"
    )
    
    func current() (*User, error) {
    	return lookupUnixUid(syscall.Getuid())
    }
    
    func lookupUser(username string) (*User, error) {
    	var pwd _C_struct_passwd
    	var found bool
    	nameC := make([]byte, len(username)+1)
    	copy(nameC, username)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:08:14 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. cluster/addons/dns/kube-dns/kube-dns.yaml.base

              mountPath: /etc/k8s/dns/dnsmasq-nanny
            securityContext:
              capabilities:
                drop:
                  - all
                add:
                  - NET_BIND_SERVICE
                  - SETGID
          - name: sidecar
            image: registry.k8s.io/dns/k8s-dns-sidecar:1.23.1
            livenessProbe:
              httpGet:
                path: /metrics
                port: 10054
                scheme: HTTP
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 03:19:02 UTC 2024
    - 7K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/telemetry/internal/upload/run.go

    	if progVers == "(devel)" { // avoid special characters in created file names
    		progVers = "devel"
    	}
    	logBase := strings.ReplaceAll(
    		fmt.Sprintf("%s-%s-%s-%4d%02d%02d-%d.log", prog, progVers, goVers, year, month, day, os.Getpid()),
    		" ", "")
    	fname := filepath.Join(debugDir, logBase)
    	if _, err := os.Stat(fname); err == nil {
    		// This process previously called upload.Run
    		return nil, nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:12:15 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. src/runtime/pprof/vminfo_darwin_test.go

    		}
    		if !retryable {
    			return 0, 0, err
    		}
    		t.Logf("retrying vmmap after error: %v", err)
    	}
    }
    
    func useVMMap(t *testing.T) (hi, lo uint64, retryable bool, err error) {
    	pid := strconv.Itoa(os.Getpid())
    	testenv.MustHaveExecPath(t, "vmmap")
    	cmd := testenv.Command(t, "vmmap", pid)
    	out, cmdErr := cmd.Output()
    	if cmdErr != nil {
    		t.Logf("vmmap output: %s", out)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 19:59:50 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. src/os/path_windows_test.go

    		}
    		dir.Close()
    	}
    }
    
    func testMkdirAllAtRoot(t *testing.T, root string) {
    	// Create a unique-enough directory name in root.
    	base := fmt.Sprintf("%s-%d", t.Name(), os.Getpid())
    	path := filepath.Join(root, base)
    	if err := os.MkdirAll(path, 0777); err != nil {
    		t.Fatalf("MkdirAll(%q) failed: %v", path, err)
    	}
    	// Clean up
    	if err := os.RemoveAll(path); err != nil {
    		t.Fatal(err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:37:32 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. src/runtime/sys_openbsd2.go

    //go:cgo_import_dynamic libc_usleep usleep "libc.so"
    //go:cgo_import_dynamic libc_sysctl sysctl "libc.so"
    //go:cgo_import_dynamic libc_fcntl fcntl "libc.so"
    //go:cgo_import_dynamic libc_getpid getpid "libc.so"
    //go:cgo_import_dynamic libc_kill kill "libc.so"
    //go:cgo_import_dynamic libc_kqueue kqueue "libc.so"
    //go:cgo_import_dynamic libc_kevent kevent "libc.so"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top