XenevaOS
Loading...
Searching...
No Matches
Functions
port.c File Reference
#include <stddef.h>
#include <_xeneva.h>
#include <sys/_keproc.h>
Include dependency graph for port.c:

Functions

void ns_abort_trap (void)
 
void * bsearch (const void *key, const void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *))
 

Function Documentation

◆ bsearch()

void * bsearch ( const void *  key,
const void *  base,
size_t  nmemb,
size_t  size,
int(*)(const void *, const void *)  compar 
)

◆ ns_abort_trap()

void ns_abort_trap ( void  )

CssLibs port shims for XenevaOS.

bsearch: used once by libparserutils (charset/aliases.c). XEClib does not provide it, so a small self-contained binary search lives here.

abort trap: XEClib's abort() exits silently, which makes libcss asserts undebuggable (a dead window looks "stuck"). Route port aborts through here so the serial log names the call site; resolve with llvm-objdump on the linked binary.