scmsigs.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef SCM_SCMSIGS_H
  2. #define SCM_SCMSIGS_H
  3. /* Copyright 1995-1998,2000,2002,2006-2008,2018
  4. Free Software Foundation, Inc.
  5. This file is part of Guile.
  6. Guile is free software: you can redistribute it and/or modify it
  7. under the terms of the GNU Lesser General Public License as published
  8. by the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. Guile is distributed in the hope that it will be useful, but WITHOUT
  11. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  13. License for more details.
  14. You should have received a copy of the GNU Lesser General Public
  15. License along with Guile. If not, see
  16. <https://www.gnu.org/licenses/>. */
  17. #include "libguile/scm.h"
  18. SCM_API SCM scm_sigaction (SCM signum, SCM handler, SCM flags);
  19. SCM_API SCM scm_sigaction_for_thread (SCM signum, SCM handler, SCM flags,
  20. SCM thread);
  21. SCM_API SCM scm_restore_signals (void);
  22. SCM_API SCM scm_alarm (SCM i);
  23. SCM_API SCM scm_setitimer (SCM which_timer,
  24. SCM interval_seconds, SCM interval_microseconds,
  25. SCM value_seconds, SCM value_microseconds);
  26. SCM_API SCM scm_getitimer (SCM which_timer);
  27. SCM_API SCM scm_pause (void);
  28. SCM_API SCM scm_sleep (SCM i);
  29. SCM_API SCM scm_usleep (SCM i);
  30. SCM_API SCM scm_raise (SCM sig);
  31. SCM_INTERNAL void scm_init_scmsigs (void);
  32. SCM_INTERNAL void scm_i_close_signal_pipe (void);
  33. SCM_INTERNAL void scm_i_ensure_signal_delivery_thread (void);
  34. SCM_INTERNAL scm_thread *scm_i_signal_delivery_thread;
  35. #endif /* SCM_SCMSIGS_H */