summaryrefslogtreecommitdiff
path: root/libguile/scmsigs.c
AgeCommit message (Collapse)AuthorFilesLines
2008-09-13Include <config.h> in all C files; use `#ifdef HAVE_CONFIG_H' rather than `#if'.Ludovic Courtès1-1/+1
2008-08-27Fix builds `--without-threads'.Ludovic Courtès1-1/+3
2007-10-20Changes from arch/CVS synchronizationLudovic Courtès1-8/+42
2007-03-07merge from 1.8 branchKevin Ryde1-3/+15
2007-01-15merge from 1.8Kevin Ryde1-4/+20
2006-04-17merge from 1.8 branchKevin Ryde1-1/+1
2005-12-14(do_read_without_guile): Use the "raw_data" passed inNeil Jerram1-1/+1
(rather than an uninitialized pointer on the stack).
2005-12-06(read_without_guile): New.Marius Vollmer1-4/+27
(signal_delivery_thread): Use it instead of scm_leave_guile/read/scm_enter_guile.
2005-05-23The FSF has a new address.Marius Vollmer1-1/+1
2005-05-10(signal_delivery_thread): Return a value, to avoidNeil Jerram1-0/+2
compile warning reported by Werner Scheinast.
2005-03-02See ChangeLog from 2005-03-02.Marius Vollmer1-141/+110
2005-01-24(scm_sigaction_for_thread): Use scm_to_long forKevin Ryde1-1/+1
sa_handler, needs to be a long on 64-bit systems where int is only 32 bits.
2005-01-02Use new vector elements API or simple vector API, as appropriate.Marius Vollmer1-16/+16
Removed SCM_HAVE_ARRAYS ifdefery. Replaced all uses of SCM_HASHTABLE_BUCKETS with SCM_HASHTABLE_BUCKET.
2004-09-22*** empty log message ***Marius Vollmer1-2/+2
2004-08-02* numbers.h, numbers.c, discouraged.h, discouraged.c (scm_short2num,Marius Vollmer1-16/+16
scm_ushort2num, scm_int2num, scm_uint2num, scm_long2num, scm_ulong2num, scm_size2num, scm_ptrdiff2num, scm_num2short, scm_num2ushort, scm_num2int, scm_num2uint, scm_num2long, scm_num2ulong, scm_num2size, scm_num2ptrdiff, scm_long_long2num, scm_ulong_long2num, scm_num2long_long, scm_num2ulong_long): Discouraged by moving to discouraged.h and discouraged.c and reimplementing in terms of scm_from_* and scm_to_*. Changed all uses to the new scm_from_* and scm_to_* functions.
2004-07-27* tags.h, deprecated.h (SCM_EQ_P): Deprecated by moving it intoMarius Vollmer1-2/+2
deprecated.h. Replaced all uses with scm_is_eq.
2004-07-23* deprecated.h, deprecated.c, numbers.h (SCM_INUMP, SCM_NINUMP,Marius Vollmer1-8/+8
SCM_INUM): Deprecated by reenaming them to SCM_I_INUMP, SCM_I_NINUMP and SCM_I_INUM, respectively and adding deprecated versions to deprecated.h and deprecated.c. Changed all uses to either use the SCM_I_ variants or scm_is_*, scm_to_*, or scm_from_*, as appropriate.
2004-07-10* validate.h, deprecated.h (SCM_VALIDATE_INUM, SCM_VALIDATE_INUM_COPY,Marius Vollmer1-25/+8
SCM_VALIDATE_BIGINT, SCM_VALIDATE_INUM_MIN, SCM_VALIDATE_INUM_MIN_COPY, SCM_VALIDATE_INUM_MIN_DEF_COPY,SCM_VALIDATE_INUM_DEF, SCM_VALIDATE_INUM_DEF_COPY, SCM_VALIDATE_INUM_RANGE, SCM_VALIDATE_INUM_RANGE_COPY): Deprecated because they make the fixnum/bignum distinction visible. Changed all uses to scm_to_size_t or similar.
2004-07-08* numbers.h (SCM_MAKINUM, SCM_I_MAKINUM): Renamed SCM_MAKINUM toMarius Vollmer1-6/+6
SCM_I_MAKINUM and changed all uses.
2004-07-06* deprecated.h, boolean.h (SCM_FALSEP, SCM_NFALSEP, SCM_BOOL,Marius Vollmer1-7/+7
SCM_NEGATE_BOOL, SCM_BOOLP): Deprecated by moving into "deprecated.h". Replaced all uses with scm_is_false, scm_is_true, scm_from_bool, and scm_is_bool, respectively.
2004-05-10(scm_sigaction_for_thread): Validate that the handler is indeed aMarius Vollmer1-1/+1
procedure when it isn't a number.
2004-04-05(scm_sigaction_for_thread): Correction to signum rangeKevin Ryde1-2/+2
test, avoids SCM_VECTOR_REF outside bounds of signal_handlers on calling (sigaction NSIG).
2003-04-05Changed license terms to the plain LGPL thru-out.Marius Vollmer1-35/+11
2003-03-25* scmsigs.c: #include <config.h> if HAVE_CONFIG_H.Rob Browning1-0/+4
2002-11-03* __scm.h (USE_THREADS, GUILE_ISELECT): Define whenMarius Vollmer1-41/+3
SCM_DEBUG_DEPRECATED. Removed their use thru-out Guile.
2002-10-27(signal_cell_handlers, install_handler_data,Marius Vollmer1-20/+153
scm_delq_spine_x, really_install_handler, install_handler): New scheme for triggering signal handlers, to simplify take_signal. (take_signal): Simplified, to avoid race conditions. (scm_sigaction_for_thread): Use new Scheme. Validate that thread hasn't exited yet.
2002-10-16(scm_sigaction_for_thread): It's "USE_THREADS" not "USE_THREAD".Marius Vollmer1-1/+1
2002-10-11* async.c (s_scm_system_async_mark_for_thread): Only callMarius Vollmer1-0/+11
scm_i_thread_root when USE_THREADS is defined. Use scm_root otherwise. * scmsigs.c (take_signal): Only call scm_i_thread_root when USE_THREADS is defined. Use scm_root otherwise. (scm_sigaction_for_thread): Ignore THREAD argument when USE_THREADS is not defined. Also, move THREAD argument defaulting out of HAVE_SIGACTION section, which was a bug.
2002-10-10(scm_sigaction_for_thread): Store original handler in signal_handlers,Marius Vollmer1-2/+1
not the closure that is used as the async. The closure is stored in signal_handler_cells, as previously.
2002-10-05* async.c (scm_async_click): Set the cdr of a executed handlerMarius Vollmer1-1/+1
cell to SCM_BOOL_F, not SCM_EOL. (scm_i_queue_async_cell): Queue the cell at the end of the list, and only if the handler procedure is not already present. (scm_system_async_mark_for_thread): Initialize cdr of handler cell with SCM_BOOL_F. * scmsigs.c (scm_sigaction_for_thread): Likewise.
2002-10-04* scmsigs.h (scm_sigaction_for_thread): New prototype.Marius Vollmer1-47/+55
* scmsigs.c (got_signal): Removed. (signal_handler_cells, signal_handler_threads): New. (take_signal): Queue the cell of the signal for the specified thread. Reset the signal handler on systems that don't have sigaction. (sys_deliver_signals): Removed. (close_1): New. (scm_sigaction_for_thread): Renamed from scm_sigaction and extended to also set the thread of a signal and allocate a cell for it. Keep the Scheme name "sigaction". Check that signum is within range. Also, use SCM_VECTOR_REF instead of SCM_VELTS. (scm_sigaction): Implement in terms of scm_sigaction_for_thread. (scm_init_scmsigs): Allocate signal_handler_cells and signal_handler_threads vectors.
2002-07-202002-07-20 Han-Wen <hanwen@cs.uu.nl>Han-Wen Nienhuys1-17/+16
* *.c: add space after commas everywhere. * *.c: use SCM_VECTOR_SET everywhere, where a vector is written. Document cases where SCM_WRITABLE_VELTS() is used. * vectors.h (SCM_VELTS): prepare for write barrier, and let SCM_VELTS() return a const pointer (SCM_VECTOR_SET): add macro. * autogen.sh (mscripts): find and check version number of autoconf. Complain if 2.53 is not found.
2002-03-14Retire inclusion guard macro SCM_MAGIC_SNARFER.Thien-Thi Nguyen1-2/+0
2002-01-282002-01-28 Stefan Jahn <stefan@lkcc.org>Stefan Jahn1-1/+1
* configure.in (guile_cv_have_uint32_t): Look also in `stdint.h' for uint32_t. 2002-01-28 Stefan Jahn <stefan@lkcc.org> * symbols.c (scm_c_symbol2str): New function, replacement for `gh_scm2newsymbol()'. * strings.c (scm_c_substring2str): New function. Proper replacement for `gh_get_substr()'. * socket.c: Include `stdint.h' if available for the `uint32_t' declaration. * scmsigs.c (s_scm_sigaction): Initialize `chandler' (inhibits compiler warning). * backtrace.c: Include `lang.h' for GUILE_DEBUG conditional.
2001-11-25(scm_take_signal): Removed all code that assumes that signal handlersMarius Vollmer1-30/+1
are allowed to divert the flow of control. Call scm_system_async_mark_from_signal_handler instead of scm_system_async_mark.
2001-11-11* Documentation work.Neil Jerram1-4/+4
2001-11-02Made `usleep()' avalable on MinGW.Marius Vollmer1-2/+3
2001-07-21 * scmsigs.c: include sys/time.h for itimer stuff.Gary Houston1-0/+4
2001-07-19* scmsigs.c (s_scm_setitimer): new function.Rob Browning1-0/+90
(s_scm_setitimer): new function.
2001-07-09Remove "face-lift" comment.Thien-Thi Nguyen1-2/+0
2001-06-26Make compilation under Windows easier.Martin Grabmüller1-0/+12
2001-06-26 * eval.c (scm_call_0, scm_call_1, scm_call_2, scm_call_3,Keisuke Nishida1-3/+2
scm_apply_0, scm_apply_1, scm_apply_2, scm_apply_3): New functions.
2001-05-20(scm_c_make_gsubr, scm_c_define_gsubr, scm_c_make_gsubr_with_generic,Marius Vollmer1-2/+3
scm_c_define_gsubr_with_generic): New functions. They replace scm_make_gsubr and scm_make_gsubr_with_generic. The `make' variants only create the gsubr object, while the `define' variants also put it into the current module. Changed all callers. (scm_make_gsubr, scm_make_gsubr_with_generic): Deprecated. (scm_c_make_subr, scm_c_define_subr, scm_c_make_subr_with_generic, scm_c_define_subr_with_generic): New functions. They replace scm_make_subr, scm_make_subr_opt and scm_make_subr_with_generic. The `make' variants only create the subr object, while the `define' variants also put it into the current module. Changed all callers. (scm_make_subr, scm_make_subr_opt, scm_make_subr_with_generic): Deprecated.
2001-05-15Merge from mvo-vcell-cleanup-1-branch.Marius Vollmer1-7/+7
2001-05-04 * eval.c (scm_promise_p), list.c (scm_append_x, scm_reverse_x),Neil Jerram1-1/+0
symbols.c (scm_symbol_to_string), vports.c (scm_make_soft_port): Change R4RS references to R5RS. * guile-snarf.awk.in: Fixes so that (i) blank lines in the docstring source are correctly reproduced in the output (ii) we don't anymore get occasional trailing quotes. Also reorganized and commented the code a little. * scmsigs.c (scm_raise), throw.c (scm_throw): Docstring format fixes. * new-docstrings.texi, posix.texi, scheme-control.texi, scheme-data.texi, scheme-debug.texi, scheme-evaluation.texi, scheme-io.texi, scheme-memory.texi, scheme-procedures.texi: Automatic docstring updates (mostly argument name updates and blank lines). * scheme-modules.texi: Change double hyphens to single. * scheme-control.texi (Lazy Catch): Completed. * posix.texi (Network Databases and Address Conversion): New subsubsection `IPv6 Address Conversion'.
2001-04-10* Avoid redundant casting of argument numbers to char* and vice versa.Dirk Herrmann1-3/+3
2001-03-16 * list.c (scm_list, scm_cons_star, scm_null_p, scm_list_p),Martin Grabmüller1-2/+2
(scm_length, scm_append, scm_reverse, scm_list_ref), (scm_memq, scm_memv, scm_member, scm_delv_x, scm_delete_x), (scm_delq, scm_delv, scm_delete, scm_delq1_x, scm_delv1_x), (scm_delete1_x), gc.c (scm_map_free_list), (scm_free_list_length), hash.c (scm_hashq, scm_hashv), (scm_hash), hashtab.c (scm_hashq_ref, scm_hashq_set_x), (scm_hashq_remove_x, scm_hashv_ref, scm_hashv_set_x), (scm_hashv_remove_x, scm_hash_ref, scm_hash_set_x), (scm_hash_remove_x), ports.c (scm_pt_size, scm_pt_member), print.c (scm_current_pstate), scmsigs.c (scm_usleep), goops.c (scm_get_keyword, scm_sys_compute_slots): Added texinfo markup. * weaks.c (scm_weak_vector_p, scm_weak_key_hash_table_p), (scm_weak_value_hash_table_p, scm_doubly_weak_hash_table_p), rdelim.c (scm_read_delimited_x), strop.c (scm_string_index), symbols.c (scm_symbol_interned_p), numbers.c (scm_string_to_number), ports.c (scm_port_p): Corrected texinfo markup.
2001-03-11Use SCM_LISTn instead of scm_listify.Keisuke Nishida1-1/+1
2001-03-10* _scm.h: Removed #include <errno.h>.Mikael Djurfeldt1-1/+3
* error.c, net_db.c, putenv.c, stime.c: Removed declaration of errno variable (can be a macro on some systems, for example when using linux libc with threads). * error.c, filesys.c, gc.c, ioext.c, iselect.c, net_db.c, ports.c, posix.c, print.c, putenv.c, scmsigs.c, script.c, simpos.c, smob.c, socket.c, srcprop.c, stime.c, strop.c, unif.c, vports.c: Added #include <errno.h> in these 20 out of 100 files.
2001-03-09Remove #include <stdio.h>. Add #include <string.h>.Keisuke Nishida1-1/+0