summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]configure.ac7
-rwxr-xr-x[-rw-r--r--]machine/m_macosx.c17
-rw-r--r--ptop.1.in3
3 files changed, 10 insertions, 17 deletions
diff --git a/configure.ac b/configure.ac
index 12c66bc..a184bf7 100644..100755
--- a/configure.ac
+++ b/configure.ac
@@ -197,12 +197,7 @@ else
sunos4*) MODULE=sunos4;;
sysv4*) MODULE=svr4;;
sysv5*) MODULE=svr5;;
- darwin*)
- echo "macosx"
- echo "The macosx module is untested. Use at your own risk."
- echo "If you really want to use this module, please run configure as follows:"
- echo " ./configure --with-module=macosx"
- AC_MSG_ERROR([macosx module unsupported]);;
+ darwin*) MODULE=macosx;;
*) echo "none"
echo "Configure doesn't recognize this system and doesn't know"
echo "what module to assign to it. Help the cause and run the"
diff --git a/machine/m_macosx.c b/machine/m_macosx.c
index 993baf1..e8ba9d5 100644..100755
--- a/machine/m_macosx.c
+++ b/machine/m_macosx.c
@@ -35,7 +35,6 @@
* MacOS kernel stuff
*/
-#include <kvm.h>
#include <fcntl.h>
#include <sys/dkstat.h>
#include <sys/sysctl.h>
@@ -131,10 +130,10 @@ static long memory_stats[7];
host_cpu_load_info_data_t cpuload;
-static long cp_time[CPU_STATE_MAX];
-static long cp_old[CPU_STATE_MAX];
-static long cp_diff[CPU_STATE_MAX];
-static int cpu_states[CPU_STATE_MAX];
+static int64_t cp_time[CPU_STATE_MAX];
+static int64_t cp_old[CPU_STATE_MAX];
+static int64_t cp_diff[CPU_STATE_MAX];
+static int64_t cpu_states[CPU_STATE_MAX];
/*
* types
@@ -667,7 +666,6 @@ get_process_info(struct system_info * si,
/* set up flags which define what we are going to select */
show_idle = sel->idle;
- show_system = sel->system;
show_uid = sel->uid != -1;
show_command = sel->command != NULL;
show_fullcmd = sel->fullcmd;
@@ -948,11 +946,8 @@ proc_compare(const void *pp1, const void *pp2)
* and "renice" commands.
*/
-int
-proc_owner(pid)
-
-int pid;
-
+uid_t
+proc_owner(pid_t pid)
{
register int cnt;
register struct macos_proc **prefp;
diff --git a/ptop.1.in b/ptop.1.in
index 57c81b5..1ff2603 100644
--- a/ptop.1.in
+++ b/ptop.1.in
@@ -77,6 +77,9 @@ By default, ptop displays both active and idle processes.
List all available color tags and the current set of tests used for
color highlighting, then exit.
.TP
+.B \-W
+Forces psql to prompt for a password before connecting to a database.
+.TP
.B \-b
Use \*(lqbatch\*(rq mode. In this mode, all input from the terminal is
ignored. Interrupt characters (such as ^C and ^\e) still have an effect.