diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-26 21:20:54 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-26 21:20:54 -0600 |
commit | 0378f059440d4702203f9bc005894f7b53cad889 (patch) | |
tree | ad738d3ce97e2f76071b6b2f448eecc8526d6bd0 /libhw/host_util.c | |
parent | 61b14883c1ddbd5985c681ef7b559cf3c8c15525 (diff) |
Have libhw_generic be independent of libcr, rename libhw to libhw_cr
Diffstat (limited to 'libhw/host_util.c')
-rw-r--r-- | libhw/host_util.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/libhw/host_util.c b/libhw/host_util.c deleted file mode 100644 index b862e39..0000000 --- a/libhw/host_util.c +++ /dev/null @@ -1,21 +0,0 @@ -/* libhw/host_util.c - Utilities for GNU/Linux hosts - * - * Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com> - * SPDX-License-Identifier: AGPL-3.0-or-later - */ - -#include <error.h> /* for error(3gnu) */ -#include <signal.h> /* for SIGRTMIN, SIGRTMAX */ - -#include "host_util.h" - -int host_sigrt_alloc(void) { - static int next = 0; - - if (!next) - next = SIGRTMIN; - int ret = next++; - if (ret > SIGRTMAX) - error(1, 0, "SIGRTMAX exceeded"); - return ret; -} |