2012-04-27

Linux C: page aligned buffer


I had to allocate a page-aligned buffer.

Valgrind and pthread leakage

While testing the binaries with valgrind, which use the pthread library, the results usually contains several  possible leak sections, which are raised inside the pthread library.

Autotools tutorial

I'm working on a new project, and I wanted to use autoconf, automake, libtool utilities for compiling and installing it.

I have found an excellent autotools tutorial here:

http://www.freesoftwaremagazine.com/books/autotools_a_guide_to_autoconf_automake_libtool

Linux C: Suppress stderr

I had to suppress the standard error output for a while. An external library wrote to it, and I wanted to hide that.

The following code snippets introduces this:


 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Top WordPress Themes