Home
last modified time | relevance | path

Searched refs:dirbuf (Results 1 – 20 of 20) sorted by relevance

/glibc-2.36/io/
Dftw.c180 char *dirbuf; member
216 data->dirbuf = (char *) data->dirstreams in ftw_allocate()
352 int fd = __openat64_nocancel (*dfdp, data->dirbuf + data->ftw.base, in open_dir_stream()
364 name = data->dirbuf + data->ftw.base; in open_dir_stream()
369 name = data->dirbuf; in open_dir_stream()
410 *((char *) __mempcpy (data->dirbuf + data->ftw.base, name, namlen)) = '\0'; in process_entry()
419 name = data->dirbuf; in process_entry()
472 result = (*data->func) (data->dirbuf, &st, data->cvt_arr[flag], in process_entry()
501 result = (*data->func) (data->dirbuf, st, FTW_DNR, &data->ftw); in ftw_dir()
509 result = (*data->func) (data->dirbuf, st, FTW_D, &data->ftw); in ftw_dir()
[all …]
Dtst-readlinkat.c27 char *dirbuf = malloc (dirbuflen); in prepare() local
28 if (dirbuf == NULL) in prepare()
34 snprintf (dirbuf, dirbuflen, "%s%s", test_dir, dir_name); in prepare()
35 if (mkdtemp (dirbuf) == NULL) in prepare()
41 add_temp_file (dirbuf); in prepare()
43 dir_fd = open (dirbuf, O_RDONLY | O_DIRECTORY); in prepare()
Dtst-futimesat.c47 char *dirbuf = malloc (dirbuflen); in prepare() local
48 if (dirbuf == NULL) in prepare()
54 snprintf (dirbuf, dirbuflen, "%s%s", test_dir, dir_name); in prepare()
55 if (mkdtemp (dirbuf) == NULL) in prepare()
61 add_temp_file (dirbuf); in prepare()
63 dir_fd = open (dirbuf, O_RDONLY | O_DIRECTORY); in prepare()
Dtst-fchmodat.c29 char *dirbuf = malloc (dirbuflen); in prepare() local
30 if (dirbuf == NULL) in prepare()
36 snprintf (dirbuf, dirbuflen, "%s%s", test_dir, dir_name); in prepare()
37 if (mkdtemp (dirbuf) == NULL) in prepare()
43 add_temp_file (dirbuf); in prepare()
45 dir_fd = open (dirbuf, O_RDONLY | O_DIRECTORY); in prepare()
Dtst-mkdirat.c28 char *dirbuf = malloc (dirbuflen); in prepare() local
29 if (dirbuf == NULL) in prepare()
35 snprintf (dirbuf, dirbuflen, "%s%s", test_dir, dir_name); in prepare()
36 if (mkdtemp (dirbuf) == NULL) in prepare()
42 add_temp_file (dirbuf); in prepare()
44 dir_fd = open (dirbuf, O_RDONLY | O_DIRECTORY); in prepare()
Dtst-mkfifoat.c28 char *dirbuf = malloc (dirbuflen); in prepare() local
29 if (dirbuf == NULL) in prepare()
35 snprintf (dirbuf, dirbuflen, "%s%s", test_dir, dir_name); in prepare()
36 if (mkdtemp (dirbuf) == NULL) in prepare()
42 add_temp_file (dirbuf); in prepare()
44 dir_fd = open (dirbuf, O_RDONLY | O_DIRECTORY); in prepare()
Dtst-mknodat.c28 char *dirbuf = malloc (dirbuflen); in prepare() local
29 if (dirbuf == NULL) in prepare()
35 snprintf (dirbuf, dirbuflen, "%s%s", test_dir, dir_name); in prepare()
36 if (mkdtemp (dirbuf) == NULL) in prepare()
42 add_temp_file (dirbuf); in prepare()
44 dir_fd = open (dirbuf, O_RDONLY | O_DIRECTORY); in prepare()
Dtst-fchownat.c39 char *dirbuf = malloc (dirbuflen); in prepare() local
40 if (dirbuf == NULL) in prepare()
46 snprintf (dirbuf, dirbuflen, "%s%s", test_dir, dir_name); in prepare()
47 if (mkdtemp (dirbuf) == NULL) in prepare()
53 add_temp_file (dirbuf); in prepare()
55 dir_fd = open (dirbuf, O_RDONLY | O_DIRECTORY); in prepare()
Dtst-fstatat.c27 char *dirbuf = malloc (dirbuflen); in prepare() local
28 if (dirbuf == NULL) in prepare()
34 snprintf (dirbuf, dirbuflen, "%s%s", test_dir, dir_name); in prepare()
35 if (mkdtemp (dirbuf) == NULL) in prepare()
41 add_temp_file (dirbuf); in prepare()
43 dir_fd = open (dirbuf, O_RDONLY | O_DIRECTORY); in prepare()
Dtst-symlinkat.c27 char *dirbuf = malloc (dirbuflen); in prepare() local
28 if (dirbuf == NULL) in prepare()
34 snprintf (dirbuf, dirbuflen, "%s%s", test_dir, dir_name); in prepare()
35 if (mkdtemp (dirbuf) == NULL) in prepare()
41 add_temp_file (dirbuf); in prepare()
43 dir_fd = open (dirbuf, O_RDONLY | O_DIRECTORY); in prepare()
Dtst-unlinkat.c27 char *dirbuf = malloc (dirbuflen); in prepare() local
28 if (dirbuf == NULL) in prepare()
34 snprintf (dirbuf, dirbuflen, "%s%s", test_dir, dir_name); in prepare()
35 if (mkdtemp (dirbuf) == NULL) in prepare()
41 add_temp_file (dirbuf); in prepare()
43 dir_fd = open (dirbuf, O_RDONLY | O_DIRECTORY); in prepare()
Dtst-linkat.c27 char *dirbuf = malloc (dirbuflen); in prepare() local
28 if (dirbuf == NULL) in prepare()
34 snprintf (dirbuf, dirbuflen, "%s%s", test_dir, dir_name); in prepare()
35 if (mkdtemp (dirbuf) == NULL) in prepare()
41 add_temp_file (dirbuf); in prepare()
43 dir_fd = open (dirbuf, O_RDONLY | O_DIRECTORY); in prepare()
Dtst-openat.c27 char *dirbuf = malloc (dirbuflen); in prepare() local
28 if (dirbuf == NULL) in prepare()
34 snprintf (dirbuf, dirbuflen, "%s%s", test_dir, dir_name); in prepare()
35 if (mkdtemp (dirbuf) == NULL) in prepare()
41 add_temp_file (dirbuf); in prepare()
43 dir_fd = open (dirbuf, O_RDONLY | O_DIRECTORY); in prepare()
Dtst-faccessat.c29 char *dirbuf = malloc (dirbuflen); in prepare() local
30 if (dirbuf == NULL) in prepare()
36 snprintf (dirbuf, dirbuflen, "%s%s", test_dir, dir_name); in prepare()
37 if (mkdtemp (dirbuf) == NULL) in prepare()
43 add_temp_file (dirbuf); in prepare()
45 dir_fd = open (dirbuf, O_RDONLY | O_DIRECTORY); in prepare()
Dtst-renameat.c27 char *dirbuf = malloc (dirbuflen); in prepare() local
28 if (dirbuf == NULL) in prepare()
34 snprintf (dirbuf, dirbuflen, "%s%s", test_dir, dir_name); in prepare()
35 if (mkdtemp (dirbuf) == NULL) in prepare()
41 add_temp_file (dirbuf); in prepare()
43 dir_fd = open (dirbuf, O_RDONLY | O_DIRECTORY); in prepare()
Dtst-fts.c81 char *dirbuf; in prepare() local
84 if (asprintf (&dirbuf, "%s%s", test_dir, dir_name) < 0) in prepare()
90 if (mkdtemp (dirbuf) == NULL) in prepare()
96 add_temp_file (dirbuf); in prepare()
97 fts_test_dir = dirbuf; in prepare()
/glibc-2.36/posix/
Dtst-pathconf.c36 static char *dirbuf; variable
45 dirbuf = xmalloc (dirbuflen); in prepare()
47 snprintf (dirbuf, dirbuflen, "%s%s", test_dir, dir_name); in prepare()
48 if (mkdtemp (dirbuf) == NULL) in prepare()
54 add_temp_file (dirbuf); in prepare()
56 dir_fd = open (dirbuf, O_RDONLY); in prepare()
71 size_t filenamelen = strlen (dirbuf) + strlen (fifo_name) + 2; in do_test()
74 snprintf (filename, filenamelen, "%s/%s", dirbuf, fifo_name); in do_test()
85 long dir_pathconf = pathconf (dirbuf, _PC_PIPE_BUF); in do_test()
/glibc-2.36/sysdeps/mach/hurd/
Dgetcwd.c50 char *dirbuf = NULL; in __hurd_canonicalize_directory_name_internal() local
63 if (dirbuf != NULL) in __hurd_canonicalize_directory_name_internal()
65 (vm_address_t) dirbuf, dirbufsize); in __hurd_canonicalize_directory_name_internal()
148 dirdata = dirbuf; in __hurd_canonicalize_directory_name_internal()
160 if (dirdata != dirbuf) in __hurd_canonicalize_directory_name_internal()
166 (vm_address_t) dirbuf, dirbufsize); in __hurd_canonicalize_directory_name_internal()
167 dirbuf = dirdata; in __hurd_canonicalize_directory_name_internal()
/glibc-2.36/dirent/
Dtst-scandir.c45 char *dirbuf = malloc (dirbuflen); in prepare() local
46 if (dirbuf == NULL) in prepare()
52 snprintf (dirbuf, dirbuflen, "%s%s", test_dir, dir_name); in prepare()
53 if (mkdtemp (dirbuf) == NULL) in prepare()
59 add_temp_file (dirbuf); in prepare()
60 scandir_test_dir = dirbuf; in prepare()
/glibc-2.36/ChangeLog.old/
DChangeLog.62412 * io/fts.c (fts_build): Remove "register" from variables dirbuf