fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

os/signals.fz


# This file is part of the Fuzion language implementation.
#
# The Fuzion language implementation is free software: you can redistribute it
# and/or modify it under the terms of the GNU General Public License as published
# by the Free Software Foundation, version 3 of the License.
#
# The Fuzion language implementation is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU General Public License along with The
# Fuzion language implementation.  If not, see <https://www.gnu.org/licenses/>.


# -----------------------------------------------------------------------
#
#  Tokiwa Software GmbH, Germany
#
#  Source code of Fuzion standard library feature signals
#
# -----------------------------------------------------------------------

# signals -- unit feature to group signals
#
public signals is

  # hangup detected
  #
  public hangup is
    public redef as_string String => "SIGHUP"

  # interrupt
  #
  public interrupt is
    public redef as_string String => "SIGINT"

  # quit
  #
  public quit is
    public redef as_string String => "SIGQUIT"

  # illegal instruction
  #
  public illegal_instruction is
    public redef as_string String => "SIGILL"

  # trace/breakpoint trap
  #
  public trap is
    public redef as_string String => "SIGTRAP"

  # abort
  #
  public abort is
    public redef as_string String => "SIGABRT"

  # arithmetic error (fpe)
  #
  public arithmetic_error is
    public redef as_string String => "SIGFPE"

  # kill
  #
  public kill is
    public redef as_string String => "SIGKILL"

  # invalid memory reference (segv)
  #
  public invalid_memory_reference is
    public redef as_string String => "SIGSEGV"

  # broken pipe
  #
  public broken_pipe is
    public redef as_string String => "SIGPIPE"

  # alarm, timer signal
  #
  public alarm is
    public redef as_string String => "SIGALRM"

  # terminate (term)
  #
  public terminate is
    public redef as_string String => "SIGTERM"

last changed: 2026-10-07