Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 164 for getrlimit (0.26 sec)

  1. pkg/util/rlimit/rlimit_unsupported.go

    limitations under the License.
    */
    
    package rlimit
    
    import (
    	"errors"
    )
    
    // SetNumFiles sets the rlimit for the maximum open files.
    func SetNumFiles(maxOpenFiles uint64) error {
    	return errors.New("SetRLimit unsupported in this platform")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 813 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/runtime/syscall2_solaris.go

    //go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
    //go:cgo_import_dynamic libc_setgid setgid "libc.so"
    //go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
    //go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so"
    //go:cgo_import_dynamic libc_setsid setsid "libc.so"
    //go:cgo_import_dynamic libc_setuid setuid "libc.so"
    //go:cgo_import_dynamic libc_setpgid setpgid "libc.so"
    //go:cgo_import_dynamic libc_syscall syscall "libc.so"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. pkg/util/rlimit/rlimit_linux.go

    limitations under the License.
    */
    
    package rlimit
    
    import (
    	"golang.org/x/sys/unix"
    )
    
    // SetNumFiles sets the linux rlimit for the maximum open files.
    func SetNumFiles(maxOpenFiles uint64) error {
    	return unix.Setrlimit(unix.RLIMIT_NOFILE, &unix.Rlimit{Max: maxOpenFiles, Cur: maxOpenFiles})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 866 bytes
    - Viewed (0)
  5. api/go1.2.txt

    pkg syscall (freebsd-386-cgo), func Getpgid(int) (int, error)
    pkg syscall (freebsd-386-cgo), func Getpgrp() int
    pkg syscall (freebsd-386-cgo), func Getpriority(int, int) (int, error)
    pkg syscall (freebsd-386-cgo), func Getrlimit(int, *Rlimit) error
    pkg syscall (freebsd-386-cgo), func Getrusage(int, *Rusage) error
    pkg syscall (freebsd-386-cgo), func Getsid(int) (int, error)
    pkg syscall (freebsd-386-cgo), func Getsockname(int) (Sockaddr, 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)
  6. 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)
  7. 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)
  8. platforms/jvm/jacoco/src/main/java/org/gradle/testing/jacoco/tasks/rules/JacocoViolationRule.java

         */
        @Input
        List<String> getExcludes();
    
        /**
         * Gets all limits defined for this rule. Defaults to an empty list.
         */
        @Input
        List<JacocoLimit> getLimits();
    
        /**
         * Adds a limit for this rule. Any number of limits can be added.
         */
        JacocoLimit limit(Action<? super JacocoLimit> configureAction);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 16:03:36 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/syscall_unix.go

    	for i := range iov {
    		if iov[i].Len > 0 {
    			return false
    		}
    	}
    	return true
    }
    
    // Setrlimit sets a resource limit.
    func Setrlimit(resource int, rlim *Rlimit) error {
    	// Just call the syscall version, because as of Go 1.21
    	// it will affect starting a new process.
    	return syscall.Setrlimit(resource, (*syscall.Rlimit)(rlim))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  10. platforms/jvm/jacoco/src/main/java/org/gradle/internal/jacoco/rules/JacocoViolationRuleImpl.java

            this.excludes = excludes;
        }
    
        @Override
        public List<String> getExcludes() {
            return Collections.unmodifiableList(excludes);
        }
    
        @Override
        public List<JacocoLimit> getLimits() {
            return Collections.unmodifiableList(limits);
        }
    
        @Override
        public JacocoLimit limit(Action<? super JacocoLimit> configureAction) {
            JacocoLimit limit = new JacocoLimitImpl();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 16:03:36 UTC 2023
    - 3.5K bytes
    - Viewed (0)
Back to top