-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenBSD support #562
Comments
Right now... let me know if you want separate files for implems, or everything stashed in _psutil_bsd.c with dozens of #ifdefs.
|
This is truly awesome and certainly a pretty big task (and feature). If the OpenBSD implementation doesn't differ too much then I'd say stashing everything into _psutil_bsd.c would be better but feel free to work into a separate file for now if it suits you better and then you/we can decide whether to leave it as-is. |
I know for sure some features wont be possible for OpenBSD:
What i've tested so far with my code and know works: swap_memory() returns bogus values but that's probably an overflow in my code. As for giving access to an openbsd box, i dont really have disposable ones where i could safely gave access to someone else - but that's fairly easy to install OpenBSD within kvm or virtualbox or whatever other virtualization solution.. or you can get a free shell on an OpenBSD shared shellbox like devio.us - they usually provide basic build environment which would allow you to quickly test things. On the long term, if i get notified in advance that some API is to be added/has to be implemented, i can have a look at it and see if it's doable on OpenBSD, no problem with that. I've already written similar code for xfce4-taskmanager for example...... |
Down to
after my last commits. One thing is sure, there will be no way to get paths for open files, cwd, or the executable. |
So i've resumed working on this in https://github.com/landryb/psutil/tree/openbsd, merged last changes on master and fixing on top of this. I used to be able to run the tests but probably after the changes from #578 it fails with version mismatch, while i have no other version of psutils..
|
Fixed in 3432cee, now i'm at
Which i think isnt so bad. That's what happens when stuff bitrots and isnt merged quickly... |
And after my last commit in 54fa691, it also works on OpenBSD/i386 (32 bits)
|
I will not have time to look into this for a while 'cause I'm in the US (at least for another month). FWICT 12 failures and 37 errors are still too much. We should try to address if not all at least most of those before including any of this. Also, it looks there's a lot of code in common with FreeBSD. That seems to suggest that the final version of this work will use a single _psutil_bsd.c file with occasional ifdefs here and here, or maybe have _psutil_bsd.c include a new arch/openbsd/platf.c. |
Yeah, same from my side, i wont have time to work on it until july/august. Just wanted to make sure work isnt lost.... |
Bootstrap file seems to work. Halted work because psutil does not yet support OpenBSD. giampaolo/psutil#562
Update here: #615 (comment) |
Related to #429, i'm working on a basic OpenBSD support in https://github.com/landryb/psutil/tree/openbsd - so far, builds, and passes some tests - dunno if you want an early pull request or when it's more complete.... Code copied from FreeBSD, then adapted for OpenBSD.
The text was updated successfully, but these errors were encountered: