* Added stat::st_blocks field as required by POSIX. This also closes ticket
#2261. * Made at least BFS report it more or less correctly (the attributes are ignored, though). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27791 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1224,6 +1224,7 @@
|
||||
#define st_ctime fssh_st_ctime
|
||||
#define st_crtime fssh_st_crtime
|
||||
#define st_type fssh_st_type
|
||||
#define st_blocks fssh_st_blocks
|
||||
|
||||
/* extended file types */
|
||||
#define S_ATTR_DIR FSSH_S_ATTR_DIR
|
||||
|
||||
@@ -30,6 +30,7 @@ struct fssh_stat {
|
||||
// TODO: we should find another solution for this, as BStatable::GetStat()
|
||||
// can only retrieve the R5 stat structure
|
||||
unsigned int fssh_st_type; /* attribute/index type */
|
||||
fssh_off_t fssh_st_blocks; /* number of blocks allocated for object */
|
||||
};
|
||||
typedef struct fssh_stat fssh_struct_stat;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user