Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 25 of 193) sorted by relevance

12345678

/l4re-core-master/uclibc/lib/contrib/uclibc/test/misc/
A Dbug-glob2.c169 return dir; in my_opendir()
181 dir->level, (long int) dir->idx); in my_readdir()
185 while (dir->idx < nfiles && filesystem[dir->idx].level > dir->level) in my_readdir()
188 if (dir->idx == nfiles || filesystem[dir->idx].level < dir->level) in my_readdir()
192 dir->level, (long int) dir->idx); in my_readdir()
196 dir->d.d_ino = dir->idx; in my_readdir()
199 dir->d.d_type = filesystem[dir->idx].type; in my_readdir()
202 strcpy (dir->d.d_name, filesystem[dir->idx].name); in my_readdir()
206 dir->level, (long int) dir->idx, dir->d.d_ino, dir->d.d_type, in my_readdir()
210 dir->level, (long int) dir->idx, dir->d.d_ino, in my_readdir()
[all …]
A Dtst-gnuglob.c177 return dir; in my_opendir()
189 dir->level, (long int) dir->idx); in my_readdir()
193 while (dir->idx < nfiles && filesystem[dir->idx].level > dir->level) in my_readdir()
196 if (dir->idx == nfiles || filesystem[dir->idx].level < dir->level) in my_readdir()
200 dir->level, (long int) dir->idx); in my_readdir()
204 dir->d.d_ino = dir->idx; in my_readdir()
207 dir->d.d_type = filesystem[dir->idx].type; in my_readdir()
210 strcpy (dir->d.d_name, filesystem[dir->idx].name); in my_readdir()
214 dir->level, (long int) dir->idx, dir->d.d_ino, dir->d.d_type, in my_readdir()
218 dir->level, (long int) dir->idx, dir->d.d_ino, in my_readdir()
[all …]
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/misc/dirent/
A Dreaddir.c19 __DIRENT_TYPE *__READDIR(DIR * dir) in __READDIR() argument
24 if (!dir) { in __READDIR()
29 __UCLIBC_MUTEX_LOCK(dir->dd_lock); in __READDIR()
32 if (dir->dd_size <= dir->dd_nextloc) { in __READDIR()
34 bytes = __GETDENTS(dir->dd_fd, dir->dd_buf, dir->dd_max); in __READDIR()
39 dir->dd_size = bytes; in __READDIR()
40 dir->dd_nextloc = 0; in __READDIR()
43 de = (__DIRENT_TYPE *) (((char *) dir->dd_buf) + dir->dd_nextloc); in __READDIR()
46 dir->dd_nextloc += de->d_reclen; in __READDIR()
49 dir->dd_nextoff = de->d_off; in __READDIR()
[all …]
A Dreaddir_r.c20 int __READDIR_R(DIR *dir, __DIRENT_TYPE *entry, __DIRENT_TYPE **result) in __READDIR_R() argument
26 if (!dir) { in __READDIR_R()
32 __UCLIBC_MUTEX_LOCK(dir->dd_lock); in __READDIR_R()
35 if (dir->dd_size <= dir->dd_nextloc) { in __READDIR_R()
37 bytes = __GETDENTS(dir->dd_fd, dir->dd_buf, dir->dd_max); in __READDIR_R()
43 dir->dd_size = bytes; in __READDIR_R()
44 dir->dd_nextloc = 0; in __READDIR_R()
47 de = (__DIRENT_TYPE *) (((char *) dir->dd_buf) + dir->dd_nextloc); in __READDIR_R()
50 dir->dd_nextloc += de->d_reclen; in __READDIR_R()
53 dir->dd_nextoff = de->d_off; in __READDIR_R()
[all …]
A Dclosedir.c15 int closedir(DIR * dir) in closedir() argument
19 if (!dir) { in closedir()
25 if (dir->dd_fd == -1) { in closedir()
29 __UCLIBC_MUTEX_LOCK(dir->dd_lock); in closedir()
30 fd = dir->dd_fd; in closedir()
31 dir->dd_fd = -1; in closedir()
32 __UCLIBC_MUTEX_UNLOCK(dir->dd_lock); in closedir()
33 free(dir->dd_buf); in closedir()
34 free(dir); in closedir()
A Drewinddir.c14 void rewinddir(DIR * dir) in rewinddir() argument
16 if (!dir) { in rewinddir()
20 __UCLIBC_MUTEX_LOCK(dir->dd_lock); in rewinddir()
21 lseek(dir->dd_fd, 0, SEEK_SET); in rewinddir()
22 dir->dd_nextoff = dir->dd_nextloc = dir->dd_size = 0; in rewinddir()
23 __UCLIBC_MUTEX_UNLOCK(dir->dd_lock); in rewinddir()
A Dseekdir.c13 void seekdir(DIR * dir, long int offset) in seekdir() argument
15 if (!dir) { in seekdir()
19 __UCLIBC_MUTEX_LOCK(dir->dd_lock); in seekdir()
20 dir->dd_nextoff = lseek(dir->dd_fd, offset, SEEK_SET); in seekdir()
21 dir->dd_size = dir->dd_nextloc = 0; in seekdir()
22 __UCLIBC_MUTEX_UNLOCK(dir->dd_lock); in seekdir()
A Ddirfd.c12 int dirfd(DIR * dir) in dirfd() argument
14 if (!dir || dir->dd_fd == -1) { in dirfd()
19 return dir->dd_fd; in dirfd()
A Dtelldir.c13 long int telldir(DIR * dir) in telldir() argument
15 if (!dir) { in telldir()
21 return dir->dd_nextoff; in telldir()
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/misc/internals/
A Dtempname.c48 static int direxists (const char *dir) in direxists() argument
51 return stat(dir, &buf) == 0 && S_ISDIR (buf.st_mode); in direxists()
60 int ___path_search (char *tmpl, size_t tmpl_len, const char *dir, in ___path_search() argument
87 dir = d; in ___path_search()
88 else if (dir != NULL && direxists (dir)) in ___path_search()
91 dir = NULL; in ___path_search()
94 if (dir == NULL) in ___path_search()
97 dir = P_tmpdir; in ___path_search()
99 dir = "/tmp"; in ___path_search()
107 dlen = strlen (dir); in ___path_search()
[all …]
A Dtempname.h9 extern int ___path_search (char *tmpl, size_t tmpl_len, const char *dir,
11 #define __path_search(tmpl, tmpl_len, dir, pfx, try_tmpdir) ___path_search(tmpl, tmpl_len, dir, pfx) argument
/l4re-core-master/uclibc/lib/contrib/uclibc/utils/
A Dldconfig.c233 sprintf(buff, "%s%s%s", dir, (*dir && strcmp(dir, "/")) ? "/" : "", name); in is_shlib()
339 sprintf(libname, "%s/%s", dir, file); in link_shlib()
340 sprintf(linkname, "%s/%s", dir, so); in link_shlib()
419 DIR *dir; in scan_dir() local
484 while ((ent = readdir(dir)) != NULL) { in scan_dir()
521 closedir(dir); in scan_dir()
621 sprintf(fullpath, "%s/%s", dir, so); in cache_dolib()
829 char *cp, *dir, *so; in main() local
924 dir = argv[i]; in main()
931 dir, (*dir && strcmp(dir, "/")) ? "/" : "", cp); in main()
[all …]
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/misc/ftw/
A Dftw.c437 result = ftw_dir (data, &st, dir); in process_entry()
456 struct dir_data dir; in ftw_dir() local
483 __closedir (dir.stream); in ftw_dir()
512 while (dir.stream != NULL && (d = __readdir64 (dir.stream)) != NULL) in ftw_dir()
519 if (dir.stream != NULL) in ftw_dir()
525 assert (dir.content == NULL); in ftw_dir()
527 __closedir (dir.stream); in ftw_dir()
537 char *runp = dir.content; in ftw_dir()
549 free (dir.content); in ftw_dir()
608 if (dir[0] == '\0') in ftw_startup()
[all …]
/l4re-core-master/cxx/lib/tl/include/
A Davl_tree298 Dir dir;
308 if (!A::next(n, dir))
312 if (a->balanced() || (a->balance() == !dir && A::next<A>(n, !dir)->balanced()))
326 if (!A::next(n, dir))
332 a->balance(!dir);
339 if (b == dir)
340 A::rotate2(s, !dir, A::next<A>(A::next(n, !dir), dir)->balance());
343 A::rotate(s, !dir);
351 a->balance(!dir);
356 t = A::next_p(*s, dir);
[all …]
/l4re-core-master/moe/server/src/
A Ddma_space.cc31 l4_size_t *size, Attributes attrs, Direction dir, in map() argument
34 L4Re::chksys(ds->dma_map(0, offset, size, attrs, dir, dma_addr)); in map()
47 m->dir = dir; in map()
181 l4_size_t *_size, Attributes attrs, Direction dir, in map() argument
219 node->dir = dir; in map()
284 l4_size_t &size, Attributes attrs, Direction dir, in op_map() argument
291 attrs, dir, &dma_addr); in op_map()
299 Attributes attrs, Direction dir) in op_unmap() argument
304 return _mapper->unmap(dma_addr, size, attrs, dir); in op_unmap()
A Ddma_space.h43 Attributes attrs, Direction dir,
47 Attributes attrs, Direction dir) = 0;
77 Direction dir = Direction::None; member
109 l4_size_t &size, Attributes attrs, Direction dir,
114 l4_size_t size, Attributes attrs, Direction dir);
/l4re-core-master/libstdc++-v3/contrib/libstdc++-v3-8/src/filesystem/
A DMakefile.in109 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
119 am__objects_2 = dir.lo ops.lo path.lo std-dir.lo std-ops.lo \
367 @ENABLE_DUAL_ABI_TRUE@ cow-dir.cc \
370 @ENABLE_DUAL_ABI_TRUE@ cow-std-dir.cc \
375 dir.cc \
378 std-dir.cc \
512 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
513 test "$$dir" != "$$p" || dir=.; \
514 echo "rm -f \"$${dir}/so_locations\""; \
515 rm -f "$${dir}/so_locations"; \
[all …]
A DMakefile.am31 cow-dir.cc \
34 cow-std-dir.cc \
42 dir.cc \
45 std-dir.cc \
/l4re-core-master/l4re_c/lib/src/
A Ddma_space.cc25 enum l4re_dma_space_direction dir, in l4re_dma_space_map() argument
32 L4Re::Dma_space::Direction(dir), dma_addr); in l4re_dma_space_map()
39 enum l4re_dma_space_direction dir) L4_NOTHROW in l4re_dma_space_unmap() argument
44 L4Re::Dma_space::Direction(dir)); in l4re_dma_space_unmap()
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/
A Dsem_open.c84 mountpoint.dir = (char *) defaultdir; in __where_is_shmfs()
124 mountpoint.dir = (char *) malloc (namelen + 4 + 2); in __where_is_shmfs()
125 if (mountpoint.dir != NULL) in __where_is_shmfs()
127 char *cp = mempcpy (mountpoint.dir, mp->mnt_dir, namelen); in __where_is_shmfs()
131 mountpoint.dirlen = cp - mountpoint.dir; in __where_is_shmfs()
254 if (mountpoint.dir == NULL) in sem_open()
274 mempcpy (mempcpy (finalname, mountpoint.dir, mountpoint.dirlen), in sem_open()
336 mempcpy (mempcpy (tmpfname, mountpoint.dir, mountpoint.dirlen), in sem_open()
/l4re-core-master/libstdc++-v3/contrib/libstdc++-v3-5/src/filesystem/
A DMakefile.in108 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
109 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
110 $(am__cd) "$$dir" && rm -f $$files; }; \
360 @ENABLE_DUAL_ABI_TRUE@ cow-dir.cc \
365 dir.cc \
499 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
500 test "$$dir" != "$$p" || dir=.; \
501 echo "rm -f \"$${dir}/so_locations\""; \
502 rm -f "$${dir}/so_locations"; \
583 for dir in "$(DESTDIR)$(toolexeclibdir)"; do \
[all …]
/l4re-core-master/libstdc++-v3/contrib/libstdc++-v3-6/src/filesystem/
A DMakefile.in108 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
109 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
110 $(am__cd) "$$dir" && rm -f $$files; }; \
360 @ENABLE_DUAL_ABI_TRUE@ cow-dir.cc \
365 dir.cc \
499 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
500 test "$$dir" != "$$p" || dir=.; \
501 echo "rm -f \"$${dir}/so_locations\""; \
502 rm -f "$${dir}/so_locations"; \
583 for dir in "$(DESTDIR)$(toolexeclibdir)"; do \
[all …]
/l4re-core-master/libstdc++-v3/contrib/libstdc++-v3-7/src/filesystem/
A DMakefile.in109 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
110 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
111 $(am__cd) "$$dir" && rm -f $$files; }; \
363 @ENABLE_DUAL_ABI_TRUE@ cow-dir.cc \
368 dir.cc \
502 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
503 test "$$dir" != "$$p" || dir=.; \
504 echo "rm -f \"$${dir}/so_locations\""; \
505 rm -f "$${dir}/so_locations"; \
586 for dir in "$(DESTDIR)$(toolexeclibdir)"; do \
[all …]
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/misc/glob/
A Dglob-susv3.c98 DIR *dir; in __glob_match_in_dir() local
118 dir = opendir(*d ? d : "."); in __glob_match_in_dir()
120 if (!dir) { in __glob_match_in_dir()
137 closedir(dir); in __glob_match_in_dir()
140 while (!(error = readdir_r(dir, (void *)de_buf, &de)) && de) { in __glob_match_in_dir()
157 closedir(dir); in __glob_match_in_dir()
172 closedir(dir); in __glob_match_in_dir()
177 closedir(dir); in __glob_match_in_dir()
/l4re-core-master/uclibc/lib/contrib/uclibc/extra/scripts/
A Dinstall_headers.sh13 for dir in "$@"; do
14 test -d "$dir" && continue
15 echo "Error: '$dir' is not a directory"

Completed in 29 milliseconds

12345678