PFZheng / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

Basic NetBSD support #429

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I took the FreeBSD support as base and added NetBSD support until it compiled 
and didn't error out when I tried importing it.

Some code is still missing (e.g. swap status, network connections) while 
getting information on other stuff is just not supported (e.g. process 
executable path).

I tried not breaking FreeBSD, but obviously the patch should be tried there too 
before committing.

The diff is against 1.0.1, please apply it quickly so it doesn't age. :)

Original issue reported on code.google.com by tk@giga.or.at on 20 Sep 2013 at 4:26

Attachments:

GoogleCodeExporter commented 8 years ago
Slightly cleaned up patch.

Original comment by tk@giga.or.at on 20 Sep 2013 at 8:30

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the effort. NetBSD support is certainly welcome.

I'm not sure when I'll have the time to properly review and integrate your 
patch though, as it's a delicate task (plus I currently don't have access to 
any OpenBSD box).

If in the meantime you could work on adding missing features and/or make sure 
FreeBSD won't break that would be great.
If not, thanks anyway: having this patch is already an excellent starting point.

Original comment by g.rodola on 21 Sep 2013 at 6:04