Skip to content

Commit

Permalink
remove the in-kernel struct dirent{,64}
Browse files Browse the repository at this point in the history
The kernel struct dirent{,64} were different from the ones in
userspace.

Even worse, we exported the kernel ones to userspace.

But after the fat usages are fixed we can remove the conflicting
kernel versions.

Reviewed-by: H. Peter Anvin <[email protected]>
Signed-off-by: Adrian Bunk <[email protected]>
Cc: OGAWA Hirofumi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
AdrianBunk authored and torvalds committed Jul 25, 2008
1 parent 7557bc6 commit cf6ae8b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion include/linux/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ unifdef-y += connector.h
unifdef-y += cuda.h
unifdef-y += cyclades.h
unifdef-y += dccp.h
unifdef-y += dirent.h
unifdef-y += dlm.h
unifdef-y += dlm_plock.h
unifdef-y += edd.h
Expand Down
20 changes: 0 additions & 20 deletions include/linux/dirent.h
Original file line number Diff line number Diff line change
@@ -1,23 +1,6 @@
#ifndef _LINUX_DIRENT_H
#define _LINUX_DIRENT_H

struct dirent {
long d_ino;
__kernel_off_t d_off;
unsigned short d_reclen;
char d_name[256]; /* We must not include limits.h! */
};

struct dirent64 {
__u64 d_ino;
__s64 d_off;
unsigned short d_reclen;
unsigned char d_type;
char d_name[256];
};

#ifdef __KERNEL__

struct linux_dirent64 {
u64 d_ino;
s64 d_off;
Expand All @@ -26,7 +9,4 @@ struct linux_dirent64 {
char d_name[0];
};

#endif /* __KERNEL__ */


#endif

0 comments on commit cf6ae8b

Please sign in to comment.