Jump to content

Can anyone recommend me some free online books/tutorials for OS & kernel & system programming? 

Thanks in advance 🙂 

Link to comment
Share on other sites

Link to post
Share on other sites

Thanks for the book, I will be looking forward to read it 🙂 

 

Also I wanted to ask something related to a function that I am not getting in C.

 

After include <unistd.h>

 

I used a function to in that header: getlogin_r(char *buf, size_t bufsize);

 

however I how do I actually use it to retrieve the username?

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

If you want to learn unix system programming, there is no better way to do it by writting your own terminal emulator btw. It teaches you a lot of fundamental posix apis and core kernel services like forking, signaling, user permission control and ect ect ect. 

 

I did it as a college assigment. This taught me more than anything else. It made me appreciate and respect the terminal a lot more. You are welcome to study it. 

 

https://github.com/xiangsgao/Academics/tree/main/CSE_376_Advanced_UNIX_Porgramming/hw3-xiangsgao

 

 

Sudo make me a sandwich 

Link to comment
Share on other sites

Link to post
Share on other sites

Thanks for the help man, I have trying to learn C and I have made good progress with my bank management system, maybe after that I may consider making a terminal like you suggested and then a simple FTP server which I have always wanted to do 🙂 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×