Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 162 for setrlimit (0.25 sec)

  1. api/go1.2.txt

    pkg syscall (freebsd-386-cgo), func Setpriority(int, int, int) error
    pkg syscall (freebsd-386-cgo), func Setregid(int, int) error
    pkg syscall (freebsd-386-cgo), func Setreuid(int, int) error
    pkg syscall (freebsd-386-cgo), func Setrlimit(int, *Rlimit) error
    pkg syscall (freebsd-386-cgo), func Setsid() (int, error)
    pkg syscall (freebsd-386-cgo), func SetsockoptByte(int, int, int, uint8) error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 18 04:36:59 UTC 2013
    - 1.9M bytes
    - Viewed (0)
  2. src/cmd/go/internal/base/limit.go

    	"runtime"
    	"strconv"
    	"sync"
    )
    
    var NetLimitGodebug = godebug.New("#cmdgonetlimit")
    
    // NetLimit returns the limit on concurrent network operations
    // configured by GODEBUG=cmdgonetlimit, if any.
    //
    // A limit of 0 (indicated by 0, true) means that network operations should not
    // be allowed.
    func NetLimit() (int, bool) {
    	netLimitOnce.Do(func() {
    		s := NetLimitGodebug.Value()
    		if s == "" {
    			return
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 02:47:12 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sync/errgroup/errgroup.go

    		}
    	}()
    	return true
    }
    
    // SetLimit limits the number of active goroutines in this group to at most n.
    // A negative value indicates no limit.
    //
    // Any subsequent call to the Go method will block until it can add an active
    // goroutine without exceeding the configured limit.
    //
    // The limit must not be modified while any goroutines in the group are active.
    func (g *Group) SetLimit(n int) {
    	if n < 0 {
    		g.sem = nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_ppc.go

    	Cur uint32
    	Max uint32
    }
    
    //sysnb	getrlimit(resource int, rlim *rlimit32) (err error) = SYS_UGETRLIMIT
    
    const rlimInf32 = ^uint32(0)
    const rlimInf64 = ^uint64(0)
    
    func Getrlimit(resource int, rlim *Rlimit) (err error) {
    	err = Prlimit(0, resource, nil, rlim)
    	if err != ENOSYS {
    		return err
    	}
    
    	rl := rlimit32{}
    	err = getrlimit(resource, &rl)
    	if err != nil {
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go

    type rlimit32 struct {
    	Cur uint32
    	Max uint32
    }
    
    //sysnb	getrlimit(resource int, rlim *rlimit32) (err error) = SYS_GETRLIMIT
    
    func Getrlimit(resource int, rlim *Rlimit) (err error) {
    	err = Prlimit(0, resource, nil, rlim)
    	if err != ENOSYS {
    		return err
    	}
    
    	rl := rlimit32{}
    	err = getrlimit(resource, &rl)
    	if err != nil {
    		return
    	}
    
    	if rl.Cur == rlimInf32 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_arm.go

    	Cur uint32
    	Max uint32
    }
    
    //sysnb	getrlimit(resource int, rlim *rlimit32) (err error) = SYS_UGETRLIMIT
    
    const rlimInf32 = ^uint32(0)
    const rlimInf64 = ^uint64(0)
    
    func Getrlimit(resource int, rlim *Rlimit) (err error) {
    	err = Prlimit(0, resource, nil, rlim)
    	if err != ENOSYS {
    		return err
    	}
    
    	rl := rlimit32{}
    	err = getrlimit(resource, &rl)
    	if err != nil {
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go

    // Copyright 2018 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 aix && ppc
    
    package unix
    
    //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error) = getrlimit64
    //sys	Seek(fd int, offset int64, whence int) (off int64, err error) = lseek64
    
    //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. src/net/rlimit_unix.go

    // apply the same limit to DNS lookups run directly from Go, because
    // there we will return a meaningful "too many open files" error.
    func concurrentThreadsLimit() int {
    	var rlim syscall.Rlimit
    	if err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &rlim); err != nil {
    		return 500
    	}
    	r := rlim.Cur
    	if r > 500 {
    		r = 500
    	} else if r > 30 {
    		r -= 30
    	}
    	return int(r)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_386.go

    type rlimit32 struct {
    	Cur uint32
    	Max uint32
    }
    
    //sysnb	getrlimit(resource int, rlim *rlimit32) (err error) = SYS_GETRLIMIT
    
    const rlimInf32 = ^uint32(0)
    const rlimInf64 = ^uint64(0)
    
    func Getrlimit(resource int, rlim *Rlimit) (err error) {
    	err = Prlimit(0, resource, nil, rlim)
    	if err != ENOSYS {
    		return err
    	}
    
    	rl := rlimit32{}
    	err = getrlimit(resource, &rl)
    	if err != nil {
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  10. src/syscall/asm_solaris_amd64.s

    TEXT ·RawSyscall6(SB),NOSPLIT,$0
    	JMP	runtime·syscall_rawsyscall6(SB)
    
    TEXT ·setgid(SB),NOSPLIT,$0
    	JMP	runtime·syscall_setgid(SB)
    
    TEXT ·setgroups1(SB),NOSPLIT,$0
    	JMP	runtime·syscall_setgroups(SB)
    
    TEXT ·setrlimit1(SB),NOSPLIT,$0
    	JMP	runtime·syscall_setrlimit(SB)
    
    TEXT ·setsid(SB),NOSPLIT,$0
    	JMP	runtime·syscall_setsid(SB)
    
    TEXT ·setuid(SB),NOSPLIT,$0
    	JMP	runtime·syscall_setuid(SB)
    
    TEXT ·setpgid(SB),NOSPLIT,$0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 15 17:21:30 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top