utils

utils#

This directory contains the sources for a set of general utilities. With a few exceptions, they are implemented in a .c source file with an accompanied .h header file. There are a few inter-dependencies between the utilities, but no dependencies outside this directory (except for the standard library). All inter-dependencies are marked in the list below.

Content of this library:

  • compat/ – subdir with compatibility implementations for non-POSIX systems
    • license: varies, MIT-compatible

    • declared in: config.h

    • depends on: config.h generated by cmake

  • compat.h – auxiliary compatibility functions for non-POSIX systems
    • depends on: config.h generated by cmake

  • config.h.in – cmake template for config.h

  • dsl.h – dynamic shared libraries

  • err.h – simple error reporting
    • depends on: config.h generated by cmake

  • fileutils.h – cross-platform file utility functions

  • globmatch.h – match a string against a simple pattern
    • license: MIT-compatible

  • map.h – a type-safe hash map
    • license: MIT

  • strtob.h – converts string to boolean

  • tgen.h – simple templated text generator
    • depends on: err.h and map.h

  • tmpfileplus.h – creates a temporary file