Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
2ef1847a
Commit
2ef1847a
authored
Mar 13, 2006
by
Hisham Muhammad
Browse files
Complete implementation of --with-proc, making htop more FreeBSD-friendly
parent
5268ff8c
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
2ef1847a
What's new in version 0.6.1
* Accept --with-proc=<dir> in configure, to specify
alternative procfs locations (making htop friendlier
to the Linux compatibility layer in FreeBSD)
* Included icon .desktop and desktop entry
(thanks to Peter Hyman)
* Added a check to make sure that a root-user htop closes
...
...
ProcessList.c
View file @
2ef1847a
...
...
@@ -5,6 +5,11 @@ Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
#ifndef CONFIG_H
#define CONFIG_H
#include "config.h"
#endif
#include "ProcessList.h"
#include "Process.h"
#include "TypedVector.h"
...
...
htop.c
View file @
2ef1847a
...
...
@@ -12,6 +12,11 @@ in the source distribution for its full text.
#include <ctype.h>
#include <stdbool.h>
#ifndef CONFIG_H
#define CONFIG_H
#include "config.h"
#endif
#include "ProcessList.h"
#include "CRT.h"
#include "ListBox.h"
...
...
@@ -26,7 +31,6 @@ in the source distribution for its full text.
#include "SignalsListBox.h"
#include "TraceScreen.h"
#include "config.h"
#include "debug.h"
//#link m
...
...
@@ -213,6 +217,11 @@ int main(int argc, char** argv) {
setUserOnly
(
argv
[
2
],
&
userOnly
,
&
userId
);
}
}
if
(
access
(
PROCDIR
,
R_OK
)
!=
0
)
{
fprintf
(
stderr
,
"Error: could not read procfs (compiled to look in %s).
\n
"
,
PROCDIR
);
exit
(
1
);
}
ListBox
*
lb
;
int
quit
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment