Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 630 for prlimit (0.11 sec)

  1. docs_src/dependencies/tutorial003_an_py39.py

            self.q = q
            self.skip = skip
            self.limit = limit
    
    
    @app.get("/items/")
    async def read_items(commons: Annotated[Any, Depends(CommonQueryParams)]):
        response = {}
        if commons.q:
            response.update({"q": commons.q})
        items = fake_items_db[commons.skip : commons.skip + commons.limit]
        response.update({"items": items})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 668 bytes
    - Viewed (0)
  2. src/cmd/gofmt/gofmt.go

    //
    // For now, this is arbitrarily set to 200, based on the observation that many
    // platforms default to a kernel limit of 256. Ideally, perhaps we should derive
    // it from rlimit on platforms that support that system call.
    //
    // File descriptors opened from outside of this package are not tracked,
    // so this limit may be approximate.
    var fdSem = make(chan bool, 200)
    
    var (
    	rewrite    func(*token.FileSet, *ast.File) *ast.File
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go

    	Isrss    int32
    	Minflt   int32
    	Majflt   int32
    	Nswap    int32
    	Inblock  int32
    	Oublock  int32
    	Msgsnd   int32
    	Msgrcv   int32
    	Nsignals int32
    	Nvcsw    int32
    	Nivcsw   int32
    }
    
    type Rlimit struct {
    	Cur uint64
    	Max uint64
    }
    
    type _Gid_t uint32
    
    type Stat_t struct {
    	Dev     uint64
    	Mode    uint32
    	Ino     uint64
    	Nlink   uint32
    	Uid     uint32
    	Gid     uint32
    	Rdev    uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/ztypes_openbsd_riscv64.go

    	Isrss    int64
    	Minflt   int64
    	Majflt   int64
    	Nswap    int64
    	Inblock  int64
    	Oublock  int64
    	Msgsnd   int64
    	Msgrcv   int64
    	Nsignals int64
    	Nvcsw    int64
    	Nivcsw   int64
    }
    
    type Rlimit struct {
    	Cur uint64
    	Max uint64
    }
    
    type _Gid_t uint32
    
    type Stat_t struct {
    	Mode    uint32
    	Dev     int32
    	Ino     uint64
    	Nlink   uint32
    	Uid     uint32
    	Gid     uint32
    	Rdev    int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go

    	Isrss    int64
    	Minflt   int64
    	Majflt   int64
    	Nswap    int64
    	Inblock  int64
    	Oublock  int64
    	Msgsnd   int64
    	Msgrcv   int64
    	Nsignals int64
    	Nvcsw    int64
    	Nivcsw   int64
    }
    
    type Rlimit struct {
    	Cur uint64
    	Max uint64
    }
    
    type _Gid_t uint32
    
    type Stat_t struct {
    	Mode    uint32
    	Dev     int32
    	Ino     uint64
    	Nlink   uint32
    	Uid     uint32
    	Gid     uint32
    	Rdev    int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  6. internal/store/batch.go

    	return b.isFull()
    }
    
    func (b *Batch[K, T]) isFull() bool {
    	return len(b.items) >= int(b.limit)
    }
    
    // NewBatch creates a new batch
    func NewBatch[K key, T any](limit uint32) *Batch[K, T] {
    	return &Batch[K, T]{
    		keys:  make([]K, 0, limit),
    		items: make(map[K]T, limit),
    		limit: limit,
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Oct 07 15:07:38 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm64.go

    	SYS_SWAPCTL        = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); }
    	SYS_GETRLIMIT      = 194 // { int sys_getrlimit(int which, struct rlimit *rlp); }
    	SYS_SETRLIMIT      = 195 // { int sys_setrlimit(int which, const struct rlimit *rlp); }
    	SYS_MMAP           = 197 // { void *sys_mmap(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  8. src/syscall/syscall_linux_s390x.go

    //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
    //sys	Ftruncate(fd int, length int64) (err error)
    //sysnb	Getegid() (egid int)
    //sysnb	Geteuid() (euid int)
    //sysnb	Getgid() (gid int)
    //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error) = SYS_GETRLIMIT
    //sysnb	Getuid() (uid int)
    //sysnb	InotifyInit() (fd int, err error)
    //sys	Lchown(path string, uid int, gid int) (err error)
    //sys	Lstat(path string, stat *Stat_t) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go

    //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
    //sys	Ftruncate(fd int, length int64) (err error)
    //sysnb	Getegid() (egid int)
    //sysnb	Geteuid() (euid int)
    //sysnb	Getgid() (gid int)
    //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
    //sysnb	Getuid() (uid int)
    //sys	Lchown(path string, uid int, gid int) (err error)
    //sys	Listen(s int, n int) (err error)
    //sys	Pause() (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  10. docs_src/dependencies/tutorial001_02_an_py39.py

    from typing import Annotated, Union
    
    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    async def common_parameters(
        q: Union[str, None] = None, skip: int = 0, limit: int = 100
    ):
        return {"q": q, "skip": skip, "limit": limit}
    
    
    CommonsDep = Annotated[dict, Depends(common_parameters)]
    
    
    @app.get("/items/")
    async def read_items(commons: CommonsDep):
        return commons
    
    
    @app.get("/users/")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 466 bytes
    - Viewed (0)
Back to top