Linux Demos: Programmer's Corner

This entire sub-domain is a private effort of free information.
There are no cookies, no advertisements, and nothing is for sale.
non-code Linux resources can be found here
  1. The information presented here is intended for educational use by qualified Linux programmers.
  2. The information presented here is provided free of charge, as-is, with no warranty of any kind.
  3. To the best of my knowledge, the programs presented here compile, link and run properly. Please send me an email if they do not (I only support this stuff in my spare time).
Updated: 2023-01-15


Both the C and C++ programming languages are designed to be portable BUT I noticed that C applications written for other platforms (Unix, Windows, OpenVMS) can't be moved to Linux with zero effort. This is especially true if moving from cc (c compile) to gcc (gnu compiler collection). Hopefully the information provided here will help others. 


File Notes
hello_linux_world.c hello world in both 32 and 64 bits
flock.c Linux finally has a system-wide lock manager with queuing
gcc-32-bit-compile-on-64-bit-rhel.txt Native 64-bit compiles are easy; 32-bit compiles are less so
procmail (coming soon) a few demo scripts to intercept then process email (coming soon)
sequencer.c a helper application for use with procmail and munpack
crc8_demo_100.c create a static data table
crc8_demo_101.c use the table to generate a crc8 for specific data


File Notes
gmtserver.cpp gmtclient.cpp (from the old currenttime demo in samples)
gmtserver.cpp (works from Apache cgi-bin without a plugin)
calcserver.c calclient.c (from the old calc demo in samples) calcserver.c
  • calcserver (works interactively or mod_gsoap for Apache-1.x)
  • calcserver2 (works from Apache cgi-bin without a plugin)
  • (works from mod_gsoap for Apache-2.x)
build Apache from sources how to build a second copy of Apache so you can build apxs
  • apxs is a tool required to produce
  • apxs is a tool required to build
note: no need to build second Apache on Linux. Just type:
"yum install httpd-devel.x86_64"

Back to Home
Neil Rieck
Waterloo, Ontario, Canada.