Category Archives: User space software development

This category of articles or tutorials would contain content related to Linux user space software development.

New To Programming? Say Hello To Memory Corruption

Every process in any operating system would use memory to store its code and data. Same is the case with processes in Linux. However, the onus is on the programmer to see if the memory is being properly used or not. This is essential, as memory issues lead to copious bugs and bizarre behaviours. As […]

How I used eog utility to pull off a small Linux exploit

Back in 2012, after my article on Linux ELF Virus was published in Linux Journal, I was curious to come up with a trigger point for this virus. I mean what would compel a Linux user to execute it for the very first time? I thought about it many times but could not come up […]

Anatomy of command line arguments in Linux

While designing a simple C program or a full fledged command line application, it is pretty usual to have a requirement for arguments to be passed while running the executable/application. These arguments are known as command line arguments. These parameters govern the behaviour of the program to some extent, as these are the inputs based […]

Linux time and date functions – A must read for developers

In this pacing world, time plays an important role in every aspect of Life. Even in industries like embedded, automotive etc time plays a very important role. Seems like everyone is working just to minimize this parameter called time. If we talk about software industry, here too, minimising the time complexity is the most prominent […]

5 GCC compiler options worth sharing

If you have worked on Linux software development using C language, you would have definitely come across the gcc compiler. It is one of the most popular C compiler as of today. GCC contains a huge list of compiler options. For those who are new to gcc, they must have knowledge of some basic gcc compiler options. […]

Delete a directory using Linux rmdir function

In our last article on unlink() function here, we discussed how this function can be used to delete files. Also, this function has a limitation that it cannot be used to delete directories. Here in this article, we will discuss the Linux rmdir function. As the name suggests this function is used to delete directories […]

Error handling in C programming on Linux

While writing C code for Linux programs, it’s very important to put in place proper error handling mechanism as it saves precious time while debugging any problem with the same code. Mostly developers write code that contains broken error handling and this causes them to invest hours while debugging a complex code. In this example […]