/linux-2.4.37.9/fs/ |
D | readdir.c | 100 int dcache_readdir(struct file * filp, void * dirent, filldir_t filldir) in dcache_readdir() argument 111 if (filldir(dirent, ".", 1, i, ino, DT_DIR) < 0) in dcache_readdir() 120 if (filldir(dirent, "..", 2, i, ino, DT_DIR) < 0) in dcache_readdir() 138 …if (filldir(dirent, next->d_name.name, next->d_name.len, filp->f_pos, next->d_inode->i_ino, DT_UNK… in dcache_readdir() 183 struct old_linux_dirent * dirent; member 191 struct old_linux_dirent * dirent; in fillonedir() local 196 dirent = buf->dirent; in fillonedir() 197 put_user(ino, &dirent->d_ino); in fillonedir() 198 put_user(offset, &dirent->d_offset); in fillonedir() 199 put_user(namlen, &dirent->d_namlen); in fillonedir() [all …]
|
/linux-2.4.37.9/arch/parisc/hpux/ |
D | fs.c | 58 struct hpux_dirent * dirent; in filldir() local 60 int reclen = ROUND_UP(NAME_OFFSET(dirent) + namlen + 1); in filldir() 65 dirent = buf->previous; in filldir() 66 if (dirent) in filldir() 67 put_user(offset, &dirent->d_off); in filldir() 68 dirent = buf->current_dir; in filldir() 69 buf->previous = dirent; in filldir() 70 put_user(ino, &dirent->d_ino); in filldir() 71 put_user(reclen, &dirent->d_reclen); in filldir() 72 put_user(namlen, &dirent->d_namlen); in filldir() [all …]
|
/linux-2.4.37.9/arch/sparc/kernel/ |
D | sys_sunos.c | 327 struct sunos_dirent * dirent; in sunos_filldir() local 329 int reclen = ROUND_UP(NAME_OFFSET(dirent) + namlen + 1); in sunos_filldir() 334 dirent = buf->previous; in sunos_filldir() 335 if (dirent) in sunos_filldir() 336 put_user(offset, &dirent->d_off); in sunos_filldir() 337 dirent = buf->curr; in sunos_filldir() 338 buf->previous = dirent; in sunos_filldir() 339 put_user(ino, &dirent->d_ino); in sunos_filldir() 340 put_user(namlen, &dirent->d_namlen); in sunos_filldir() 341 put_user(reclen, &dirent->d_reclen); in sunos_filldir() [all …]
|
/linux-2.4.37.9/fs/umsdos/ |
D | notes | 9 error = verify_area(VERIFY_WRITE, dirent, count*sizeof (*dirent)); 13 error = verify_area(VERIFY_WRITE, dirent, sizeof (*dirent));
|
D | mangle.c | 112 struct umsdos_dirent dirent; in umsdos_evalrecsize() local 113 int nbrec = 1 + ((len - 1 + (dirent.name - (char *) &dirent)) in umsdos_evalrecsize() 125 struct umsdos_dirent dirent; in umsdos_evalrecsize_old() local 126 int size = len + (dirent.name - (char *) &dirent); in umsdos_evalrecsize_old()
|
/linux-2.4.37.9/arch/sparc64/kernel/ |
D | sys_sunos32.c | 282 struct sunos_dirent * dirent; in sunos_filldir() local 284 int reclen = ROUND_UP(NAME_OFFSET(dirent) + namlen + 1); in sunos_filldir() 289 dirent = buf->previous; in sunos_filldir() 290 if (dirent) in sunos_filldir() 291 put_user(offset, &dirent->d_off); in sunos_filldir() 292 dirent = buf->curr; in sunos_filldir() 293 buf->previous = dirent; in sunos_filldir() 294 put_user(ino, &dirent->d_ino); in sunos_filldir() 295 put_user(namlen, &dirent->d_namlen); in sunos_filldir() 296 put_user(reclen, &dirent->d_reclen); in sunos_filldir() [all …]
|
/linux-2.4.37.9/fs/hfs/ |
D | dir_cap.c | 179 void * dirent, filldir_t filldir) in cap_readdir() argument 193 if (filldir(dirent, DOT->Name, DOT_LEN, 0, dir->i_ino, DT_DIR)) { in cap_readdir() 209 if (filldir(dirent, DOT_DOT->Name, in cap_readdir() 236 if (filldir(dirent, tmp_name, len, in cap_readdir() 251 if (filldir(dirent, DOT_ROOTINFO->Name, in cap_readdir() 264 if (filldir(dirent, DOT_FINDERINFO->Name, in cap_readdir() 277 if (filldir(dirent, DOT_RESOURCE->Name, in cap_readdir()
|
D | dir_nat.c | 180 void * dirent, filldir_t filldir) in nat_readdir() argument 194 if (filldir(dirent, DOT->Name, DOT_LEN, 0, dir->i_ino, in nat_readdir() 211 if (filldir(dirent, DOT_DOT->Name, in nat_readdir() 238 if (filldir(dirent, tmp_name, len, in nat_readdir() 252 if (filldir(dirent, DOT_APPLEDOUBLE->Name, in nat_readdir() 260 if (filldir(dirent, DOT_PARENT->Name, in nat_readdir() 274 if (filldir(dirent, ROOTINFO->Name, in nat_readdir()
|
D | dir_dbl.c | 176 void * dirent, filldir_t filldir) in dbl_readdir() argument 186 if (filldir(dirent, DOT->Name, DOT_LEN, 0, dir->i_ino, in dbl_readdir() 195 if (filldir(dirent, DOT_DOT->Name, DOT_DOT_LEN, 1, in dbl_readdir() 233 if (filldir(dirent, tmp_name, len, filp->f_pos, ino, in dbl_readdir() 246 if (filldir(dirent, PCNT_ROOTINFO->Name, in dbl_readdir()
|
/linux-2.4.37.9/fs/ncpfs/ |
D | ncplib_kernel.c | 273 __u32 dirent = NCP_FINFO(dir)->dirEntNum; in ncp_obtain_info() local 286 ncp_add_handle_path(server, volnum, dirent, 1, path); in ncp_obtain_info() 300 __u8 volnum, __u32 dirent, in ncp_obtain_DOS_dir_base() argument 312 ncp_add_handle_path(server, volnum, dirent, 1, path); in ncp_obtain_DOS_dir_base() 477 __u32 dirent = NCP_FINFO(dir)->dirEntNum; in ncp_modify_file_or_subdir_dos_info_path() local 488 ncp_add_handle_path(server, volnum, dirent, 1, path); in ncp_modify_file_or_subdir_dos_info_path() 506 __u8 have_dir_base, __u8 volnum, __u32 dirent, in ncp_DeleteNSEntry() argument 516 ncp_add_handle_path(server, volnum, dirent, have_dir_base, name); in ncp_DeleteNSEntry() 529 __u32 dirent; in ncp_del_file_or_subdir2() local 538 dirent = NCP_FINFO(inode)->DosDirNum; in ncp_del_file_or_subdir2() [all …]
|
D | dir.c | 393 static int ncp_readdir(struct file *filp, void *dirent, filldir_t filldir) in ncp_readdir() argument 417 if (filldir(dirent, ".", 1, 0, inode->i_ino, DT_DIR)) in ncp_readdir() 422 if (filldir(dirent, "..", 2, 1, in ncp_readdir() 472 res = filldir(dirent, dent->d_name.name, in ncp_readdir() 517 ncp_read_volume_list(filp, dirent, filldir, &ctl); in ncp_readdir() 519 ncp_do_readdir(filp, dirent, filldir, &ctl); in ncp_readdir() 542 ncp_fill_cache(struct file *filp, void *dirent, filldir_t filldir, in ncp_fill_cache() argument 625 ctl.filled = filldir(dirent, qname.name, qname.len, in ncp_fill_cache() 637 ncp_read_volume_list(struct file *filp, void *dirent, filldir_t filldir, in ncp_read_volume_list() argument 666 if (!ncp_fill_cache(filp, dirent, filldir, ctl, &entry)) in ncp_read_volume_list() [all …]
|
/linux-2.4.37.9/fs/isofs/ |
D | dir.c | 103 void *dirent, filldir_t filldir, in do_isofs_readdir() argument 178 if (filldir(dirent, ".", 1, filp->f_pos, inode->i_ino, DT_DIR) < 0) in do_isofs_readdir() 189 if (filldir(dirent, "..", 2, filp->f_pos, inode_number, DT_DIR) < 0) in do_isofs_readdir() 233 if (filldir(dirent, p, len, filp->f_pos, inode_number, DT_UNKNOWN) < 0) in do_isofs_readdir() 250 void *dirent, filldir_t filldir) in isofs_readdir() argument 262 result = do_isofs_readdir(inode, filp, dirent, filldir, tmpname, tmpde); in isofs_readdir()
|
/linux-2.4.37.9/fs/devpts/ |
D | root.c | 43 static int devpts_root_readdir(struct file *filp, void *dirent, filldir_t filldir) in devpts_root_readdir() argument 55 if (filldir(dirent, ".", 1, nr, inode->i_ino, DT_DIR) < 0) in devpts_root_readdir() 60 if (filldir(dirent, "..", 2, nr, inode->i_ino, DT_DIR) < 0) in devpts_root_readdir() 69 if ( filldir(dirent, numbuf, strlen(numbuf), nr, nr, DT_CHR) < 0 ) in devpts_root_readdir()
|
/linux-2.4.37.9/arch/mips/kernel/ |
D | sysirix.c | 1853 struct irix_dirent32 *dirent; in irix_filldir32() local 1856 unsigned short reclen = ROUND_UP32(NAME_OFFSET32(dirent) + namlen + 1); in irix_filldir32() 1865 dirent = buf->previous; in irix_filldir32() 1866 if (dirent) in irix_filldir32() 1867 __put_user(offset, &dirent->d_off); in irix_filldir32() 1868 dirent = buf->current_dir; in irix_filldir32() 1869 buf->previous = dirent; in irix_filldir32() 1870 __put_user(ino, &dirent->d_ino); in irix_filldir32() 1871 __put_user(reclen, &dirent->d_reclen); in irix_filldir32() 1872 copy_to_user(dirent->d_name, name, namlen); in irix_filldir32() [all …]
|
/linux-2.4.37.9/fs/fat/ |
D | dir.c | 353 static int fat_readdirx(struct inode *inode, struct file *filp, void *dirent, in fat_readdirx() argument 379 if (filldir(dirent, "..", cpos+1, cpos, MSDOS_ROOT_INO, DT_DIR) < 0) in fat_readdirx() 562 if (filldir(dirent, bufname, i, *furrfu, inum, in fat_readdirx() 575 if (filldir(dirent, longname, long_len, *furrfu, inum, in fat_readdirx() 595 int fat_readdir(struct file *filp, void *dirent, filldir_t filldir) in fat_readdir() argument 598 return fat_readdirx(inode, filp, dirent, filldir, 0, 0); in fat_readdir() 609 struct dirent *d1 = (struct dirent *)buf; in vfat_ioctl_fill() 610 struct dirent *d2 = d1 + 1; in vfat_ioctl_fill() 662 struct dirent *d1 = (struct dirent *)arg; in fat_dir_ioctl() 663 err = verify_area(VERIFY_WRITE, d1, sizeof(struct dirent[2])); in fat_dir_ioctl() [all …]
|
/linux-2.4.37.9/fs/affs/ |
D | dir.c | 50 affs_readdir(struct file *filp, void *dirent, filldir_t filldir) in affs_readdir() argument 76 if (filldir(dirent, ".", 1, f_pos, inode->i_ino, DT_DIR) < 0) in affs_readdir() 82 if (filldir(dirent, "..", 2, f_pos, filp->f_dentry->d_parent->d_inode->i_ino, DT_DIR) < 0) in affs_readdir() 142 if (filldir(dirent, name, namelen, f_pos, ino, DT_UNKNOWN) < 0) in affs_readdir()
|
/linux-2.4.37.9/fs/udf/ |
D | dir.c | 81 int udf_readdir(struct file *filp, void *dirent, filldir_t filldir) in udf_readdir() argument 88 if (filldir(dirent, ".", 1, filp->f_pos, dir->i_ino, DT_DIR) < 0) in udf_readdir() 93 result = do_udf_readdir(dir, filp, filldir, dirent); in udf_readdir() 99 do_udf_readdir(struct inode * dir, struct file *filp, filldir_t filldir, void *dirent) in do_udf_readdir() argument 238 if (filldir(dirent, fname, flen, filp->f_pos, iblock, dt_type) < 0) in do_udf_readdir()
|
/linux-2.4.37.9/fs/proc/ |
D | root.c | 92 void * dirent, filldir_t filldir) in proc_root_readdir() argument 97 int error = proc_readdir(filp, dirent, filldir); in proc_root_readdir() 103 return proc_pid_readdir(filp, dirent, filldir); in proc_root_readdir()
|
/linux-2.4.37.9/arch/alpha/kernel/ |
D | osf_sys.c | 102 struct osf_dirent *dirent; member 111 struct osf_dirent *dirent; in osf_filldir() local 113 int reclen = ROUND_UP(NAME_OFFSET(dirent) + namlen + 1); in osf_filldir() 122 dirent = buf->dirent; in osf_filldir() 123 put_user(ino, &dirent->d_ino); in osf_filldir() 124 put_user(namlen, &dirent->d_namlen); in osf_filldir() 125 put_user(reclen, &dirent->d_reclen); in osf_filldir() 126 copy_to_user(dirent->d_name, name, namlen); in osf_filldir() 127 put_user(0, dirent->d_name + namlen); in osf_filldir() 128 dirent = (char *)dirent + reclen; in osf_filldir() [all …]
|
/linux-2.4.37.9/drivers/usb/ |
D | inode.c | 379 static int usbdevfs_root_readdir(struct file *filp, void *dirent, filldir_t filldir) in usbdevfs_root_readdir() argument 395 if (filldir(dirent, ".", 1, i, IROOT, DT_DIR) < 0) in usbdevfs_root_readdir() 402 if (filldir(dirent, "..", 2, i, IROOT, DT_DIR) < 0) in usbdevfs_root_readdir() 412 …if (filldir(dirent, spec->name, strlen(spec->name), i, ISPECIAL | (filp->f_pos-2+IROOT), DT_UNKNOW… in usbdevfs_root_readdir() 428 if (filldir(dirent, numbuf, 3, filp->f_pos, IBUS | ((bus->busnum & 0xff) << 8), DT_UNKNOWN) < 0) in usbdevfs_root_readdir() 437 …ct usb_device *dev, unsigned long ino, int pos, struct file *filp, void *dirent, filldir_t filldir) in bus_readdir() argument 448 if (filldir(dirent, numbuf, 3, filp->f_pos, ino | (dev->devnum & 0xff), DT_UNKNOWN) < 0) in bus_readdir() 455 pos = bus_readdir(dev->children[i], ino, pos, filp, dirent, filldir); in bus_readdir() 462 static int usbdevfs_bus_readdir(struct file *filp, void *dirent, filldir_t filldir) in usbdevfs_bus_readdir() argument 473 if (filldir(dirent, ".", 1, filp->f_pos, ino, DT_DIR) < 0) in usbdevfs_bus_readdir() [all …]
|
/linux-2.4.37.9/fs/adfs/ |
D | dir.c | 29 adfs_readdir(struct file *filp, void *dirent, filldir_t filldir) in adfs_readdir() argument 47 if (filldir(dirent, ".", 1, 0, inode->i_ino, DT_DIR) < 0) in adfs_readdir() 52 if (filldir(dirent, "..", 2, 1, dir.parent_id, DT_DIR) < 0) in adfs_readdir() 66 if (filldir(dirent, obj.name, obj.name_len, in adfs_readdir()
|
/linux-2.4.37.9/fs/coda/ |
D | dir.c | 46 static int coda_readdir(struct file *file, void *dirent, filldir_t filldir); 54 void *dirent, struct dentry *dir); 490 int coda_readdir(struct file *coda_file, void *dirent, filldir_t filldir) in coda_readdir() argument 508 ret = coda_venus_readdir(host_file, filldir, dirent, coda_dentry); in coda_readdir() 515 ret = host_file->f_op->readdir(host_file, filldir, dirent); in coda_readdir() 545 void *dirent, struct dentry *dir) in coda_venus_readdir() argument 562 ret = filldir(dirent, ".", 1, 0, dir->d_inode->i_ino, DT_DIR); in coda_venus_readdir() 568 ret = filldir(dirent, "..", 2, 1, dir->d_parent->d_inode->i_ino, DT_DIR); in coda_venus_readdir() 618 ret = filldir(dirent, name.name, name.len, filp->f_pos, in coda_venus_readdir()
|
/linux-2.4.37.9/fs/hpfs/ |
D | dir.c | 49 int hpfs_readdir(struct file *filp, void *dirent, filldir_t filldir) in hpfs_readdir() argument 111 if (filldir(dirent, ".", 1, filp->f_pos, inode->i_ino, DT_DIR) < 0) { in hpfs_readdir() 118 if (filldir(dirent, "..", 2, filp->f_pos, inode->i_hpfs_parent_dir, DT_DIR) < 0) { in hpfs_readdir() 147 if (filldir(dirent, tempname, de->namelen, old_pos, de->fnode, DT_UNKNOWN) < 0) { in hpfs_readdir()
|
/linux-2.4.37.9/fs/qnx4/ |
D | dir.c | 23 static int qnx4_readdir(struct file *filp, void *dirent, filldir_t filldir) in qnx4_readdir() argument 65 if (filldir(dirent, de->di_fname, size, filp->f_pos, ino, DT_UNKNOWN) < 0) { in qnx4_readdir()
|
/linux-2.4.37.9/fs/efs/ |
D | dir.c | 20 static int efs_readdir(struct file *filp, void *dirent, filldir_t filldir) { in efs_readdir() argument 78 filldir(dirent, nameptr, namelen, filp->f_pos, inodenum, DT_UNKNOWN); in efs_readdir()
|