|
|
@ -377,7 +377,7 @@ int sys_getdents(unsigned int fd, struct dirent *dirp, unsigned int count)
|
|
|
|
dirp_tmp->d_ino = d_entry->inode;
|
|
|
|
dirp_tmp->d_ino = d_entry->inode;
|
|
|
|
dirp_tmp->d_off = 0;
|
|
|
|
dirp_tmp->d_off = 0;
|
|
|
|
dirp_tmp->d_reclen = linux_dirent_size;
|
|
|
|
dirp_tmp->d_reclen = linux_dirent_size;
|
|
|
|
strcpy(dirp_tmp->d_name,dir_entry->name);
|
|
|
|
strcpy(dirp_tmp->d_name,d_entry->name);
|
|
|
|
|
|
|
|
|
|
|
|
//将dirp_tmp的信息转化成char类型并存到buf //dirp_tmp(linux_dirent)--->buf(char)
|
|
|
|
//将dirp_tmp的信息转化成char类型并存到buf //dirp_tmp(linux_dirent)--->buf(char)
|
|
|
|
memcpy(buf,dirp_tmp,linux_dirent_size);
|
|
|
|
memcpy(buf,dirp_tmp,linux_dirent_size);
|
|
|
|