Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jul 2016 03:07:14 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r303532 - head/lib/libproc
Message-ID:  <201607300307.u6U37EAo006001@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Sat Jul 30 03:07:14 2016
New Revision: 303532
URL: https://svnweb.freebsd.org/changeset/base/303532

Log:
  Add descriptions for fields in struct proc_handle.
  
  Remove the unused kq field and some unnecessary includes.
  
  MFC after:	1 month

Modified:
  head/lib/libproc/_libproc.h

Modified: head/lib/libproc/_libproc.h
==============================================================================
--- head/lib/libproc/_libproc.h	Sat Jul 30 03:05:23 2016	(r303531)
+++ head/lib/libproc/_libproc.h	Sat Jul 30 03:07:14 2016	(r303532)
@@ -26,27 +26,24 @@
  * $FreeBSD$
  */
 
-#include <sys/cdefs.h>
-#include <sys/param.h>
 #include <sys/types.h>
-#include <sys/event.h>
 #include <sys/ptrace.h>
+
 #include <rtld_db.h>
 
 #include "libproc.h"
 
 struct proc_handle {
 	pid_t	pid;			/* Process ID. */
-	int	kq;			/* Kernel event queue ID. */
 	int	flags;			/* Process flags. */
 	int	status;			/* Process status (PS_*). */
 	int	wstat;			/* Process wait status. */
 	rd_agent_t *rdap;		/* librtld_db agent */
-	rd_loadobj_t *rdobjs;
-	size_t	rdobjsz;
-	size_t	nobjs;
-	struct lwpstatus lwps;
-	rd_loadobj_t *rdexec;		/* rdobj index of program executable. */
+	rd_loadobj_t *rdobjs;		/* Array of loaded objects. */
+	size_t	rdobjsz;		/* Array size. */
+	size_t	nobjs;			/* Num. objects currently loaded. */
+	rd_loadobj_t *rdexec;		/* rdobj for program executable. */
+	struct lwpstatus lwps;		/* Process status. */
 	char	execname[MAXPATHLEN];	/* Path to program executable. */
 };
 



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