Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for prlimit1 (0.13 sec)

  1. src/syscall/syscall_linux.go

    //sys	Munlockall() (err error)
    
    // prlimit changes a resource limit. We use a single definition so that
    // we can tell StartProcess to not restore the original NOFILE limit.
    //
    // golang.org/x/sys linknames prlimit.
    // Do not remove or change the type signature.
    //
    //go:linkname prlimit
    func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {
    	err = prlimit1(pid, resource, newlimit, old)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  2. src/syscall/rlimit.go

    // which Go of course has no choice but to respect.
    func init() {
    	var lim Rlimit
    	if err := Getrlimit(RLIMIT_NOFILE, &lim); err == nil && lim.Cur != lim.Max {
    		origRlimitNofile.Store(&lim)
    		nlim := lim
    		nlim.Cur = nlim.Max
    		adjustFileLimit(&nlim)
    		setrlimit(RLIMIT_NOFILE, &nlim)
    	}
    }
    
    func Setrlimit(resource int, rlim *Rlimit) error {
    	if resource == RLIMIT_NOFILE {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:57 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. src/syscall/syscall_linux_test.go

    		origRlimitNofile.Store(&syscall.Rlimit{
    			Cur: 1024,
    			Max: 65536,
    		})
    	}
    
    	// Get current process's nofile limit
    	var lim syscall.Rlimit
    	if err := syscall.Prlimit(0, syscall.RLIMIT_NOFILE, nil, &lim); err != nil {
    		t.Fatalf("Failed to get the current nofile limit: %v", err)
    	}
    	// Set current process's nofile limit through prlimit
    	if err := syscall.Prlimit(0, syscall.RLIMIT_NOFILE, &lim, nil); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23K bytes
    - Viewed (0)
  4. cmd/server-rlimit.go

    Harshavardhana <******@****.***> 1717070292 -0700
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 11:58:12 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. src/syscall/export_linux_test.go

    // license that can be found in the LICENSE file.
    
    package syscall
    
    import (
    	"unsafe"
    )
    
    var (
    	RawSyscallNoError = rawSyscallNoError
    	ForceClone3       = &forceClone3
    	Prlimit           = prlimit
    )
    
    const (
    	Sys_GETEUID = sys_GETEUID
    )
    
    func Tcgetpgrp(fd int) (pgid int32, err error) {
    	_, _, errno := Syscall6(SYS_IOCTL, uintptr(fd), uintptr(TIOCGPGRP), uintptr(unsafe.Pointer(&pgid)), 0, 0, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:18:19 UTC 2024
    - 775 bytes
    - Viewed (0)
  6. src/syscall/export_rlimit_test.go

    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package syscall
    
    import "sync/atomic"
    
    func OrigRlimitNofile() *Rlimit {
    	return origRlimitNofile.Load()
    }
    
    func GetInternalOrigRlimitNofile() *atomic.Pointer[Rlimit] {
    	return &origRlimitNofile
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:18:19 UTC 2024
    - 374 bytes
    - Viewed (0)
  7. pkg/test/framework/components/echo/kube/templates/vm_deployment.yaml

                  echo "Envoy isn't running yet, trying again..."
                  pgrep -u istio-proxy envoy
                  sleep .1
                done
                pid="$(pgrep -u istio-proxy envoy)"
                sudo prlimit -p "${pid}" --core=unlimited
              }
              # To support image builders which cannot do RUN, do the run commands at startup.
              # This exploits the fact the images remove the installer once its installed.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 03 19:29:42 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go

    func enter_Prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {
    	funcref := get_PrlimitAddr()
    	if funcptrtest(GetZosLibVec()+SYS_PRLIMIT<<4, "") == 0 {
    		*funcref = impl_Prlimit
    	} else {
    		*funcref = error_Prlimit
    	}
    	return (*funcref)(pid, resource, newlimit, old)
    }
    
    func error_Prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {
    	err = ENOSYS
    	return
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 88.2K bytes
    - Viewed (0)
  9. src/syscall/syscall_darwin.go

    //sysnb	Getpgid(pid int) (pgid int, err error)
    //sysnb	Getpgrp() (pgrp int)
    //sysnb	Getpid() (pid int)
    //sysnb	Getppid() (ppid int)
    //sys	Getpriority(which int, who int) (prio int, err error)
    //sysnb	Getrlimit(which int, lim *Rlimit) (err error)
    //sysnb	Getrusage(who int, rusage *Rusage) (err error)
    //sysnb	Getsid(pid int) (sid int, err error)
    //sysnb	Getuid() (uid int)
    //sysnb	Issetugid() (tainted bool)
    //sys	Kqueue() (fd int, err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/zsymaddr_zos_s390x.s

    	MOVD $·Prctl(SB), R8
    	MOVD R8, ret+0(FP)
    	RET
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    TEXT ·get_PrlimitAddr(SB), NOSPLIT|NOFRAME, $0-8
    	MOVD $·Prlimit(SB), R8
    	MOVD R8, ret+0(FP)
    	RET
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    TEXT ·get_RenameatAddr(SB), NOSPLIT|NOFRAME, $0-8
    	MOVD $·Renameat(SB), R8
    	MOVD R8, ret+0(FP)
    	RET
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top