Martin "eto" Misuth
2379835910
Added platform dependent DEFAULT_SIGNAL define, for now for:
...
FreeBSD
Linux
Other platforms will have it undefined for now.
2015-10-06 14:04:22 +02:00
Martin "eto" Misuth
86417e4157
Unless I move signal definitions into the comment used for header generation,
...
htop fails to compile with:
```text
SignalsPanel.c:32:49: error: use of undeclared identifier 'Platform_signals'
Panel_set(this, i, (Object*) ListItem_new(Platform_signals[i].name, Platform_signals[i].number));
^
1 error generated.
*** Error code 1
```
2015-10-06 12:46:37 +02:00
Hisham Muhammad
3fe2f3e28e
Move list of signals to platform-specific code.
...
Implementations for Linux (tested) and FreeBSD (still untested, thanks to @etosan for providing the table).
Darwin and OpenBSD(ping @mmcco) builds should be broken now, pending their own tables.
2015-10-06 03:02:49 -03:00
Hisham Muhammad
adbfe3c3f1
Get FreeBSD tree to compile again with latest changes.
2015-03-16 03:14:20 -03:00
Hisham Muhammad
c29e53c5d5
Add a stub for the battery meter.
2014-11-27 21:07:42 -02:00
Hisham Muhammad
f4c49ff92e
"get max pid" for FreeBSD
2014-11-27 20:18:01 -02:00
Hisham Muhammad
6d92d7f73d
Load averages for FreeBSD!
2014-11-27 20:03:29 -02:00
Hisham Muhammad
3ba3d6fa6f
Add uptime calculation code.
2014-11-27 19:44:20 -02:00
Hisham Muhammad
a9f05c2a8b
Uptime meter for FreeBSD.
...
This will produce too much replicated code.
I think I'll use a lighter abstraction in things like this.
2014-11-27 19:33:37 -02:00
Hisham Muhammad
8915b29395
Beginnings of FreeBSD port!
2014-11-27 16:27:34 -02:00