std1.0.0-beta-7 SafeC docs

std :: ipc::uds

Function std::uds_unlink

#include <std/ipc/uds.h> source · definition

int uds_unlink(const &char path)

Removes a stale socket file at 'path' (unlink(2)) — a Unix domain socket's bind() fails EADDRINUSE if the filesystem path from a previous, uncleanly-terminated run still exists, unlike a TCP port which is simply released by the OS. Returns 0 on success (including "path didn't exist"), -1 on a real failure.