ttypt/stele.h(3)stele

NAME

ttypt/stele.h - Cross-platform system shims: logging, dl, env, strings.

SYNOPSIS

#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <time.h>
#include <sys/types.h>
#include 'wq.h'
#include <poll.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>

Data Structures

struct stl_file_lock_t

Kernel-enforced advisory file lock handle (fixed-inode, O_CLOEXEC, never unlinked).

Macros

#define WEAK __attribute__((weak))

Mark a symbol as weak (ELF weak attribute).

#define UNUSED __attribute__((unused))

Mark intentionally-unused symbols or parameters.

#define LOG(TYPE, ...)

Log a formatted message tagged with the calling function's name.

Enumerations

enum { STL_LOG_ERR, STL_LOG_WARNING, STL_LOG_NOTICE, STL_LOG_INFO, STL_LOG_DEBUG }

Log severity levels, syslog-style.

Detailed Description

Cross-platform system shims: logging, dl, env, strings.

Portable wrappers (POSIX mirrors / Win32 emulation) for low-level system facilities on both platforms.

Enumeration Type Documentation

anonymous enum

Log severity levels, syslog-style.

Enumerator

STL_LOG_ERR
Error conditions.
STL_LOG_WARNING
Warning conditions.
STL_LOG_NOTICE
Notable events.
STL_LOG_INFO
Informational messages.
STL_LOG_DEBUG
Debug-level messages.

Author

Generated automatically by Doxygen for stele from the source code.