When realloc() Doesn't Allocate
I recently wrote about correct error handling for
Coincidently I came across an older defect report on the
behavior of C’s
realloc() function just a few days ago. In
this blog post, we’re going to look at
realloc()’s behavior if it’s out
of memory or if the requested size is zero.
Benchmark Visualization with LaTeX and gnuplot
Visualizing benchmark results is an important step in performance testing.
In this blog post, we’re going to use LaTeX, gnuplot
and Perl to convert raw performance data into a nice-looking PDF
malloc()'s Tricky Error Reporting
Most error checks for
malloc() are incorrect. In this blog post, we’re
going to look at the details of
malloc()’s error reporting semantics and
how to test if a call to
The Internals of Unix Pipes and FIFOs
There is a series of blog posts examining the details of files and
file descriptors, etc on Linux and Unix. This installment continues with the
details of Unix FIFOs, how they work internally, and how they are used for
communicating between processes.
The Strange strerror_r() of Dr POSIX and Mr GNU
There are several variants of the C function
strerror_r() that differ in their return value and
error handling. This blog post describes how to support all of them in a
transactional interface, while still being compatible with either internal
implementation. As such,
strerror_r() serves as a case study for
transactional interfaces with multiple or variable semantics.