/kernel/linux/linux-5.10/fs/ |
H A D | readdir.c | 18 #include <linux/dirent.h> 82 * POSIX says that a dirent name cannot contain NULL or a '/'. 123 * dirent-structure in size and that the code can't handle more 139 struct old_linux_dirent __user * dirent; member 148 struct old_linux_dirent __user * dirent; in fillonedir() local 162 dirent = buf->dirent; in fillonedir() 163 if (!user_write_access_begin(dirent, in fillonedir() 164 (unsigned long)(dirent->d_name + namlen + 1) - in fillonedir() 165 (unsigned long)dirent)) in fillonedir() 225 struct linux_dirent __user *dirent, *prev; filldir() local 313 struct linux_dirent64 __user *dirent, *prev; filldir64() local 396 struct compat_old_linux_dirent __user *dirent; global() member 406 struct compat_old_linux_dirent __user *dirent; compat_fillonedir() local 477 struct compat_linux_dirent __user *dirent, *prev; compat_filldir() local [all...] |
/kernel/linux/linux-6.6/fs/ |
H A D | readdir.c | 18 #include <linux/dirent.h> 118 * POSIX says that a dirent name cannot contain NULL or a '/'. 159 * dirent-structure in size and that the code can't handle more 175 struct old_linux_dirent __user * dirent; member 184 struct old_linux_dirent __user * dirent; in fillonedir() local 198 dirent = buf->dirent; in fillonedir() 199 if (!user_write_access_begin(dirent, in fillonedir() 200 (unsigned long)(dirent->d_name + namlen + 1) - in fillonedir() 201 (unsigned long)dirent)) in fillonedir() 261 struct linux_dirent __user *dirent, *prev; filldir() local 349 struct linux_dirent64 __user *dirent, *prev; filldir64() local 432 struct compat_old_linux_dirent __user *dirent; global() member 442 struct compat_old_linux_dirent __user *dirent; compat_fillonedir() local 513 struct compat_linux_dirent __user *dirent, *prev; compat_filldir() local [all...] |
/kernel/linux/linux-5.10/fs/fuse/ |
H A D | readdir.c | 33 struct fuse_dirent *dirent, loff_t pos) in fuse_add_dirent_to_cache() 36 size_t reclen = FUSE_DIRENT_SIZE(dirent); in fuse_add_dirent_to_cache() 84 memcpy(addr + offset, dirent, reclen); in fuse_add_dirent_to_cache() 87 fi->rdc.pos = dirent->off; in fuse_add_dirent_to_cache() 115 struct fuse_dirent *dirent) in fuse_emit() 120 fuse_add_dirent_to_cache(file, dirent, ctx->pos); in fuse_emit() 122 return dir_emit(ctx, dirent->name, dirent->namelen, dirent->ino, in fuse_emit() 123 dirent in fuse_emit() 32 fuse_add_dirent_to_cache(struct file *file, struct fuse_dirent *dirent, loff_t pos) fuse_add_dirent_to_cache() argument 114 fuse_emit(struct file *file, struct dir_context *ctx, struct fuse_dirent *dirent) fuse_emit() argument 130 struct fuse_dirent *dirent = (struct fuse_dirent *) buf; parse_dirfile() local 155 struct fuse_dirent *dirent = &direntplus->dirent; fuse_direntplus_link() local 290 struct fuse_dirent *dirent; parse_dirplusfile() local 400 struct fuse_dirent *dirent = addr + offset; fuse_parse_cache() local [all...] |
/kernel/linux/linux-6.6/fs/fuse/ |
H A D | readdir.c | 33 struct fuse_dirent *dirent, loff_t pos) in fuse_add_dirent_to_cache() 36 size_t reclen = FUSE_DIRENT_SIZE(dirent); in fuse_add_dirent_to_cache() 84 memcpy(addr + offset, dirent, reclen); in fuse_add_dirent_to_cache() 87 fi->rdc.pos = dirent->off; in fuse_add_dirent_to_cache() 115 struct fuse_dirent *dirent) in fuse_emit() 120 fuse_add_dirent_to_cache(file, dirent, ctx->pos); in fuse_emit() 122 return dir_emit(ctx, dirent->name, dirent->namelen, dirent->ino, in fuse_emit() 123 dirent in fuse_emit() 32 fuse_add_dirent_to_cache(struct file *file, struct fuse_dirent *dirent, loff_t pos) fuse_add_dirent_to_cache() argument 114 fuse_emit(struct file *file, struct dir_context *ctx, struct fuse_dirent *dirent) fuse_emit() argument 130 struct fuse_dirent *dirent = (struct fuse_dirent *) buf; parse_dirfile() local 155 struct fuse_dirent *dirent = &direntplus->dirent; fuse_direntplus_link() local 290 struct fuse_dirent *dirent; parse_dirplusfile() local 400 struct fuse_dirent *dirent = addr + offset; fuse_parse_cache() local [all...] |
/kernel/liteos_a/fs/vfs/operation/ |
H A D | vfs_other.c | 35 #include "dirent.h" 325 static struct dirent **scandir_get_file_list(const char *dir, int *num, int(*filter)(const struct dirent *)) in scandir_get_file_list() 330 struct dirent **list = NULL; in scandir_get_file_list() 331 struct dirent **newList = NULL; in scandir_get_file_list() 332 struct dirent *ent = NULL; in scandir_get_file_list() 333 struct dirent *p = NULL; in scandir_get_file_list() 341 list = (struct dirent **)malloc(listSize * sizeof(struct dirent *)); in scandir_get_file_list() 354 newList = (struct dirent **)mallo in scandir_get_file_list() [all...] |
/kernel/liteos_m/components/shell/src/cmds/ |
H A D | vfs_shellcmd.c | 47 #include <dirent.h> 74 DIR *dirent = NULL; in OsShellCmdDoChdir() local 94 dirent = opendir(fullpath); in OsShellCmdDoChdir() 95 if (dirent == NULL) { in OsShellCmdDoChdir() 103 (VOID)closedir(dirent); in OsShellCmdDoChdir() 120 STATIC CHAR *OsLsGetFullpath(const CHAR *path, struct dirent *pdirent) in OsLsGetFullpath() 159 struct dirent *pdirent = NULL; in OsLs() 523 struct dirent *dirent = NULL; in OsShellCmdDoRmdir() local 542 dirent in OsShellCmdDoRmdir() 710 struct dirent *dirent = NULL; OsWildcardExtractDirectory() local [all...] |
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | path.h | 8 struct dirent; 14 bool is_directory(const char *base_path, const struct dirent *dent); 15 bool is_executable_file(const char *base_path, const struct dirent *dent);
|
H A D | path.c | 10 #include <dirent.h> 59 bool is_directory(const char *base_path, const struct dirent *dent) in is_directory() 71 bool is_executable_file(const char *base_path, const struct dirent *dent) in is_executable_file()
|
H A D | thread_map.c | 2 #include <dirent.h> 24 static int filter(const struct dirent *dir) in filter() 39 struct dirent **namelist = NULL; in thread_map__new_by_pid() 80 struct dirent *dirent, **namelist = NULL; in __thread_map__new_all_cpus() local 93 while ((dirent = readdir(proc)) != NULL) { in __thread_map__new_all_cpus() 96 pid_t pid = strtol(dirent->d_name, &end, 10); in __thread_map__new_all_cpus() 101 snprintf(path, sizeof(path), "/proc/%s", dirent->d_name); in __thread_map__new_all_cpus() 187 struct dirent **namelist = NULL; in thread_map__new_by_pid_str()
|
H A D | util.c | 8 #include <dirent.h> 155 struct dirent *d; in rm_rf_depth_pat() 221 static bool kcore_dir_filter(const char *name __maybe_unused, struct dirent *d) in kcore_dir_filter() 273 bool lsdir_no_dot_filter(const char *name __maybe_unused, struct dirent *d) in lsdir_no_dot_filter() 280 bool (*filter)(const char *, struct dirent *)) in lsdir() 284 struct dirent *d; in lsdir()
|
H A D | tracepoint.h | 5 #include <dirent.h> 8 int tp_event_has_id(const char *dir_path, struct dirent *evt_dir);
|
/kernel/linux/linux-5.10/tools/testing/selftests/proc/ |
H A D | proc.h | 4 #include <dirent.h> 43 static struct dirent *xreaddir(DIR *d) in xreaddir() 45 struct dirent *de; in xreaddir()
|
/kernel/linux/linux-6.6/tools/testing/selftests/proc/ |
H A D | proc.h | 4 #include <dirent.h> 43 static struct dirent *xreaddir(DIR *d) in xreaddir() 45 struct dirent *de; in xreaddir()
|
H A D | proc-tid0.c | 18 #include <dirent.h> 67 struct dirent *de; in main()
|
/kernel/liteos_a/fs/vfs/ |
H A D | Makefile | 75 $(LITEOSTHIRDPARTY)/NuttX/fs/dirent/fs_closedir.c \ 76 $(LITEOSTHIRDPARTY)/NuttX/fs/dirent/fs_opendir.c \ 77 $(LITEOSTHIRDPARTY)/NuttX/fs/dirent/fs_readdir.c \ 78 $(LITEOSTHIRDPARTY)/NuttX/fs/dirent/fs_rewinddir.c \ 79 $(LITEOSTHIRDPARTY)/NuttX/fs/dirent/fs_seekdir.c \ 80 $(LITEOSTHIRDPARTY)/NuttX/fs/dirent/fs_telldir.c \
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | util.h | 19 struct dirent; 25 struct strlist *lsdir(const char *name, bool (*filter)(const char *, struct dirent *)); 26 bool lsdir_no_dot_filter(const char *name, struct dirent *d);
|
H A D | thread_map.c | 2 #include <dirent.h> 23 static int filter(const struct dirent *dir) in filter() 38 struct dirent **namelist = NULL; in thread_map__new_by_pid() 79 struct dirent *dirent, **namelist = NULL; in __thread_map__new_all_cpus() local 92 while ((dirent = readdir(proc)) != NULL) { in __thread_map__new_all_cpus() 95 pid_t pid = strtol(dirent->d_name, &end, 10); in __thread_map__new_all_cpus() 100 snprintf(path, sizeof(path), "/proc/%s", dirent->d_name); in __thread_map__new_all_cpus() 186 struct dirent **namelist = NULL; in thread_map__new_by_pid_str()
|
H A D | path.h | 8 struct dirent; 14 bool is_directory(const char *base_path, const struct dirent *dent);
|
/kernel/linux/linux-6.6/tools/lib/api/fs/ |
H A D | tracing_path.h | 6 #include <dirent.h> 9 int tracing_events__scandir_alphasort(struct dirent ***namelist);
|
/kernel/linux/linux-5.10/drivers/nubus/ |
H A D | nubus.c | 163 void nubus_get_rsrc_mem(void *dest, const struct nubus_dirent *dirent, in nubus_get_rsrc_mem() argument 167 unsigned char *p = nubus_dirptr(dirent); in nubus_get_rsrc_mem() 170 *t++ = nubus_get_rom(&p, 1, dirent->mask); in nubus_get_rsrc_mem() 176 unsigned int nubus_get_rsrc_str(char *dest, const struct nubus_dirent *dirent, in nubus_get_rsrc_str() argument 180 unsigned char *p = nubus_dirptr(dirent); in nubus_get_rsrc_str() 183 unsigned char c = nubus_get_rom(&p, 1, dirent->mask); in nubus_get_rsrc_str() 197 const struct nubus_dirent *dirent, in nubus_seq_write_rsrc_mem() 202 unsigned char *p = nubus_dirptr(dirent); in nubus_seq_write_rsrc_mem() 210 dirent->mask); in nubus_seq_write_rsrc_mem() 216 seq_putc(m, nubus_get_rom(&p, 1, dirent in nubus_seq_write_rsrc_mem() 196 nubus_seq_write_rsrc_mem(struct seq_file *m, const struct nubus_dirent *dirent, unsigned int len) nubus_seq_write_rsrc_mem() argument [all...] |
/kernel/linux/linux-6.6/drivers/nubus/ |
H A D | nubus.c | 170 void nubus_get_rsrc_mem(void *dest, const struct nubus_dirent *dirent, in nubus_get_rsrc_mem() argument 174 unsigned char *p = nubus_dirptr(dirent); in nubus_get_rsrc_mem() 177 *t++ = nubus_get_rom(&p, 1, dirent->mask); in nubus_get_rsrc_mem() 183 unsigned int nubus_get_rsrc_str(char *dest, const struct nubus_dirent *dirent, in nubus_get_rsrc_str() argument 187 unsigned char *p = nubus_dirptr(dirent); in nubus_get_rsrc_str() 190 unsigned char c = nubus_get_rom(&p, 1, dirent->mask); in nubus_get_rsrc_str() 204 const struct nubus_dirent *dirent, in nubus_seq_write_rsrc_mem() 209 unsigned char *p = nubus_dirptr(dirent); in nubus_seq_write_rsrc_mem() 217 dirent->mask); in nubus_seq_write_rsrc_mem() 223 seq_putc(m, nubus_get_rom(&p, 1, dirent in nubus_seq_write_rsrc_mem() 203 nubus_seq_write_rsrc_mem(struct seq_file *m, const struct nubus_dirent *dirent, unsigned int len) nubus_seq_write_rsrc_mem() argument [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/alsa/ |
H A D | conf.c | 13 #include <dirent.h> 283 static int filename_filter(const struct dirent *dirent) in filename_filter() argument 287 if (dirent == NULL) in filename_filter() 289 if (dirent->d_type == DT_DIR) in filename_filter() 291 flen = strlen(dirent->d_name); in filename_filter() 294 if (strncmp(&dirent->d_name[flen-5], ".conf", 5) == 0) in filename_filter() 302 struct dirent **namelist; in conf_load()
|
/kernel/liteos_m/kal/libc/newlib/porting/include/ |
H A D | dirent.h | 60 struct dirent { struct 70 struct dirent *readdir(DIR *dir);
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | nubus.h | 156 void nubus_get_rsrc_mem(void *dest, const struct nubus_dirent *dirent, 158 unsigned int nubus_get_rsrc_str(char *dest, const struct nubus_dirent *dirent, 161 const struct nubus_dirent *dirent,
|
/kernel/linux/linux-5.10/tools/iio/ |
H A D | lsiio.c | 9 #include <dirent.h> 43 const struct dirent *ent; in dump_channels() 103 const struct dirent *ent; in dump_devices()
|