[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: stat signed/unsigned
From: |
Jim Meyering |
Subject: |
Re: stat signed/unsigned |
Date: |
Wed, 31 Dec 2008 15:18:44 +0100 |
Michael Meskes <address@hidden> wrote:
> I just received a bug report against an old stat version but also looked into
> the up-to-date (6.10) one that fixed most of it. However, I wonder whether
> line
> 550 in stat.c
>
> out_int (pformat, prefix_len, statfsbuf->f_files);
>
> should better be
>
> out_uint (pformat, prefix_len, statfsbuf->f_files);
Hi Michael,
Thanks, but "man statfs" on linux-based systems shows it can be signed:
struct statfs {
long f_type; /* type of filesystem (see below) */
long f_bsize; /* optimal transfer block size */
long f_blocks; /* total data blocks in file system */
long f_bfree; /* free blocks in fs */
long f_bavail; /* free blocks avail to non-superuser */
long f_files; /* total file nodes in file system */
long f_ffree; /* free file nodes in fs */
fsid_t f_fsid; /* file system id */
long f_namelen; /* maximum length of filenames */
};
BTW, the latest test release is 7.0
and latest stable is 6.12.