News for hackers. Stuff that matters.
Re:Reading OpenBSD source code daily by ianai on Friday June 09, 2017 @10:52AM (#14521781)
I wonder where best to start for people who haven't taken an OS class before?
Re:Reading OpenBSD source code daily by hackermailman on Friday June 09, 2017 @12:16PM (#14522391)
CS:APP 3rd (64bit) edition http://csapp.cs.cmu.edu/

Lectures for it are here: https://scs.hosted.panopto.com/Panopto/Pages/Sessions/List.a...

This teaches you C, x86-64 arch, stuff like two's complement integers and floating point, how memory and CPUs work, how the C compiler works (linking stage, preprocessor), and how to write/understand signals and processes, file I/O, network code ect.

After that you can just start reading the OpenBSD code and will figure it out or get an Andrew S Tanenbaum book on Operating Systems.

Note, if you buy the Pearson Global Edition of CS:APP (it's only 10% the reg price) there's a lot of errata you will have to check. I once got stuck reversing an assembly program into C that did an even/odd parity check because of a print error returning the final XOR'd value & 0 instead of & 1.

Re:Reading OpenBSD source code daily by autoreleasepool on Friday June 09, 2017 @11:11AM (#14521942)
For a good base, I recommend the book "The Design and Implementation of the FreeBSD Operating System" by Marshall Kirk McKusick. It's really in depth and I was able to follow it without previously taking an OS course.
Re:Reading OpenBSD source code daily by masklinn on Friday June 09, 2017 @11:08AM (#14521914)
Currently they mostly seem to be doing utilities, not kernel stuff, so there should be fairly little OS stuff required.
Re:Reading OpenBSD source code daily by irundebian on Friday June 09, 2017 @10:54AM (#14521801)
The best start would be to read a book about operating systems such as Tanenbaums. Reading the source of an OS has a really really low signal to noise ratio in getting important knowledge about operating systems due to implementation details an OS-specific peculiarities.
Re:Reading OpenBSD source code daily by klez on Friday June 09, 2017 @11:08AM (#14521915)
What about MINIX? Being a teaching operating system, do you think it may contain less nose and thus be more useful as reading material? (I mean, without the book)
Re:Reading OpenBSD source code daily by nickpsecurity on Friday June 09, 2017 @11:19AM (#14522005)
Linus Torvalds started out studying MINIX. He was a Finnish programmer into working on kernels. He ended up completing one.
Re:Reading OpenBSD source code daily by doody12 on Friday June 09, 2017 @02:02PM (#14523124)
That depends on what you want to learn.

If you want to improve your code reading skills and/or C programming skills, then you can probably go ahead and start reading, for example, the OpenBSD source code, even though you don't have any operating systems knowledge.