summaryrefslogtreecommitdiffstats
path: root/lib/filter.c
diff options
context:
space:
mode:
authorChris Hall (GMCH) <chris.hall@highwayman.com>2009-12-02 17:08:59 +0000
committerChris Hall (GMCH) <chris.hall@highwayman.com>2009-12-02 17:08:59 +0000
commitdb597018b8c47208e4139b75fdcd798505695ea8 (patch)
treef5fa021d7d72d726f6a5cf8812e8123649d21041 /lib/filter.c
parent02e6e018111e39e9445f54eda6d61a24ea9f41ee (diff)
downloadquagga-db597018b8c47208e4139b75fdcd798505695ea8.tar.bz2
quagga-db597018b8c47208e4139b75fdcd798505695ea8.tar.xz
Pthreads infrastructure -- initial commit
New files: lib/qpthreads.c & .h Encapsulates the Pthreads facilities to be used in Quagga. Implicitly documents the sub-set of Pthreads being used. Provides error checking for a number of functions which may return errors, but are not generally expected to and for whom an error is treated as fatal. Could be modified to "null out" the use of Pthreads. New files: lib/qtime.c & .h Defines a 64-bit integer time value which is a lot easier to handle than the usual timespec and timeval structures. (C99 requires a 64-bit integer.) Provides front ends for gettimeofday() & clock_gettime() which return 64-bit time value. Also conversions to and from timespec and timeval. Provides a monotonic clock for when CLOCK_MONOTONIC is not available. (This is based on code from Joakim Tjernlund.) New files: lib/heap.c & .h Implements a heap data structure closely allied to the vector. This will be used for timer handling. Modified: lib/memtypes.c New memory types for qpthreads structures and for the heap. Modified: lib/zassert.h Added explicit "passert" == assert which is not subject to NDEBUG. Added explicit "nassert" == assert which is subject to NDEBUG. Added zabort, zabort_errno and zabbort_err for when something has gone fatally wrong. (Require changes to lib/log.c which are TBD.)
Diffstat (limited to 'lib/filter.c')
0 files changed, 0 insertions, 0 deletions