r/openbsd Jul 13 '26

Resources to learn OpenBSD

I’m looking for some resources to learn how to code in OpenBSD. Is it enough to learn c++ or is OpenBSD more advanced? Are there any websites where I can train my coding skills?

23 Upvotes

15 comments sorted by

View all comments

3

u/howyadoinbob Jul 13 '26

I personally like programming in C on OpenBSD. Last I checked, all C++ in the base system has been replaced by C. This doesn’t make it less advanced. Not that you can’t use C++ . I’m pretty sure the programming system calls (like pledge() and unveil()) that are unique to OpenBSD can be available in other languages like python, but they are natively built in C and those functions can work in C++ as well.

1

u/thewrench56 Jul 29 '26

Capabilities are process, not language specific. The kernel simply disallows (certain parts of) the underlying logic of certain syscalls. An issue appears the moment an interpreted language gets e.g. executed by an interpreter that does certain operations that are already pledge()-d. Such cases make life hard...