From owner-svn-src-projects@FreeBSD.ORG Wed Jun 24 15:44:05 2009 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E68871065688; Wed, 24 Jun 2009 15:44:05 +0000 (UTC) (envelope-from lulf@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D50AB8FC24; Wed, 24 Jun 2009 15:44:05 +0000 (UTC) (envelope-from lulf@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5OFi444019126; Wed, 24 Jun 2009 15:44:04 GMT (envelope-from lulf@svn.freebsd.org) Received: (from lulf@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5OFi43Q019124; Wed, 24 Jun 2009 15:44:04 GMT (envelope-from lulf@svn.freebsd.org) Message-Id: <200906241544.n5OFi43Q019124@svn.freebsd.org> From: Ulf Lilleengen Date: Wed, 24 Jun 2009 15:44:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r194847 - projects/libprocstat/sys/sys X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2009 15:44:06 -0000 Author: lulf Date: Wed Jun 24 15:44:04 2009 New Revision: 194847 URL: http://svn.freebsd.org/changeset/base/194847 Log: - Change types to those used internally in the kernel. - Add kf_status to be used for kinfo-specific flags. Modified: projects/libprocstat/sys/sys/user.h Modified: projects/libprocstat/sys/sys/user.h ============================================================================== --- projects/libprocstat/sys/sys/user.h Wed Jun 24 15:41:21 2009 (r194846) +++ projects/libprocstat/sys/sys/user.h Wed Jun 24 15:44:04 2009 (r194847) @@ -312,6 +312,7 @@ struct kinfo_ofile { struct kinfo_file { int kf_structsize; /* Variable size of record. */ + uint16_t kf_status; /* Status flags. */ int kf_type; /* Descriptor type. */ int kf_fd; /* Array index. */ int kf_ref_count; /* Reference count. */ @@ -324,11 +325,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. */ - uint32_t kf_fsid; /* Vnode filesystem id. */ - uint64_t kf_fileid; /* Global file id. */ - uint32_t kf_mode; /* File mode. */ - int64_t kf_size; /* File size. */ - uint32_t kf_rdev; /* File device. */ + dev_t kf_file_fsid; /* Vnode filesystem id. */ + uint64_t kf_file_fileid; /* Global file id. */ + mode_t kf_file_mode; /* File mode. */ + off_t kf_file_size; /* File size. */ + dev_t kf_file_rdev; /* File device. */ int _kf_ispare[9]; /* Space for more stuff. */ /* Truncated before copyout in sysctl */ char kf_path[PATH_MAX]; /* Path to file, if any. */