Home
last modified time | relevance | path

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

123456789

/glibc-2.36/posix/
Dbug-glob2.c153 my_DIR *dir; in my_opendir() local
168 dir = (my_DIR *) malloc (sizeof (my_DIR)); in my_opendir()
169 if (dir == NULL) in my_opendir()
175 dir->level = filesystem[idx].level; in my_opendir()
176 dir->idx = idx; in my_opendir()
181 return dir; in my_opendir()
188 my_DIR *dir = gdir; in my_readdir() local
190 if (dir->idx == -1) in my_readdir()
193 dir->level, (long int) dir->idx); in my_readdir()
197 while (dir->idx < nfiles && filesystem[dir->idx].level > dir->level) in my_readdir()
[all …]
Dtst-gnuglob-skeleton.c171 my_DIR *dir; in my_opendir() local
181 dir = (my_DIR *) malloc (sizeof (my_DIR)); in my_opendir()
182 if (dir == NULL) in my_opendir()
185 dir->level = filesystem[idx].level; in my_opendir()
186 dir->idx = idx; in my_opendir()
192 return dir; in my_opendir()
199 my_DIR *dir = gdir; in my_readdir() local
201 if (dir->idx == -1) in my_readdir()
205 dir->level, (long int) dir->idx); in my_readdir()
209 while (dir->idx < nfiles && filesystem[dir->idx].level > dir->level) in my_readdir()
[all …]
Dtst-glob_lstat_compat.c145 my_DIR *dir = malloc (sizeof (my_DIR)); in my_opendir() local
146 if (dir == NULL) in my_opendir()
149 dir->level = filesystem[idx].level; in my_opendir()
150 dir->idx = idx; in my_opendir()
152 return dir; in my_opendir()
158 my_DIR *dir = gdir; in my_readdir() local
160 if (dir->idx == -1) in my_readdir()
163 while (dir->idx < nfiles && filesystem[dir->idx].level > dir->level) in my_readdir()
164 ++dir->idx; in my_readdir()
166 if (dir->idx == nfiles || filesystem[dir->idx].level < dir->level) in my_readdir()
[all …]
/glibc-2.36/nis/
Dnis_call.c409 rec_dirsearch (const_nis_name name, directory_obj *dir, nis_error *status) in rec_dirsearch() argument
414 switch (nis_dir_cmp (name, dir->do_name)) in rec_dirsearch()
418 return dir; in rec_dirsearch()
424 const char *ndomain = __nis_domain_of (dir->do_name); in rec_dirsearch()
429 fd_res = __nis_finddirectory (dir, ndomain); in rec_dirsearch()
432 nis_free_directory (dir); in rec_dirsearch()
441 return dir; in rec_dirsearch()
443 nis_free_directory (dir); in rec_dirsearch()
477 nis_free_directory (dir); in rec_dirsearch()
484 while (nis_dir_cmp (domain, dir->do_name) != SAME_NAME); in rec_dirsearch()
[all …]
Dnis_lookup.c61 directory_obj *dir = NULL; in nis_lookup() local
65 status = __prepare_niscall (req.ns_name, &dir, &bptr, flags); in nis_lookup()
124 nis_free_directory (dir); in nis_lookup()
126 dir = NULL; in nis_lookup()
128 if (__nisfind_server (req.ns_name, 1, &dir, &bptr, in nis_lookup()
146 nis_free_directory (dir); in nis_lookup()
147 dir = NULL; in nis_lookup()
148 status = __prepare_niscall (req.ns_name, &dir, in nis_lookup()
162 nis_free_directory (dir); in nis_lookup()
175 nis_free_directory (dir); in nis_lookup()
/glibc-2.36/scripts/
Dtest-installation.pl81 $dir = ".";
86 $dir = $ARGV[0];
90 $soversions = $dir = $ARGV[0];
91 $dir =~ s!/?[^/]*/*$!!;
92 $config = $dir . "/config.make";
145 open PRG, ">$dir/test-prg$$.c"
146 or die ("Couldn't write test file $dir/test-prg$$.c");
158 open GCC, "$CC $dir/test-prg$$.c $link_libs -o $dir/test-prg$$ 2>&1 |"
176 open LDD, "ldd $dir/test-prg$$ |"
216 system ("$dir/test-prg$$") == 0
[all …]
Dsysd-rules.awk37 dir = sysdirs[sysdir_idx];
38 if (dir !~ /^\//) dir = "$(..)" dir;
41 if (dir ~ ("^.*sysdeps/" inhibit_asm[i] "$")) {
65 dep = dir "/" dep_pattern ".S";
69 dep = dir "/" dep_pattern ".c";
74 print "$(inst_includedir)/%.h:", dir "/%.h", "$(+force)";
/glibc-2.36/sysdeps/posix/
Dgetcwd.c184 char *dir; in __getcwd_generic() local
213 dir = getcwd_system (buf, size); in __getcwd_generic()
214 if (dir || (size && errno == ERANGE)) in __getcwd_generic()
215 return dir; in __getcwd_generic()
224 dir = getcwd_system (big_buffer, sizeof big_buffer); in __getcwd_generic()
225 if (dir) in __getcwd_generic()
226 return strdup (dir); in __getcwd_generic()
249 dir = malloc (allocated); in __getcwd_generic()
250 if (dir == NULL) in __getcwd_generic()
254 dir = buf; in __getcwd_generic()
[all …]
Dtempname.c99 direxists (const char *dir) in direxists() argument
102 return __stat64_time64 (dir, &buf) == 0 && S_ISDIR (buf.st_mode); in direxists()
112 __path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx, in __path_search() argument
134 dir = d; in __path_search()
135 else if (dir != NULL && direxists (dir)) in __path_search()
138 dir = NULL; in __path_search()
140 if (dir == NULL) in __path_search()
143 dir = P_tmpdir; in __path_search()
145 dir = "/tmp"; in __path_search()
153 dlen = strlen (dir); in __path_search()
[all …]
/glibc-2.36/iconvdata/
Dutf-32.c41 #define FROM_DIRECTION (dir == from_utf32)
43 enum direction dir = ((struct utf32_data *) step->__data)->dir; \
101 enum direction dir; member
112 enum direction dir = illegal_dir; in gconv_init() local
118 dir = from_utf32; in gconv_init()
123 dir = to_utf32; in gconv_init()
128 dir = from_utf32; in gconv_init()
133 dir = to_utf32; in gconv_init()
138 dir = from_utf32; in gconv_init()
143 dir = to_utf32; in gconv_init()
[all …]
Dutf-16.c42 #define FROM_DIRECTION (dir == from_utf16)
44 enum direction dir = ((struct utf16_data *) step->__data)->dir; \
103 enum direction dir; member
114 enum direction dir = illegal_dir; in gconv_init() local
120 dir = from_utf16; in gconv_init()
125 dir = to_utf16; in gconv_init()
130 dir = from_utf16; in gconv_init()
135 dir = to_utf16; in gconv_init()
140 dir = from_utf16; in gconv_init()
145 dir = to_utf16; in gconv_init()
[all …]
Dunicode.c41 #define FROM_DIRECTION (dir == from_unicode)
43 enum direction dir = ((struct unicode_data *) step->__data)->dir; \
87 enum direction dir; member
97 enum direction dir = illegal_dir; in gconv_init() local
101 dir = from_unicode; in gconv_init()
103 dir = to_unicode; in gconv_init()
110 new_data->dir = dir; in gconv_init()
113 if (dir == from_unicode) in gconv_init()
/glibc-2.36/io/
Dtst-unlinkat.c69 DIR *dir = fdopendir (dupfd); in do_test() local
70 if (dir == NULL) in do_test()
76 while ((d = readdir64 (dir)) != NULL) in do_test()
82 closedir (dir); in do_test()
115 dir = fdopendir (dupfd); in do_test()
116 if (dir == NULL) in do_test()
122 while ((d = readdir64 (dir)) != NULL) in do_test()
133 closedir (dir); in do_test()
156 dir = fdopendir (dir_fd); in do_test()
157 if (dir == NULL) in do_test()
[all …]
Dftw.c392 process_entry (struct ftw_data *data, struct dir_data *dir, const char *name, in process_entry() argument
413 if (dir->streamfd != -1) in process_entry()
414 statres = FSTATAT (dir->streamfd, name, &st, in process_entry()
438 if (dir->streamfd != -1) in process_entry()
439 statres = FSTATAT (dir->streamfd, name, &st, in process_entry()
469 result = ftw_dir (data, &st, dir); in process_entry()
487 struct dir_data dir; in ftw_dir() local
496 data, &dir); in ftw_dir()
515 __closedir (dir.stream); in ftw_dir()
516 dir.streamfd = -1; in ftw_dir()
[all …]
Dtst-mkdirat.c70 DIR *dir = fdopendir (dupfd); in do_test() local
71 if (dir == NULL) in do_test()
77 while ((d = readdir64 (dir)) != NULL) in do_test()
83 closedir (dir); in do_test()
123 dir = fdopendir (dupfd); in do_test()
124 if (dir == NULL) in do_test()
130 while ((d = readdir64 (dir)) != NULL) in do_test()
145 closedir (dir); in do_test()
Dtst-mkfifoat.c70 DIR *dir = fdopendir (dupfd); in do_test() local
71 if (dir == NULL) in do_test()
77 while ((d = readdir64 (dir)) != NULL) in do_test()
83 closedir (dir); in do_test()
123 dir = fdopendir (dupfd); in do_test()
124 if (dir == NULL) in do_test()
130 while ((d = readdir64 (dir)) != NULL) in do_test()
145 closedir (dir); in do_test()
Dtst-mknodat.c70 DIR *dir = fdopendir (dupfd); in do_test() local
71 if (dir == NULL) in do_test()
77 while ((d = readdir64 (dir)) != NULL) in do_test()
83 closedir (dir); in do_test()
123 dir = fdopendir (dupfd); in do_test()
124 if (dir == NULL) in do_test()
130 while ((d = readdir64 (dir)) != NULL) in do_test()
145 closedir (dir); in do_test()
Dpwd.c26 char *dir; in main() local
31 dir = getcwd ((char *) NULL, 0); in main()
33 if (dir == NULL) in main()
37 puts (dir); in main()
38 free (dir); in main()
41 return (dir == NULL ? EXIT_FAILURE : EXIT_SUCCESS); in main()
Dtst-openat.c69 DIR *dir = fdopendir (dupfd); in do_test() local
70 if (dir == NULL) in do_test()
76 while ((d = readdir64 (dir)) != NULL) in do_test()
82 closedir (dir); in do_test()
130 dir = fdopendir (dupfd); in do_test()
131 if (dir == NULL) in do_test()
137 while ((d = readdir64 (dir)) != NULL) in do_test()
148 closedir (dir); in do_test()
/glibc-2.36/hurd/hurd/
Dlookup.h55 (file_t dir, const char *name, int flags, mode_t mode,
66 (file_t dir, const char *name, int flags, mode_t mode,
82 error_t (*lookup) (file_t dir, const char *name,
87 file_t *dir, char **name);
92 error_t (*lookup) (file_t dir, const char *name,
97 file_t *dir, char **name);
106 error_t (*lookup) (file_t dir, const char *name,
111 file_t *dir, char **name);
116 error_t (*lookup) (file_t dir, const char *name,
121 file_t *dir, char **name);
[all …]
/glibc-2.36/sysdeps/unix/
Dmake-syscalls.sh48 sysdirs=`for dir in $sysdirs; do
49 test $dir = $thisdir && break; echo $dir; done`
62 for dir in $sysdirs; do
63 { test -f $dir/$file.c && srcfile=$dir/$file.c; } ||
64 { test -f $dir/$file.S && srcfile=$dir/$file.S; } ||
66 { { test -f $dir/$caller.c && srcfile=$dir/$caller.c; } ||
67 { test -f $dir/$caller.S && srcfile=$dir/$caller.S; }; }; } && break;
/glibc-2.36/libio/
Dioseekoff.c32 _IO_seekoff_unlocked (FILE *fp, off64_t offset, int dir, int mode) in _IO_seekoff_unlocked() argument
34 if (dir != _IO_seek_cur && dir != _IO_seek_set && dir != _IO_seek_end) in _IO_seekoff_unlocked()
46 if (dir == _IO_seek_cur && _IO_in_backup (fp)) in _IO_seekoff_unlocked()
59 return _IO_SEEKOFF (fp, offset, dir, mode); in _IO_seekoff_unlocked()
64 _IO_seekoff (FILE *fp, off64_t offset, int dir, int mode) in _IO_seekoff() argument
69 retval = _IO_seekoff_unlocked (fp, offset, dir, mode); in _IO_seekoff()
/glibc-2.36/hurd/
Dset-host.c28 file_t new, dir; in _hurd_set_host_config() local
31 dir = __file_name_split (item, &name); in _hurd_set_host_config()
32 if (dir == MACH_PORT_NULL) in _hurd_set_host_config()
36 err = __dir_mkfile (dir, O_WRONLY, 0644, &new); in _hurd_set_host_config()
43 err = __dir_link (dir, new, name, 0); in _hurd_set_host_config()
46 __mach_port_deallocate (__mach_task_self (), dir); in _hurd_set_host_config()
/glibc-2.36/sysdeps/mach/hurd/
Dsymlinkat.c34 file_t dir, node; in symlinkat() local
44 dir = __file_name_split_at (fd, to, &name); in symlinkat()
45 if (dir == MACH_PORT_NULL) in symlinkat()
49 err = __dir_mkfile (dir, O_WRITE, 0777 & ~_hurd_umask, &node); in symlinkat()
62 err = __dir_link (dir, node, name, 1); in symlinkat()
67 __mach_port_deallocate (__mach_task_self (), dir); in symlinkat()
Dsymlink.c29 file_t dir, node; in __symlink() local
39 dir = __file_name_split (to, &name); in __symlink()
40 if (dir == MACH_PORT_NULL) in __symlink()
44 err = __dir_mkfile (dir, O_WRITE, 0777 & ~_hurd_umask, &node); in __symlink()
57 err = __dir_link (dir, node, name, 1); in __symlink()
62 __mach_port_deallocate (__mach_task_self (), dir); in __symlink()

123456789