Minimal Init

Here is a minimal init program that runs after the kernel boot.  Well, it does nothing except printing a hello world statement.  The system kernel panics once the program finishes. The program working principle is to first mount the device file system, with the nmount(2) system call.  Then, print to the "/dev/console" and quit.  Before … Continue reading Minimal Init


My Thoughts

It has been two months since I posted my last post, which is about the GEOM gate mechanisms.  Recently, I have been sidetracked to other activities like speculating in bitcoins, Portuguese language games, etc. I fell in love with FreeBSD and Mac OS X at my age 17.  Well, to be precise, some geeks pushed … Continue reading My Thoughts

Basic C TCP/IP Programming

In this article, I share how to have some TCP/IP programming with the C language.  I am using FreeBSD because it is my most familiar platform but it does not prevent you trying the source code elsewhere.  There are of course thousands of examples online.  To show that I am different, I will present my code in … Continue reading Basic C TCP/IP Programming