svn commit: r194829 - in projects/libprocstat/sys: kern sys
Kostik Belousov
kostikbel at gmail.com
Wed Jun 24 13:40:22 UTC 2009
On Wed, Jun 24, 2009 at 12:07:25PM +0000, Ulf Lilleengen wrote:
> Author: lulf
> Date: Wed Jun 24 12:07:25 2009
> New Revision: 194829
> URL: http://svn.freebsd.org/changeset/base/194829
>
> Log:
> - Add extra fields to kinfo_file that is needed by fstat, and export it in the
> kern.proc.filedesc sysctl.
> #if defined(__amd64__) || defined(__i386__)
> -#define KINFO_FILE_SIZE 1392
> +#define KINFO_FILE_SIZE 1412
> #endif
>
> struct kinfo_file {
> @@ -324,6 +324,11 @@ struct kinfo_file {
> int kf_sock_protocol; /* Socket protocol. */
> struct sockaddr_storage kf_sa_local; /* Socket address. */
> struct sockaddr_storage kf_sa_peer; /* Peer address. */
> + long kf_fsid; /* Vnode filesystem id. */
> + long kf_fileid; /* Global file id. */
> + mode_t kf_mode; /* File mode. */
> + u_long kf_size; /* File size. */
> + dev_t kf_rdev; /* File device. */
> int _kf_ispare[16]; /* Space for more stuff. */
> /* Truncated before copyout in sysctl */
> char kf_path[PATH_MAX]; /* Path to file, if any. */
I think these new fields should be taken from the spare padding in
the kinfo_file structure.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-projects/attachments/20090624/ed6c4c87/attachment.pgp
More information about the svn-src-projects
mailing list