Searched refs:fd_limit (Results 1 - 5 of 5) sorted by relevance
/third_party/musl/src/misc/ |
H A D | nftw.c | 25 static int do_nftw(char *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int fd_limit, int flags, struct history *h) in do_nftw() argument 87 if (!fd_limit) close(dfd); in do_nftw() 98 if ((type == FTW_D || type == FTW_DP) && fd_limit) { in do_nftw() 122 if ((r=do_nftw(path, fn, fd_limit-1, flags, &new))) { in do_nftw() 147 int nftw(const char *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int fd_limit, int flags) 153 if (fd_limit <= 0) return 0; 163 r = do_nftw(pathbuf, fn, fd_limit, flags, NULL);
|
/third_party/musl/porting/liteos_a/user/src/misc/ |
H A D | nftw.c | 22 static int do_nftw(char *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int fd_limit, int flags, struct history *h) in do_nftw() argument 73 if ((type == FTW_D || type == FTW_DP) && fd_limit) { in do_nftw() 89 if ((r=do_nftw(path, fn, fd_limit-1, flags, &new))) { in do_nftw() 107 int nftw(const char *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int fd_limit, int flags) in nftw() argument 113 if (fd_limit <= 0) return 0; in nftw() 123 r = do_nftw(pathbuf, fn, fd_limit, flags, NULL); in nftw()
|
/third_party/elfutils/tests/ |
H A D | dwfl-bug-fd-leak.c | 108 struct rlimit fd_limit; in main() local 109 if (getrlimit (RLIMIT_NOFILE, &fd_limit) < 0) in main() 111 fd_limit.rlim_cur = 32; in main() 112 if (setrlimit (RLIMIT_NOFILE, &fd_limit) < 0) in main()
|
/third_party/musl/src/legacy/ |
H A D | ftw.c | 3 int ftw(const char *path, int (*fn)(const char *, const struct stat *, int), int fd_limit) in ftw() argument 8 return nftw(path, (int (*)())fn, fd_limit, FTW_PHYS); in ftw()
|
/third_party/python/Lib/test/libregrtest/ |
H A D | setup.py | 147 fd_limit, max_fds = resource.getrlimit(RLIMIT_NOFILE) 152 if fd_limit < desired_fds and fd_limit < max_fds: 156 print(f"Raised RLIMIT_NOFILE: {fd_limit} -> {new_fd_limit}") 158 print(f"Unable to raise RLIMIT_NOFILE from {fd_limit} to "
|
Completed in 3 milliseconds