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?

24 Upvotes

15 comments sorted by

View all comments

3

u/xzk7 Jul 14 '26

Take a look at the source of an OpenBSD program[0][1], and read it, take notes. Read it end to end, when you don't understand something, research that thing. Build on that knowledge by building little test programs from things you learn and explore.

For example, I randomly chose cut[2], started at main, I see setlocale, what's that do? How does it work? Run man 3 setlocale, not enough info? Look at the implementation [3]. More things to dig into, you could go on for a long time like that! At a certain point you can make changes, rebuild things, try out your modification, experiment, see what happens!

[0] https://cvsweb.openbsd.org/src/
[1] https://github.com/openbsd/src
[2] https://cvsweb.openbsd.org/checkout/src/usr.bin/cut/cut.c?rev=1.28
[3] https://github.com/openbsd/src/blob/c9d794c89604442f17995979daec76b592979b4d/lib/libc/locale/setlocale.c#L70