/openbmc/linux/fs/ |
H A D | readdir.c | 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() 203 unsafe_put_user(d_ino, &dirent->d_ino, efault_end); in fillonedir() 204 unsafe_put_user(offset, &dirent->d_offset, efault_end); in fillonedir() 205 unsafe_put_user(namlen, &dirent->d_namlen, efault_end); in fillonedir() 206 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in fillonedir() [all …]
|
/openbmc/linux/fs/fuse/ |
H A D | readdir.c | 33 struct fuse_dirent *dirent, loff_t pos) in fuse_add_dirent_to_cache() argument 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() argument 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->type); in fuse_emit() 130 struct fuse_dirent *dirent = (struct fuse_dirent *) buf; in parse_dirfile() local 131 size_t reclen = FUSE_DIRENT_SIZE(dirent); in parse_dirfile() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/uw-imap/uw-imap/ |
H A D | 0001-Fix-Wincompatible-function-pointer-types.patch | 8 …e function pointer types passing 'int (struct dirent *)' to parameter of type 'int (*)(const struc… 11 …d/tmp/work/riscv64-yoe-linux/uw-imap/2007f-r0/recipe-sysroot/usr/include/dirent.h:259:13: note: pa… 12 int (*__selector) (const struct dirent *), 14 …*, const void *)' to parameter of type 'int (*)(const struct dirent **, const struct dirent **)' [… 37 +int mh_numsort (const struct dirent **d1,const struct dirent **d2); 55 +int mh_numsort (const struct dirent **d1,const struct dirent **d2) 79 +int mix_msgfsort (const struct dirent **d1,const struct dirent **d2); 106 +int mix_msgfsort (const struct dirent **d1,const struct dirent **d2) 121 +int mx_numsort (const struct dirent **d1,const struct dirent **d2); 139 +int mx_numsort (const struct dirent **d1,const struct dirent **d2) [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-connectivity/wvdial/wvdial/ |
H A D | musl-support.patch | 14 static int filesort(const dirent **e1, const dirent **e2) 20 - dirent const * const *e1 = (dirent const * const *)_e1; 21 - dirent const * const *e2 = (dirent const * const *)_e2;
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/breakpad/breakpad/ |
H A D | 0003-Fix-conflict-between-musl-libc-dirent.h-and-lss.patch | 4 Subject: [PATCH 3/3] Fix conflict between musl libc <dirent.h> and lss 6 Include <dirent.h> late to avoid the macro getdents64 in musl 7 libc's <dirent.h> to conflict with linux_sycall_support.h. 20 -#include <dirent.h> 28 +#include <dirent.h>
|
/openbmc/linux/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 | thread_map.c | 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.h | 30 struct dirent; 36 struct strlist *lsdir(const char *name, bool (*filter)(const char *, struct dirent *)); 37 bool lsdir_no_dot_filter(const char *name, struct dirent *d);
|
H A D | util.c | 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() argument 284 struct dirent *d; in lsdir()
|
H A D | tracepoint.c | 12 int tp_event_has_id(const char *dir_path, struct dirent *evt_dir) in tp_event_has_id() 32 struct dirent *sys_dirent, *evt_dirent; in is_valid_tracepoint()
|
H A D | synthetic-events.c | 593 struct dirent *dent; in perf_event__walk_cgroup_tree() 740 static int filter_task(const struct dirent *dirent) in filter_task() argument 742 return isdigit(dirent->d_name[0]); in filter_task() 754 struct dirent **dirent; in __event__synthesize_thread() local 789 n = scandir(filename, &dirent, filter_task, NULL); in __event__synthesize_thread() 798 _pid = strtol(dirent[i]->d_name, &end, 10); in __event__synthesize_thread() 833 zfree(&dirent[i]); in __event__synthesize_thread() 834 free(dirent); in __event__synthesize_thread() 921 struct dirent **dirent, in __perf_event__synthesize_threads() argument 951 if (!isdigit(dirent[i]->d_name[0])) in __perf_event__synthesize_threads() [all …]
|
H A D | path.c | 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()
|
/openbmc/qemu/hw/9pfs/ |
H A D | 9p-util.h | 219 static inline off_t qemu_dirent_off(struct dirent *dent) in qemu_dirent_off() 239 static inline struct dirent *qemu_dirent_dup(struct dirent *dent) in qemu_dirent_dup() 252 sz = offsetof(struct dirent, d_name) + in qemu_dirent_dup()
|
H A D | codir.c | 31 static int do_readdir(V9fsPDU *pdu, V9fsFidState *fidp, struct dirent **dent) in do_readdir() 35 struct dirent *entry; in do_readdir() 53 struct dirent **dent) in v9fs_co_readdir() 80 struct dirent *dent; in do_readdir_many()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-kernel/trace-cmd/files/ |
H A D | 0002-Drop-using-_LARGEFILE64_SOURCE.patch | 44 #include <dirent.h> 68 #include <dirent.h> 80 #include <dirent.h> 92 #include <dirent.h> 116 #include <dirent.h> 128 #include <dirent.h> 140 #include <dirent.h>
|
/openbmc/linux/arch/alpha/kernel/ |
H A D | osf_sys.c | 105 struct osf_dirent __user *dirent; member 115 struct osf_dirent __user *dirent; in osf_filldir() local 134 dirent = buf->dirent; in osf_filldir() 135 if (put_user(d_ino, &dirent->d_ino) || in osf_filldir() 136 put_user(namlen, &dirent->d_namlen) || in osf_filldir() 137 put_user(reclen, &dirent->d_reclen) || in osf_filldir() 138 copy_to_user(dirent->d_name, name, namlen) || in osf_filldir() 139 put_user(0, dirent->d_name + namlen)) in osf_filldir() 141 dirent = (void __user *)dirent + reclen; in osf_filldir() 142 buf->dirent = dirent; in osf_filldir() [all …]
|
/openbmc/openbmc/poky/meta/recipes-extended/zip/zip-3.0/ |
H A D | 0001-configure-Include-dirent.h-for-closedir-opendir-APIs.patch | 4 Subject: [PATCH] configure: Include dirent.h for closedir/opendir APIs 12 due to missing signatures which come from dirent.h 39 +#include <dirent.h>
|
/openbmc/linux/tools/testing/selftests/alsa/ |
H A D | conf.c | 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()
|
/openbmc/linux/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() argument 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->mask)); in nubus_seq_write_rsrc_mem()
|
/openbmc/linux/tools/testing/selftests/proc/ |
H A D | proc.h | 43 static struct dirent *xreaddir(DIR *d) in xreaddir() 45 struct dirent *de; in xreaddir()
|
/openbmc/linux/include/linux/ |
H A D | nubus.h | 157 void nubus_get_rsrc_mem(void *dest, const struct nubus_dirent *dirent, 159 unsigned int nubus_get_rsrc_str(char *dest, const struct nubus_dirent *dirent, 162 const struct nubus_dirent *dirent,
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/ |
H A D | 0016-pass-correct-parameters-to-getdents64.patch | 7 …passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'struct dirent *' [-Werror,-Winco… 11 …on at ../git/src/basic/stat-util.c:78:9) *' to parameter of type 'struct dirent *' [-Werror,-Winco… 31 + n = getdents64(dir_fd, (struct dirent*)((uint8_t*) de->buffer + de->buffer_size), …
|
/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd/ |
H A D | 0016-pass-correct-parameters-to-getdents64.patch | 7 …passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'struct dirent *' [-Werror,-Winco… 11 …on at ../git/src/basic/stat-util.c:78:9) *' to parameter of type 'struct dirent *' [-Werror,-Winco… 31 + n = getdents64(dir_fd, (struct dirent*)((uint8_t*) de->buffer + de->buffer_size), …
|
/openbmc/linux/tools/thermal/thermometer/ |
H A D | thermometer.c | 292 struct dirent *dirent; in thermometer_init() local 307 while ((dirent = readdir(dir))) { in thermometer_init() 312 if (strncmp(dirent->d_name, tz_dirname, strlen(tz_dirname))) in thermometer_init() 315 sprintf(tz_path, CLASS_THERMAL"/%s/type", dirent->d_name); in thermometer_init() 331 if (thermometer_add_tz(dirent->d_name, tz_type, in thermometer_init()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-benchmark/libhugetlbfs/files/ |
H A D | 0010-Include-dirent.h-for-ino_t.patch | 4 Subject: [PATCH] Include dirent.h for ino_t 27 +#include <dirent.h>
|