Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jun 2009 11:22:08 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        Ulf Lilleengen <lulf@freebsd.org>
Cc:        svn-src-projects@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r194838 - projects/libprocstat/sys/sys
Message-ID:  <200906241122.08934.jhb@freebsd.org>
In-Reply-To: <200906241500.n5OF0jTG017766@svn.freebsd.org>
References:  <200906241500.n5OF0jTG017766@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 24 June 2009 11:00:45 am Ulf Lilleengen wrote:
> Author: lulf
> Date: Wed Jun 24 15:00:45 2009
> New Revision: 194838
> URL: http://svn.freebsd.org/changeset/base/194838
>=20
> Log:
>   - Use the spare fields instead of expanding the struct.
>   - Use types with known size.

Note that mode_t and dev_t have fixed sizes already and are fine to use, sa=
me=20
with off_t for the file size.

=46rom <sys/_types.h>:

typedef	__uint16_t	__mode_t;	/* permissions */
typedef	__int64_t	__off_t;	/* file offset */
typedef	__uint32_t	__dev_t;	/* device number */

=2D-=20
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906241122.08934.jhb>