diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-29 21:03:04 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-29 21:03:04 -0600 |
commit | 26361be59c08917c47718bcd4114b8028aaf7810 (patch) | |
tree | b05dfad7baa755da4592a3d47412f1e062560a5e /libhw/host_sigrt.c | |
parent | 3c3e9e2c62ad9a83ab9b0e1255204d57894c20ff (diff) |
libhw: Tidy
Diffstat (limited to 'libhw/host_sigrt.c')
-rw-r--r-- | libhw/host_sigrt.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/libhw/host_sigrt.c b/libhw/host_sigrt.c deleted file mode 100644 index 6dcb963..0000000 --- a/libhw/host_sigrt.c +++ /dev/null @@ -1,21 +0,0 @@ -/* libhw/host_sigrt.c - Manage glibc realtime signals - * - * 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_sigrt.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; -} |