/*
- * Sherlock Library -- Memory Allocation
+ * UCW Library -- Memory Allocation
*
* (c) 2000 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- String Allocation
+ * UCW Library -- String Allocation
*
* (c) 1997 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Universal Array Sorter
+ * UCW Library -- Universal Array Sorter
*
* (c) 2003 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Universal Array Sorter Test and Benchmark
+ * UCW Library -- Universal Array Sorter Test and Benchmark
*
* (c) 2003 Martin Mares <mj@ucw.cz>
*
* of the GNU Lesser General Public License.
*/
-#ifndef _SHERLOCK_BBUF_H
-#define _SHERLOCK_BBUF_H
+#ifndef _UCW_BBUF_H
+#define _UCW_BBUF_H
#define GBUF_TYPE byte
#define GBUF_PREFIX(x) bb_##x
/*
- * Sherlock Library -- Binomial Heaps: Declarations
+ * UCW Library -- Binomial Heaps: Declarations
*
* (c) 2003 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Binomial Heaps: Testing
+ * UCW Library -- Binomial Heaps: Testing
*
* (c) 2003 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Binomial Heaps
+ * UCW Library -- Binomial Heaps
*
* (c) 2003 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Careful Read/Write
+ * UCW Library -- Careful Read/Write
*
* (c) 2004 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Character Code Map (UTF-8 Version)
+ * UCW Library -- Character Code Map (UTF-8 Version)
*
* (c) 1998--2004 Martin Mares <mj@ucw.cz>
* (c) 2004 Robert Spalek <robert@ucw.cz>
/*
- * Sherlock Library -- Character Types
+ * UCW Library -- Character Types
*
* (c) 1997--2004 Martin Mares <mj@ucw.cz>
*
* of the GNU Lesser General Public License.
*/
-#ifndef _SHERLOCK_CHARTYPE_H
-#define _SHERLOCK_CHARTYPE_H
+#ifndef _UCW_CHARTYPE_H
+#define _UCW_CHARTYPE_H
#define _C_UPPER 1 /* Upper-case letters */
#define _C_LOWER 2 /* Lower-case letters */
/*
- * Sherlock Library -- Circular Linked Lists
+ * UCW Library -- Circular Linked Lists
*
* (c) 2003 Martin Mares <mj@ucw.cz>
*
* of the GNU Lesser General Public License.
*/
-#ifndef _SHERLOCK_CLISTS_H
-#define _SHERLOCK_CLISTS_H
+#ifndef _UCW_CLISTS_H
+#define _UCW_CLISTS_H
typedef struct cnode {
struct cnode *next, *prev;
/*
- * Sherlock Library -- Reading of configuration files
+ * UCW Library -- Reading of configuration files
*
* (c) 2001 Robert Spalek <robert@ucw.cz>
* (c) 2003 Martin Mares <mj@ucw.cz>
/*
- * Sherlock Library -- Reading of configuration files
+ * UCW Library -- Reading of configuration files
*
* (c) 2001 Robert Spalek <robert@ucw.cz>
* (c) 2003 Martin Mares <mj@ucw.cz>
/*
- * Sherlock Library -- Content-Type Pattern Matching
+ * UCW Library -- Content-Type Pattern Matching
*
* (c) 1997 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- SDBM emulator at top of GDBM
+ * UCW Library -- SDBM emulator at top of GDBM
*
* (c) 1999 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Database Manager -- Tests and Benchmarks
+ * UCW Library -- Database Manager -- Tests and Benchmarks
*
* (c) 1999 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Fast Database Management Routines
+ * UCW Library -- Fast Database Management Routines
*
* (c) 1999--2001 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Fast Database Management Routines
+ * UCW Library -- Fast Database Management Routines
*
* (c) 1999--2001 Martin Mares <mj@ucw.cz>
*
* of the GNU Lesser General Public License.
*/
-#ifndef _SHERLOCK_DB_H
-#define _SHERLOCK_DB_H
+#ifndef _UCW_DB_H
+#define _UCW_DB_H
struct sdbm;
/*
- * Sherlock Library -- Fast Database Management Routines -- Internal Declarations
+ * UCW Library -- Fast Database Management Routines -- Internal Declarations
*
* (c) 1999--2001 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Formatting of Process Exit Status
+ * UCW Library -- Formatting of Process Exit Status
*
* (c) 2004 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Fast Buffered I/O
+ * UCW Library -- Fast Buffered I/O
*
* (c) 1997--2004 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Fast Buffered I/O
+ * UCW Library -- Fast Buffered I/O
*
* (c) 1997--2004 Martin Mares <mj@ucw.cz>
* (c) 2004 Robert Spalek <robert@ucw.cz>
* of the GNU Lesser General Public License.
*/
-#ifndef _SHERLOCK_FASTBUF_H
-#define _SHERLOCK_FASTBUF_H
+#ifndef _UCW_FASTBUF_H
+#define _UCW_FASTBUF_H
#ifndef EOF
#include <stdio.h>
/*
- * Sherlock Library -- Fast Buffered I/O on Static Buffers
+ * UCW Library -- Fast Buffered I/O on Static Buffers
*
* (c) 2003--2004 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Fast Buffered I/O on Files
+ * UCW Library -- Fast Buffered I/O on Files
*
* (c) 1997--2004 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Fast Buffered Input on Limited File Descriptors
+ * UCW Library -- Fast Buffered Input on Limited File Descriptors
*
* (c) 2003--2004 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Fast Buffered I/O on Memory Streams
+ * UCW Library -- Fast Buffered I/O on Memory Streams
*
* (c) 1997--2002 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Fast Buffered I/O on Memory-Mapped Files
+ * UCW Library -- Fast Buffered I/O on Memory-Mapped Files
*
* (c) 2002 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Temporary Fastbufs
+ * UCW Library -- Temporary Fastbufs
*
* (c) 2002--2004 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Printf on Fastbuf Streams
+ * UCW Library -- Printf on Fastbuf Streams
*
* (c) 2002 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library: Reading and writing of UTF-8 on Fastbuf Streams
+ * UCW Library: Reading and writing of UTF-8 on Fastbuf Streams
*
* (c) 2001--2004 Martin Mares <mj@ucw.cz>
* (c) 2004 Robert Spalek <robert@ucw.cz>
/*
- * Sherlock Library: Reading and writing of UTF-8 on Fastbuf Streams
+ * UCW Library: Reading and writing of UTF-8 on Fastbuf Streams
*
* (c) 2001--2004 Martin Mares <mj@ucw.cz>
* (c) 2004 Robert Spalek <robert@ucw.cz>
* of the GNU Lesser General Public License.
*/
-#ifndef _SHERLOCK_HASHFUNC_H
-#define _SHERLOCK_HASHFUNC_H
+#ifndef _UCW_HASHFUNC_H
+#define _UCW_HASHFUNC_H
#include "lib/lib.h"
/*
- * Sherlock Library -- Universal Hash Table
+ * UCW Library -- Universal Hash Table
*
* (c) 2002--2004 Martin Mares <mj@ucw.cz>
* (c) 2002 Robert Spalek <robert@ucw.cz>
* undef'd.
*/
-#ifndef _SHERLOCK_HASHFUNC_H
+#ifndef _UCW_HASHFUNC_H
#include "lib/hashfunc.h"
#endif
/*
- * Sherlock Library -- Universal Heap Macros
+ * UCW Library -- Universal Heap Macros
*
* (c) 2001 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- IP address access lists
+ * UCW Library -- IP address access lists
*
* (c) 1997--2001 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- IP address access lists
+ * UCW Library -- IP address access lists
*
* (c) 1997--2001 Martin Mares <mj@ucw.cz>
*
* of the GNU Lesser General Public License.
*/
-#ifndef _SHERLOCK_LFS_H
-#define _SHERLOCK_LFS_H
+#ifndef _UCW_LFS_H
+#define _UCW_LFS_H
#include <fcntl.h>
#include <unistd.h>
return len;
}
-#endif /* !_SHERLOCK_LFS_H */
+#endif /* !_UCW_LFS_H */
/*
- * Sherlock Library -- Linked Lists
+ * UCW Library -- Linked Lists
*
* (c) 1997--1999 Martin Mares <mj@ucw.cz>
*
#include "lib/lib.h"
-#define _SHERLOCK_LISTS_C
+#define _UCW_LISTS_C
#include "lib/lists.h"
LIST_INLINE void
/*
- * Sherlock Library -- Linked Lists
+ * UCW Library -- Linked Lists
*
* (c) 1997--1999 Martin Mares <mj@ucw.cz>
*
* of the GNU Lesser General Public License.
*/
-#ifndef _SHERLOCK_LISTS_H
-#define _SHERLOCK_LISTS_H
+#ifndef _UCW_LISTS_H
+#define _UCW_LISTS_H
/*
* I admit the list structure is very tricky and also somewhat awkward,
void init_list(list *);
void insert_node(node *, node *);
-#if !defined(_SHERLOCK_LISTS_C) && defined(__GNUC__)
+#if !defined(_UCW_LISTS_C) && defined(__GNUC__)
#define LIST_INLINE extern inline
#include "lib/lists.c"
#undef LIST_INLINE
* of the GNU Lesser General Public License.
*/
-#ifndef _SHERLOCK_LIZARD_H
-#define _SHERLOCK_LIZARD_H
+#ifndef _UCW_LIZARD_H
+#define _UCW_LIZARD_H
#define LIZARD_NEEDS_CHARS 8
/* The compression routine needs input buffer 8 characters longer, because it
/*
- * Sherlock Library -- Keeping of Log Files
+ * UCW Library -- Keeping of Log Files
*
* (c) 1997--2004 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Logging
+ * UCW Library -- Logging
*
* (c) 1997--2004 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Binary Logarithm
+ * UCW Library -- Binary Logarithm
*
* (c) 1997 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Main Loop
+ * UCW Library -- Main Loop
*
* (c) 2004 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Main Loop
+ * UCW Library -- Main Loop
*
* (c) 2004 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Stub for including math.h, avoiding name collisions
+ * UCW Library -- Stub for including math.h, avoiding name collisions
*
* (c) 2003 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- MD5 Binary <-> Hex Conversions
+ * UCW Library -- MD5 Binary <-> Hex Conversions
*
* (c) 1997 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Memory Pools (String Operations)
+ * UCW Library -- Memory Pools (String Operations)
*
* (c) 2004 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Memory Pools (One-Time Allocation)
+ * UCW Library -- Memory Pools (One-Time Allocation)
*
* (c) 1997--2001 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Memory Pools
+ * UCW Library -- Memory Pools
*
* (c) 1997--2004 Martin Mares <mj@ucw.cz>
*
* of the GNU Lesser General Public License.
*/
-#ifndef _SHERLOCK_POOLS_H
-#define _SHERLOCK_POOLS_H
+#ifndef _UCW_POOLS_H
+#define _UCW_POOLS_H
#ifndef POOL_ALIGN
#define POOL_ALIGN CPU_STRUCT_ALIGN
/*
- * Sherlock Library -- Mapping of Files
+ * UCW Library -- Mapping of Files
*
* (c) 1999--2002 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- File Page Cache
+ * UCW Library -- File Page Cache
*
* (c) 1999--2002 Martin Mares <mj@ucw.cz>
*
* of the GNU Lesser General Public License.
*/
-#ifndef _SHERLOCK_PAGECACHE_H
-#define _SHERLOCK_PAGECACHE_H
+#ifndef _UCW_PAGECACHE_H
+#define _UCW_PAGECACHE_H
#include "lib/lists.h"
/*
- * Sherlock Library -- Mapping of File Parts
+ * UCW Library -- Mapping of File Parts
*
* (c) 2003 Martin Mares <mj@ucw.cz>
* (c) 2003 Robert Spalek <robert@ucw.cz>
/*
- * Sherlock Library -- Shell-Like Case-Insensitive Pattern Matching (currently only '?' and '*')
+ * UCW Library -- Shell-Like Case-Insensitive Pattern Matching (currently only '?' and '*')
*
* (c) 1997 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Shell-Like Pattern Matching (currently only '?' and '*')
+ * UCW Library -- Shell-Like Pattern Matching (currently only '?' and '*')
*
* (c) 1997 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Generic Shell-Like Pattern Matching (currently only '?' and '*')
+ * UCW Library -- Generic Shell-Like Pattern Matching (currently only '?' and '*')
*
* (c) 1997 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Prefetch
+ * UCW Library -- Prefetch
*
* (c) 1997--2003 Martin Mares <mj@ucw.cz>
*
* of the GNU Lesser General Public License.
*/
-#ifndef _SHERLOCK_PREFETCH_H
-#define _SHERLOCK_PREFETCH_H
+#ifndef _UCW_PREFETCH_H
+#define _UCW_PREFETCH_H
#if defined(__athlon) || defined(__i686)
/*
- * Sherlock Library -- Prime Number Tests
+ * UCW Library -- Prime Number Tests
*
* (c) 1997 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Setting of Process Title
+ * UCW Library -- Setting of Process Title
*
* (c) 2001 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Poor Man's Profiler
+ * UCW Library -- Poor Man's Profiler
*
* (c) 2001 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Poor Man's Profiler
+ * UCW Library -- Poor Man's Profiler
*
* (c) 2001 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Unbiased Range Correction for random()
+ * UCW Library -- Unbiased Range Correction for random()
*
* (c) 1998 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Cryptographically Safe Random Key Generator
+ * UCW Library -- Cryptographically Safe Random Key Generator
*
* (c) 2002 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Memory Re-allocation
+ * UCW Library -- Memory Re-allocation
*
* (c) 1997 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Interface to Regular Expression Libraries
+ * UCW Library -- Interface to Regular Expression Libraries
*
* (c) 1997--2004 Martin Mares <mj@ucw.cz>
* (c) 2001 Robert Spalek <robert@ucw.cz>
-# Makefile for the Sherlock Regex Library (c) 2004 Martin Mares <mj@ucw.cz>
+# Makefile for the UCW Regex Library (c) 2004 Martin Mares <mj@ucw.cz>
DIRS+=lib/regex
* (renamed to sh_* to avoid clashes with the system libraries)
*/
-#ifndef _SHERLOCK_REGEX_H
-#define _SHERLOCK_REGEX_H
+#ifndef _UCW_REGEX_H
+#define _UCW_REGEX_H
#define regfree sh_regfree
#define regexec sh_regexec
/*
- * Sherlock Library -- Running of Commands
+ * UCW Library -- Running of Commands
*
* (c) 2004 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Shell Interface to Configuration Files
+ * UCW Library -- Shell Interface to Configuration Files
*
* (c) 2002 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Utilities -- A Simple Logger for use in shell scripts
+ * UCW Library Utilities -- A Simple Logger for use in shell scripts
*
* (c) 2001 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Universal Sorter
+ * UCW Library -- Universal Sorter
*
* (c) 2001--2002 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Universal Sorter
+ * UCW Library -- Universal Sorter
*
* (c) 2001--2004 Martin Mares <mj@ucw.cz>
* (c) 2004 Robert Spalek <robert@ucw.cz>
/*
- * Sherlock Library -- Character Classes
+ * UCW Library -- Character Classes
*
* (c) 1998--2004 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Lowercase Map
+ * UCW Library -- Lowercase Map
*
* (c) 1997--2004 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Uppercase Map
+ * UCW Library -- Uppercase Map
*
* (c) 1997--2004 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Syncing Directories
+ * UCW Library -- Syncing Directories
*
* (c) 2004 Martin Mares <mj@ucw.cz>
*/
/*
- * Sherlock Library -- Execution Timing
+ * UCW Library -- Execution Timing
*
* (c) 1997 Martin Mares <mj@ucw.cz>
*
/*
- * Sherlock Library -- Fast Access to Unaligned Data
+ * UCW Library -- Fast Access to Unaligned Data
*
* (c) 1997--2003 Martin Mares <mj@ucw.cz>
*
* of the GNU Lesser General Public License.
*/
-#ifndef _SHERLOCK_UNALIGNED_H
-#define _SHERLOCK_UNALIGNED_H
+#ifndef _UCW_UNALIGNED_H
+#define _UCW_UNALIGNED_H
#ifdef CPU_ALLOW_UNALIGNED
#define GET_U16(p) (*((u16 *)(p)))
/*
- * Sherlock Library -- UTF-8 Functions
+ * UCW Library -- UTF-8 Functions
*
* (c) 1997--2004 Martin Mares <mj@ucw.cz>
* (c) 2003 Robert Spalek <robert@ucw.cz>
/*
- * Sherlock Library -- Unicode Characters
+ * UCW Library -- Unicode Characters
*
* (c) 1997--2004 Martin Mares <mj@ucw.cz>
* (c) 2004 Robert Spalek <robert@ucw.cz>
/*
- * Sherlock Library -- URL Functions
+ * UCW Library -- URL Functions
*
* (c) 1997--2004 Martin Mares <mj@ucw.cz>
* (c) 2001 Robert Spalek <robert@ucw.cz>
/*
- * Sherlock Library -- URL Functions
+ * UCW Library -- URL Functions
*
* (c) 1997--2004 Martin Mares <mj@ucw.cz>
* (c) 2001 Robert Spalek <robert@ucw.cz>
* of the GNU Lesser General Public License.
*/
-#ifndef _SHERLOCK_URL_H
-#define _SHERLOCK_URL_H
+#ifndef _UCW_URL_H
+#define _UCW_URL_H
#define MAX_URL_SIZE 1024
/*
- * Sherlock Library -- Word Splitting
+ * UCW Library -- Word Splitting
*
* (c) 1997 Martin Mares <mj@ucw.cz>
* (c) 2004 Robert Spalek <robert@ucw.cz>