You can subscribe to this list here.
| 2000 |
Jan
(81) |
Feb
(55) |
Mar
(459) |
Apr
(159) |
May
(126) |
Jun
(69) |
Jul
(48) |
Aug
(29) |
Sep
(106) |
Oct
(76) |
Nov
(155) |
Dec
(161) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(122) |
Feb
(150) |
Mar
(294) |
Apr
(124) |
May
(197) |
Jun
(266) |
Jul
(111) |
Aug
(259) |
Sep
(163) |
Oct
(142) |
Nov
(101) |
Dec
(86) |
| 2002 |
Jan
(187) |
Feb
(108) |
Mar
(274) |
Apr
(157) |
May
(346) |
Jun
(242) |
Jul
(345) |
Aug
(187) |
Sep
(263) |
Oct
(69) |
Nov
(30) |
Dec
(76) |
| 2003 |
Jan
(125) |
Feb
(191) |
Mar
(87) |
Apr
(69) |
May
(107) |
Jun
(66) |
Jul
(112) |
Aug
(161) |
Sep
(184) |
Oct
(137) |
Nov
(28) |
Dec
(61) |
| 2004 |
Jan
(148) |
Feb
(99) |
Mar
(365) |
Apr
(225) |
May
(311) |
Jun
(204) |
Jul
(95) |
Aug
(214) |
Sep
(256) |
Oct
(290) |
Nov
(239) |
Dec
(152) |
| 2005 |
Jan
(253) |
Feb
(183) |
Mar
(178) |
Apr
(88) |
May
(175) |
Jun
(195) |
Jul
(122) |
Aug
(81) |
Sep
(119) |
Oct
(200) |
Nov
(110) |
Dec
(179) |
| 2006 |
Jan
(154) |
Feb
(64) |
Mar
(55) |
Apr
(69) |
May
(66) |
Jun
(64) |
Jul
(80) |
Aug
(59) |
Sep
(62) |
Oct
(90) |
Nov
(132) |
Dec
(106) |
| 2007 |
Jan
(58) |
Feb
(51) |
Mar
(59) |
Apr
(19) |
May
(33) |
Jun
(52) |
Jul
(15) |
Aug
(50) |
Sep
(41) |
Oct
(259) |
Nov
(323) |
Dec
(136) |
| 2008 |
Jan
(205) |
Feb
(128) |
Mar
(203) |
Apr
(126) |
May
(307) |
Jun
(166) |
Jul
(259) |
Aug
(181) |
Sep
(217) |
Oct
(265) |
Nov
(256) |
Dec
(132) |
| 2009 |
Jan
(104) |
Feb
(81) |
Mar
(27) |
Apr
(21) |
May
(85) |
Jun
(237) |
Jul
(243) |
Aug
(199) |
Sep
(178) |
Oct
(151) |
Nov
(64) |
Dec
(39) |
| 2010 |
Jan
(33) |
Feb
(146) |
Mar
(125) |
Apr
(109) |
May
(52) |
Jun
(135) |
Jul
(103) |
Aug
(68) |
Sep
(99) |
Oct
(88) |
Nov
(45) |
Dec
(56) |
| 2011 |
Jan
(19) |
Feb
(32) |
Mar
(50) |
Apr
(105) |
May
(46) |
Jun
(22) |
Jul
(101) |
Aug
(80) |
Sep
(52) |
Oct
(16) |
Nov
(10) |
Dec
(29) |
| 2012 |
Jan
(8) |
Feb
(22) |
Mar
(17) |
Apr
(68) |
May
(19) |
Jun
(19) |
Jul
(12) |
Aug
(6) |
Sep
(13) |
Oct
(5) |
Nov
(5) |
Dec
(5) |
| 2013 |
Jan
(6) |
Feb
(4) |
Mar
(3) |
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(6) |
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
(16) |
Apr
(1) |
May
(8) |
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
|
Feb
(8) |
Mar
(23) |
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
(7) |
Sep
(1) |
Oct
|
Nov
|
Dec
(5) |
| 2016 |
Jan
|
Feb
|
Mar
(16) |
Apr
(6) |
May
(53) |
Jun
(19) |
Jul
(3) |
Aug
(39) |
Sep
(24) |
Oct
(2) |
Nov
(19) |
Dec
|
| 2017 |
Jan
(13) |
Feb
(44) |
Mar
(208) |
Apr
(12) |
May
(94) |
Jun
(54) |
Jul
(18) |
Aug
(52) |
Sep
(12) |
Oct
(22) |
Nov
(27) |
Dec
(93) |
| 2018 |
Jan
(85) |
Feb
(28) |
Mar
(16) |
Apr
(47) |
May
(16) |
Jun
(15) |
Jul
(10) |
Aug
(3) |
Sep
(5) |
Oct
|
Nov
(6) |
Dec
|
| 2019 |
Jan
(4) |
Feb
(6) |
Mar
(12) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
| 2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
(6) |
Oct
|
Nov
|
Dec
|
| 2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
| 2022 |
Jan
(2) |
Feb
|
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(10) |
Oct
(5) |
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
|
Mar
|
Apr
(9) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(8) |
Nov
(28) |
Dec
(3) |
| 2025 |
Jan
(8) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <cli...@li...> - 2010-10-04 12:04:53
|
Send clisp-cvs mailing list submissions to cli...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/clisp-cvs or, via email, send a message with subject or body 'help' to cli...@li... You can reach the person managing the list at cli...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of clisp-cvs digest..." CLISP CVS commits for today Today's Topics: 1. clisp/src ChangeLog, 1.7543, 1.7544 debug.d, 1.126, 1.127 lispbibl.d, 1.914, 1.915 spvw.d, 1.541, 1.542 zthread.d, 1.88, 1.89 (Vladimir Tzankov) ---------------------------------------------------------------------- Message: 1 Date: Sun, 03 Oct 2010 20:41:00 +0000 From: Vladimir Tzankov <vt...@us...> Subject: clisp/src ChangeLog, 1.7543, 1.7544 debug.d, 1.126, 1.127 lispbibl.d, 1.914, 1.915 spvw.d, 1.541, 1.542 zthread.d, 1.88, 1.89 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv25503/src Modified Files: ChangeLog debug.d lispbibl.d spvw.d zthread.d Log Message: fix bug#3077583: show-stack segfaults with MT Index: spvw.d =================================================================== RCS file: /cvsroot/clisp/clisp/src/spvw.d,v retrieving revision 1.541 retrieving revision 1.542 diff -u -d -r1.541 -r1.542 --- spvw.d 5 Aug 2010 21:10:29 -0000 1.541 +++ spvw.d 3 Oct 2010 20:40:58 -0000 1.542 @@ -599,12 +599,12 @@ if (!low) return NULL; high = low + byte_size; #ifdef STACK_DOWN - thread->_STACK_bound=(gcv_object_t *)(low + 0x40); - thread->_STACK=(gcv_object_t *)high; + thread->_STACK_bound = (gcv_object_t *)(low + 0x40); + thread->_STACK = (gcv_object_t *)high; #endif #ifdef STACK_UP - thread->_STACK_bound=(gcv_object_t *)(high - 0x40); - thread->_STACK=(gcv_object_t *)low; + thread->_STACK_bound = (gcv_object_t *)(high - 0x40); + thread->_STACK = (gcv_object_t *)low; #endif thread->_STACK_start=thread->_STACK; return thread->_STACK; @@ -740,8 +740,13 @@ /* The LISP stack should be unwound so no interesting stuff on it. Let's deallocate it.*/ begin_system_call(); - if (thread->_own_stack) - free(THREAD_LISP_STACK_START(thread)); + if (thread->_own_stack) { + #ifdef STACK_DOWN + free((char *)thread->_STACK_bound - 0x40); + #else /* STACK_UP */ + free(thread->_STACK_start); + #endif + } free(thread->_ptr_symvalues); /* free per trread special var bindings */ free(thread); end_system_call(); Index: zthread.d =================================================================== RCS file: /cvsroot/clisp/clisp/src/zthread.d,v retrieving revision 1.88 retrieving revision 1.89 diff -u -d -r1.88 -r1.89 --- zthread.d 7 Jul 2010 12:29:20 -0000 1.88 +++ zthread.d 3 Oct 2010 20:40:58 -0000 1.89 @@ -221,14 +221,8 @@ set_current_thread(me); /* first: initialize TLS */ var struct backtrace_t bt; me->_SP_anchor=(void*)SP(); - /* initialize backtrace */ - bt.bt_next = NULL; - bt.bt_function = L(make_thread); /* not exactly */ - bt.bt_stack = STACK STACKop -1; - bt.bt_num_arg = -1; - back_trace = &bt; - /* push the exit tag */ - pushSTACK(O(thread_exit_tag)); + back_trace = NULL; /* no back trace */ + pushSTACK(O(thread_exit_tag)); /* push the exit tag */ var gcv_object_t *initial_bindings = &STACK_1; var gcv_object_t *funptr = &STACK_2; /* create the thread exit CATCH frame */ Index: debug.d =================================================================== RCS file: /cvsroot/clisp/clisp/src/debug.d,v retrieving revision 1.126 retrieving revision 1.127 diff -u -d -r1.126 -r1.127 --- debug.d 15 Jul 2010 15:34:06 -0000 1.126 +++ debug.d 3 Oct 2010 20:40:58 -0000 1.127 @@ -1505,7 +1505,7 @@ var gcv_object_t* stream_ = &STACK_0; var uintL count = 0; var p_backtrace_t bt = back_trace; - while (!((gcv_object_t*)STACK_start cmpSTACKop FRAME) + while (!((gcv_object_t*)STACK_start == FRAME) && (frame_limit==0 || count<frame_limit)) { fresh_line(stream_); print_bt_to_frame(stream_,FRAME,&bt,&count); Index: lispbibl.d =================================================================== RCS file: /cvsroot/clisp/clisp/src/lispbibl.d,v retrieving revision 1.914 retrieving revision 1.915 diff -u -d -r1.914 -r1.915 --- lispbibl.d 27 Sep 2010 22:07:20 -0000 1.914 +++ lispbibl.d 3 Oct 2010 20:40:58 -0000 1.915 @@ -17315,15 +17315,6 @@ #endif #endif /* !defined(per_thread)*/ - #ifdef STACK_DOWN - #define THREAD_LISP_STACK_START(thread) \ - ((gcv_object_t *)thread->_STACK_bound-0x40) - #endif - #ifdef STACK_UP - #define THREAD_LISP_STACK_START(thread) \ - ((gcv_object_t *)thread->_STACK_start) - #endif - /* just the beginning of the structure is exported - what modules want to know about (in order to build) */ %% puts("struct object_tab_tl_ {"); Index: ChangeLog =================================================================== RCS file: /cvsroot/clisp/clisp/src/ChangeLog,v retrieving revision 1.7543 retrieving revision 1.7544 diff -u -d -r1.7543 -r1.7544 --- ChangeLog 3 Oct 2010 02:17:06 -0000 1.7543 +++ ChangeLog 3 Oct 2010 20:40:58 -0000 1.7544 @@ -1,3 +1,12 @@ +2010-10-03 Vladimir Tzankov <vtz...@gm...> + + fix bug#3077583: show-stack segfaults with MT + * lispbibl.d (THREAD_LISP_STACK_START): remove + * spvw.d (delete_thread): calculate thread stack address and free it + * debug.d (show_stack): do not use cmpSTACKop for testing end of stack. + FRAME == STACK_start should be correct end condition in all cases + * zthread.d (thread_stub): no back trace for new thread + 2010-10-02 Sam Steingold <sd...@gn...> * makemake.in: make charstrg.o depend on gllib ------------------------------ ------------------------------------------------------------------------------ Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding. http://p.sf.net/sfu/hp-phase2-d2d ------------------------------ _______________________________________________ clisp-cvs mailing list cli...@li... https://lists.sourceforge.net/lists/listinfo/clisp-cvs End of clisp-cvs Digest, Vol 54, Issue 2 **************************************** |
|
From: SourceForge.net <no...@so...> - 2010-10-03 20:42:52
|
Bugs item #3077583, was opened at 2010-09-29 00:09 Message generated for change (Comment added) made by vtz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=3077583&group_id=1355 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: multithreading Group: segfault >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Don Cohen (donc) Assigned to: Vladimir Tzankov (vtz) Summary: seg fault from cvs MT clisp due to show-stack Initial Comment: doesn't happen if I just run clisp and do show-stack in the main thread, but after doing this: [1]> (defun show-socket-addrs(socket) (multiple-value-bind (local-host local-port) (socket:socket-stream-local socket) (multiple-value-bind (remote-host remote-port) (socket:socket-stream-peer socket) (format t "~&Connection: ~S:~D -- ~S:~D~%" remote-host remote-port local-host local-port)))) SHOW-SOCKET-ADDRS [2]> (defun debug-server() (let ((server (socket:socket-server 8217 :interface "localhost"))) (unwind-protect (loop (let ((socket (socket:socket-accept server :buffered nil))) (show-socket-addrs socket) (let ((tlist (loop for x in (mt:list-threads) as i from 1 when (mt:thread-active-p x) collect (cons i x))) ans) (print tlist socket) (print "debug which thread (enter the number)" socket) (when (setf ans (cdr (assoc (read socket) tlist))) (mt:thread-interrupt ans :function (lambda nil (let ((*standard-input* socket) (*standard-output* socket) (*debug-io* socket) (*error-output* socket) (*trace-output* socket) (*query-io* socket)) (unwind-protect (break "debug") (close socket))))))))) (socket:socket-server-close server)))) DEBUG-SERVER [3]> (mt:make-thread #'debug-server :name "debug-server") #<THREAD "debug-server"> [4]> then in another shell: $ telnet localhost 8217 Trying 127.0.0.1...^M Connected to localhost.localdomain (127.0.0.1).^M Escape character is '^]'.^M ^M ((1 . #<THREAD "debug-server">) (2 . #<THREAD "main thread">)) ^M "debug which thread (enter the number)" 1 1^M ^M ** - Continuable Error^M debug^M If you continue (by typing 'continue'): Return from BREAK loop^M Break 1 [1]> (ext:show-stack) (ext:show-stack)^M ... 670 more lines <21/5> #<SYSTEM-FUNCTION MAKE-THREAD>^M - Connection closed by foreign host.^M [2010-09-28 12:54:50 root@collabrium /home/metasearch] $ The reason the connection is closed is that the clisp process now contains: Segmentation fault [2010-09-28 12:54:51 root@collabrium /home/metasearch] $ ---------------------------------------------------------------------- Comment By: Vladimir Tzankov (vtz) Date: 2010-10-03 23:42 Message: thank you for your bug report. the bug has been fixed in the CVS tree. you can either wait for the next release (recommended) or check out the current CVS tree (see http://clisp.cons.org) and build CLISP from the sources (be advised that between releases the CVS tree is very unstable and may not even build on your platform). ---------------------------------------------------------------------- Comment By: Vladimir Tzankov (vtz) Date: 2010-09-29 01:35 Message: The problem is similar to bug#1506316. It is caused by not detecting properly the bottom of the stack in debug.d:show_stack():1508. In this case STACK_start == FRAME but cmpSTACKop is defined as > - thus the stack is traversed beyond it's end. Shouldn't the comparison be reversed: (FRAME cmpSTACKop (gcv_object_t*)STACK_start)? Would this work if STACK_DOWN is defined? The problem is not experienced for the first thread in process since it's stack is allocated differently (at least page aligned in spvw.d:init_memory()). show-stack in this thread ends with following: <20/3> #<SYSTEM-FUNCTION SYSTEM::DRIVER> - #<ADDRESS #x00000000> - #<ADDRESS #x00000000> - #<ADDRESS #x00000000> 20 Why 3 nullobjs at the end - by design there should be just 2? Looks like this works because of uninitialized memory. With thread created by mt:create-thread, show-stack shows: - #<FUNCTION :LAMBDA NIL (LOOP (SLEEP 1))> - #<ADDRESS #x00000000> - #<ADDRESS #x00000000> <17/5> #<SYSTEM-FUNCTION MAKE-THREAD> and segfault here (two nullobjs are the bottom of the stack and beyond them there is some uninitialized memory). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=3077583&group_id=1355 |
|
From: <cli...@li...> - 2010-10-03 12:05:03
|
Send clisp-cvs mailing list submissions to cli...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/clisp-cvs or, via email, send a message with subject or body 'help' to cli...@li... You can reach the person managing the list at cli...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of clisp-cvs digest..." CLISP CVS commits for today Today's Topics: 1. clisp/src makemake.in,1.950,1.951 (Sam Steingold) 2. clisp/src ChangeLog,1.7542,1.7543 makemake.in,1.951,1.952 (Sam Steingold) ---------------------------------------------------------------------- Message: 1 Date: Sun, 03 Oct 2010 01:16:56 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src makemake.in,1.950,1.951 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv18631 Modified Files: makemake.in Log Message: move emacs/vim mode spec up Index: makemake.in =================================================================== RCS file: /cvsroot/clisp/clisp/src/makemake.in,v retrieving revision 1.950 retrieving revision 1.951 diff -u -d -r1.950 -r1.951 --- makemake.in 29 Sep 2010 14:46:39 -0000 1.950 +++ makemake.in 3 Oct 2010 01:16:53 -0000 1.951 @@ -1,6 +1,6 @@ #! @SHELL@ -CONFIG_SHELL="@SHELL@" # mind the quoting, for args like -x. # -*- coding: utf-8; mode: shell-script -*- vim:filetype=sh +CONFIG_SHELL="@SHELL@" # mind the quoting, for args like -x. # Creation of the Makefile used for compiling CLISP # Bruno Haible 1991-2008 # Sam Steingold 1999-2010 ------------------------------ Message: 2 Date: Sun, 03 Oct 2010 02:17:08 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src ChangeLog,1.7542,1.7543 makemake.in,1.951,1.952 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv32189/src Modified Files: ChangeLog makemake.in Log Message: * src/makemake.in: make charstrg.o depend on gllib Index: makemake.in =================================================================== RCS file: /cvsroot/clisp/clisp/src/makemake.in,v retrieving revision 1.951 retrieving revision 1.952 diff -u -d -r1.951 -r1.952 --- makemake.in 3 Oct 2010 01:16:53 -0000 1.951 +++ makemake.in 3 Oct 2010 02:17:06 -0000 1.952 @@ -2502,7 +2502,7 @@ test $f = spvw -o $f = hashtabl && depends=$depends' aridecl' if [ $f = charstrg -a "${with_unicode}" != no ] ; then depends=$depends${UNICODE_INCLUDES} - dependsc=${dependsc}${UNICODE_EXTRA} + dependsc=${dependsc}${UNICODE_EXTRA}' gllib' fi test $f = encoding && depends=$depends''$NLS_INCLUDES test $f = error && depends=$depends' '$ERROR_INCLUDES Index: ChangeLog =================================================================== RCS file: /cvsroot/clisp/clisp/src/ChangeLog,v retrieving revision 1.7542 retrieving revision 1.7543 diff -u -d -r1.7542 -r1.7543 --- ChangeLog 29 Sep 2010 18:31:09 -0000 1.7542 +++ ChangeLog 3 Oct 2010 02:17:06 -0000 1.7543 @@ -1,3 +1,7 @@ +2010-10-02 Sam Steingold <sd...@gn...> + + * makemake.in: make charstrg.o depend on gllib + 2010-09-29 Sam Steingold <sd...@gn...> do not use gnulib module getdate which should have been called get_date ------------------------------ ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ------------------------------ _______________________________________________ clisp-cvs mailing list cli...@li... https://lists.sourceforge.net/lists/listinfo/clisp-cvs End of clisp-cvs Digest, Vol 54, Issue 1 **************************************** |
|
From: <pj...@in...> - 2010-10-03 05:05:20
|
<Joe...@t-...> writes: > Don Cohen wrote: > >>I saw the warning (c. 2004?) and concluded that this was not a good >>way to deal with signals. > Still applies. > > Yet I think CLISP would benefit, like CMUCL, from an API which would > allow to declare signal handlers written in Lisp. > The effort estimate may be short sighted, > but the most important piece of work is to note a signal was invoked > in the signal handler, then later -- at a safe point to do so -- invoke > the Lisp callback (not unlike ^C signals were tested synchronously > on some platforms, then the break loop invoked). > A major difference with CMUCL is that CLISP normally hangs in > (READ *standard-input*), instead of polling a set of fd. > > Of course with MT you have the additional burden on deciding upon > which thread to invoke the delayed signal handler. Recently, some improvement has been done on ecl to allow us to catch unix signals as a lisp condition. It is signaled with CERROR, which allows us to catch it with HANDLER-BIND, and to further continue processing with a continuation restart. This is great. Also, any signal can be thus handled, by temporarily overriding the implementation handler for signals that are normally handled by the implementation. (On the other hand, I'm not entirely happy with the API provided by ECL, but this is nothing that a couple of macro can't solve. I guess a review of the "state of the art" could be done to come with a nice, standardizable, unix signal handling lisp API). -- __Pascal Bourguignon__ http://www.informatimago.com/ |
|
From: Vladimir S. <vs...@gm...> - 2010-10-02 05:23:39
|
Turns out the key step I was missing was: rm src/config.cache Vladimir 2010/9/27 Sam Steingold <sd...@gn...>: > Vladimir Sedach wrote: >> >> Tried building a CLISP I just pulled from CVS, on Debian 5. The installed >> version of libsigsegv didn't work (older version), followed directions to >> build and install libsigsegv-2.8, first with --prefix=/usr/local, then with >> --prefix=/ >> usr (default), neither were detected by the ./configure script (passed >> --with- >> libsigsegv-prefix parameter). I think the detection routine is in the >> aclocal.m4 script, but not sure. Can someone double-check this? > > the detection routine is in src/glm4/libsigsegv.m4 which comes from gnulib. > you should take a look at config.log for gcc error messages; if you cannot > figure out the problem with your setup, you should complain to gnulib > maintainers at <bug...@gn...>. > |
|
From: <cli...@li...> - 2010-09-30 12:05:50
|
Send clisp-cvs mailing list submissions to cli...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/clisp-cvs or, via email, send a message with subject or body 'help' to cli...@li... You can reach the person managing the list at cli...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of clisp-cvs digest..." CLISP CVS commits for today Today's Topics: 1. clisp/modules/syscalls/gllib Makefile.am, 1.20, 1.21 Makefile.in, 1.26, 1.27 (Sam Steingold) 2. clisp/src/gllib Makefile.am, 1.35, 1.36 Makefile.in, 1.43, 1.44 sys_wait.in.h, 1.1, 1.2 (Sam Steingold) 3. clisp/modules/syscalls calls.c,1.319,1.320 (Sam Steingold) 4. clisp/modules/syscalls syscalls.xml,1.135,1.136 (Sam Steingold) ---------------------------------------------------------------------- Message: 1 Date: Wed, 29 Sep 2010 18:38:55 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls/gllib Makefile.am, 1.20, 1.21 Makefile.in, 1.26, 1.27 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls/gllib In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv11007/modules/syscalls/gllib Modified Files: Makefile.am Makefile.in Log Message: regenerate after removing gnulib getdate Index: Makefile.in =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/gllib/Makefile.in,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- Makefile.in 29 Sep 2010 13:40:09 -0000 1.26 +++ Makefile.in 29 Sep 2010 18:38:53 -0000 1.27 @@ -24,7 +24,7 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=modules/syscalls/gllib --m4-base=modules/syscalls/glm4 --doc-base=doc --tests-base=tests --aux-dir=src/build-aux --avoid=no-c++ --avoid=stdint --avoid=stdbool --avoid=havelib --avoid=gettext --avoid=localcharset --avoid=uniwidth/width --avoid=streq --avoid=uniname/uniname --avoid=unitypes --avoid=link-follow --avoid=host-cpu-c-abi --avoid=socklen --avoid=sockets --avoid=close-hook --avoid=setenv --avoid=unsetenv --avoid=errno --avoid=nocrash --avoid=libsigsegv --avoid=gnu-make --avoid=gettimeofday --avoid=getpagesize --avoid=sys_time --avoid=sys_wait --avoid=alloca-opt --avoid=alloca --avoid=extensions --avoid=include_next --avoid=verify --avoid=string --avoid=mbsinit --avoid=wchar --avoid=wctype --avoid=mbrtowc --avoid=mbsrtowcs --avoid=memchr --avoid=nl_langinfo --avoid=xalloc-die --no-libtool --macro-prefix=sc_gl --no-vc-files getdate mktime strerror strftime strptime strverscmp uname +# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=modules/syscalls/gllib --m4-base=modules/syscalls/glm4 --doc-base=doc --tests-base=tests --aux-dir=src/build-aux --avoid=no-c++ --avoid=stdint --avoid=stdbool --avoid=havelib --avoid=gettext --avoid=localcharset --avoid=uniwidth/width --avoid=streq --avoid=uniname/uniname --avoid=unitypes --avoid=link-follow --avoid=host-cpu-c-abi --avoid=socklen --avoid=sockets --avoid=close-hook --avoid=setenv --avoid=unsetenv --avoid=errno --avoid=nocrash --avoid=libsigsegv --avoid=gnu-make --avoid=gettimeofday --avoid=getpagesize --avoid=sys_time --avoid=sys_wait --avoid=alloca-opt --avoid=alloca --avoid=extensions --avoid=include_next --avoid=verify --avoid=string --avoid=mbsinit --avoid=wchar --avoid=wctype --avoid=mbrtowc --avoid=mbsrtowcs --avoid=memchr --avoid=nl_langinfo --avoid=xalloc-die --no-libtool --macro-prefix=sc_gl --no-vc-files mktime strerror strftime strptime strverscmp uname @@ -49,7 +49,7 @@ host_triplet = @host@ subdir = gllib DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in getdate.c + $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -63,7 +63,7 @@ ARFLAGS = cru libgnu_a_AR = $(AR) $(ARFLAGS) am__DEPENDENCIES_1 = -am_libgnu_a_OBJECTS = c-ctype.$(OBJEXT) getdate.$(OBJEXT) +am_libgnu_a_OBJECTS = dummy.$(OBJEXT) libgnu_a_OBJECTS = $(am_libgnu_a_OBJECTS) LTLIBRARIES = $(noinst_LTLIBRARIES) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) @@ -74,8 +74,6 @@ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -YACCCOMPILE = $(YACC) $(YFLAGS) $(AM_YFLAGS) -YLWRAP = $(CLISP_LIBDIR)/build-aux/ylwrap SOURCES = $(libgnu_a_SOURCES) $(EXTRA_libgnu_a_SOURCES) DIST_SOURCES = $(libgnu_a_SOURCES) $(EXTRA_libgnu_a_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ @@ -344,7 +342,6 @@ HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ -HAVE__BOOL = @HAVE__BOOL@ INCLUDE_NEXT = @INCLUDE_NEXT@ INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INSTALL = @INSTALL@ @@ -357,7 +354,6 @@ LIBGNU_LTLIBDEPS = @LIBGNU_LTLIBDEPS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ -LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@ LN = @LN@ LN_S = @LN_S@ LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ @@ -446,7 +442,6 @@ REPLACE_WRITE = @REPLACE_WRITE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ -STDBOOL_H = @STDBOOL_H@ STDDEF_H = @STDDEF_H@ STRIP = @STRIP@ SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ @@ -455,8 +450,6 @@ UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ VERSION = @VERSION@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ @@ -519,13 +512,12 @@ noinst_LIBRARIES = libgnu.a noinst_LTLIBRARIES = EXTRA_DIST = alignof.h $(CLISP_LIBDIR)/build-aux/arg-nonnull.h \ - $(CLISP_LIBDIR)/build-aux/c++defs.h getdate.c getdate.h \ - gethostname.c w32sock.h gettime.c intprops.h mbrlen.c \ - mktime-internal.h mktime.c stddef.in.h strcasecmp.c \ - strncasecmp.c strerror.c strftime.c strftime.h strings.in.h \ - strptime.c strverscmp.c sys_socket.in.h sys_utsname.in.h \ - time.in.h time_r.c timespec.h uname.c unistd.in.h \ - $(CLISP_LIBDIR)/build-aux/warn-on-use.h xalloc.h xmalloc.c + $(CLISP_LIBDIR)/build-aux/c++defs.h gethostname.c w32sock.h \ + intprops.h mbrlen.c mktime-internal.h mktime.c stddef.in.h \ + strcasecmp.c strncasecmp.c strerror.c strftime.c strftime.h \ + strings.in.h strptime.c strverscmp.c sys_socket.in.h \ + sys_utsname.in.h time.in.h time_r.c uname.c unistd.in.h \ + $(CLISP_LIBDIR)/build-aux/warn-on-use.h # The BUILT_SOURCES created by this Makefile snippet are not used via #include # statements but through direct file reference. Therefore this snippet must be @@ -536,27 +528,26 @@ # statements but through direct file reference. Therefore this snippet must be # present in all Makefile.am that need it. This is ensured by the applicability # 'all' defined above. -BUILT_SOURCES = arg-nonnull.h c++defs.h getdate.c $(STDDEF_H) \ - strings.h sys/socket.h sys/utsname.h time.h unistd.h \ - warn-on-use.h +BUILT_SOURCES = arg-nonnull.h c++defs.h $(STDDEF_H) strings.h \ + sys/socket.h sys/utsname.h time.h unistd.h warn-on-use.h SUFFIXES = MOSTLYCLEANFILES = core *.stackdump arg-nonnull.h arg-nonnull.h-t \ - c++defs.h c++defs.h-t getdate.c-t stddef.h stddef.h-t \ - strings.h strings.h-t sys/socket.h sys/socket.h-t \ - sys/utsname.h sys/utsname.h-t time.h time.h-t unistd.h \ - unistd.h-t warn-on-use.h warn-on-use.h-t + c++defs.h c++defs.h-t stddef.h stddef.h-t strings.h \ + strings.h-t sys/socket.h sys/socket.h-t sys/utsname.h \ + sys/utsname.h-t time.h time.h-t unistd.h unistd.h-t \ + warn-on-use.h warn-on-use.h-t MOSTLYCLEANDIRS = sys sys CLEANFILES = DISTCLEANFILES = -MAINTAINERCLEANFILES = getdate.c +MAINTAINERCLEANFILES = AM_CPPFLAGS = AM_CFLAGS = -libgnu_a_SOURCES = c-ctype.h c-ctype.c getdate.y +libgnu_a_SOURCES = dummy.c libgnu_a_LIBADD = $(sc_gl_LIBOBJS) libgnu_a_DEPENDENCIES = $(sc_gl_LIBOBJS) -EXTRA_libgnu_a_SOURCES = gethostname.c gettime.c mbrlen.c mktime.c \ - strcasecmp.c strncasecmp.c strerror.c strftime.c strptime.c \ - strverscmp.c time_r.c uname.c xmalloc.c +EXTRA_libgnu_a_SOURCES = gethostname.c mbrlen.c mktime.c strcasecmp.c \ + strncasecmp.c strerror.c strftime.c strptime.c strverscmp.c \ + time_r.c uname.c ARG_NONNULL_H = arg-nonnull.h CXXDEFS_H = c++defs.h WARN_ON_USE_H = warn-on-use.h @@ -564,7 +555,7 @@ $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: -.SUFFIXES: .c .o .obj .y +.SUFFIXES: .c .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ @@ -618,10 +609,8 @@ distclean-compile: -rm -f *.tab.c -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/c-ctype.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getdate.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dummy.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gethostname.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gettime.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mbrlen.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mktime.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strcasecmp.Po@am__quote@ @@ -632,7 +621,6 @@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strverscmp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/time_r.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uname.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmalloc.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @@ -648,9 +636,6 @@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` -.y.c: - $(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h $*.h y.output $*.output -- $(YACCCOMPILE) - # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, @@ -879,7 +864,6 @@ maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." - -rm -f getdate.c -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive @@ -991,18 +975,6 @@ > $@-t && \ mv $@-t $@ -# This rule overrides the Automake generated .y.c rule, to ensure that the -# getdate.c file gets generated in the source directory, not in the build -# directory. -getdate.c: getdate.y - $(AM_V_GEN)$(SHELL) $(YLWRAP) $(srcdir)/getdate.y \ - y.tab.c getdate.c \ - y.tab.h getdate.h \ - y.output getdate.output \ - -- $(YACC) $(YFLAGS) $(AM_YFLAGS) && \ - mv getdate.c getdate.c-t && \ - mv getdate.c-t $(srcdir)/getdate.c - # We need the following in order to create <stddef.h> when the system # doesn't have one that works with the given compiler. stddef.h: stddef.in.h Index: Makefile.am =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/gllib/Makefile.am,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- Makefile.am 29 Sep 2010 13:24:14 -0000 1.20 +++ Makefile.am 29 Sep 2010 18:38:53 -0000 1.21 @@ -9,7 +9,7 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=modules/syscalls/gllib --m4-base=modules/syscalls/glm4 --doc-base=doc --tests-base=tests --aux-dir=src/build-aux --avoid=no-c++ --avoid=stdint --avoid=stdbool --avoid=havelib --avoid=gettext --avoid=localcharset --avoid=uniwidth/width --avoid=streq --avoid=uniname/uniname --avoid=unitypes --avoid=link-follow --avoid=host-cpu-c-abi --avoid=socklen --avoid=sockets --avoid=close-hook --avoid=setenv --avoid=unsetenv --avoid=errno --avoid=nocrash --avoid=libsigsegv --avoid=gnu-make --avoid=gettimeofday --avoid=getpagesize --avoid=sys_time --avoid=sys_wait --avoid=alloca-opt --avoid=alloca --avoid=extensions --avoid=include_next --avoid=verify --avoid=string --avoid=mbsinit --avoid=wchar --avoid=wctype --avoid=mbrtowc --avoid=mbsrtowcs --avoid=memchr --avoid=nl_langinfo --avoid=xalloc-die --no-libtool --macro-prefix=sc_gl --no-vc-files getdate mktime strerror strftime strptime strverscmp uname +# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=modules/syscalls/gllib --m4-base=modules/syscalls/glm4 --doc-base=doc --tests-base=tests --aux-dir=src/build-aux --avoid=no-c++ --avoid=stdint --avoid=stdbool --avoid=havelib --avoid=gettext --avoid=localcharset --avoid=uniwidth/width --avoid=streq --avoid=uniname/uniname --avoid=unitypes --avoid=link-follow --avoid=host-cpu-c-abi --avoid=socklen --avoid=sockets --avoid=close-hook --avoid=setenv --avoid=unsetenv --avoid=errno --avoid=nocrash --avoid=libsigsegv --avoid=gnu-make --avoid=gettimeofday --avoid=getpagesize --avoid=sys_time --avoid=sys_wait --avoid=alloca-opt --avoid=alloca --avoid=extensions --avoid=include_next --avoid=verify --avoid=string --avoid=mbsinit --avoid=wchar --avoid=wctype --avoid=mbrtowc --avoid=mbsrtowcs --avoid=memchr --avoid=nl_langinfo --avoid=xalloc-die --no-libtool --macro-prefix=sc_gl --no-vc-files mktime strerror strftime strptime strverscmp uname AUTOMAKE_OPTIONS = 1.5 gnits @@ -91,35 +91,6 @@ ## end gnulib module c++defs -## begin gnulib module c-ctype - -libgnu_a_SOURCES += c-ctype.h c-ctype.c - -## end gnulib module c-ctype - -## begin gnulib module getdate - -# This rule overrides the Automake generated .y.c rule, to ensure that the -# getdate.c file gets generated in the source directory, not in the build -# directory. -getdate.c: getdate.y - $(AM_V_GEN)$(SHELL) $(YLWRAP) $(srcdir)/getdate.y \ - y.tab.c getdate.c \ - y.tab.h getdate.h \ - y.output getdate.output \ - -- $(YACC) $(YFLAGS) $(AM_YFLAGS) && \ - mv getdate.c getdate.c-t && \ - mv getdate.c-t $(srcdir)/getdate.c -libgnu_a_SOURCES += getdate.y -BUILT_SOURCES += getdate.c -MOSTLYCLEANFILES += getdate.c-t -MAINTAINERCLEANFILES += getdate.c -EXTRA_DIST += getdate.c - -EXTRA_DIST += getdate.h - -## end gnulib module getdate - ## begin gnulib module gethostname @@ -129,15 +100,6 @@ ## end gnulib module gethostname -## begin gnulib module gettime - - -EXTRA_DIST += gettime.c - -EXTRA_libgnu_a_SOURCES += gettime.c - -## end gnulib module gettime - ## begin gnulib module intprops @@ -382,13 +344,6 @@ ## end gnulib module time_r -## begin gnulib module timespec - - -EXTRA_DIST += timespec.h - -## end gnulib module timespec - ## begin gnulib module uname @@ -542,14 +497,11 @@ ## end gnulib module warn-on-use -## begin gnulib module xalloc - - -EXTRA_DIST += xalloc.h xmalloc.c +## begin gnulib module dummy -EXTRA_libgnu_a_SOURCES += xmalloc.c +libgnu_a_SOURCES += dummy.c -## end gnulib module xalloc +## end gnulib module dummy mostlyclean-local: mostlyclean-generic ------------------------------ Message: 2 Date: Wed, 29 Sep 2010 18:38:55 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src/gllib Makefile.am, 1.35, 1.36 Makefile.in, 1.43, 1.44 sys_wait.in.h, 1.1, 1.2 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src/gllib In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv11007/src/gllib Modified Files: Makefile.am Makefile.in sys_wait.in.h Log Message: regenerate after removing gnulib getdate Index: Makefile.in =================================================================== RCS file: /cvsroot/clisp/clisp/src/gllib/Makefile.in,v retrieving revision 1.43 retrieving revision 1.44 diff -u -d -r1.43 -r1.44 --- Makefile.in 28 Sep 2010 19:41:02 -0000 1.43 +++ Makefile.in 29 Sep 2010 18:38:53 -0000 1.44 @@ -304,6 +304,7 @@ GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ GNULIB_UNSETENV = @GNULIB_UNSETENV@ GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_WAITPID = @GNULIB_WAITPID@ GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ @@ -1660,13 +1661,16 @@ # We need the following in order to create <sys/wait.h> when the system # has one that is incomplete. -sys/wait.h: sys_wait.in.h +sys/wait.h: sys_wait.in.h $(CXXDEFS_H) $(WARN_ON_USE_H) $(AM_V_at)$(MKDIR_P) sys $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_SYS_WAIT_H''@|$(NEXT_SYS_WAIT_H)|g' \ + -e 's|@''GNULIB_WAITPID''@|$(GNULIB_WAITPID)|g' \ + -e '/definitions of _gl_GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _gl_GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/sys_wait.in.h; \ } > $@-t && \ mv $@-t $@ Index: Makefile.am =================================================================== RCS file: /cvsroot/clisp/clisp/src/gllib/Makefile.am,v retrieving revision 1.35 retrieving revision 1.36 diff -u -d -r1.35 -r1.36 --- Makefile.am 28 Sep 2010 18:43:30 -0000 1.35 +++ Makefile.am 29 Sep 2010 18:38:53 -0000 1.36 @@ -804,13 +804,16 @@ # We need the following in order to create <sys/wait.h> when the system # has one that is incomplete. -sys/wait.h: sys_wait.in.h +sys/wait.h: sys_wait.in.h $(CXXDEFS_H) $(WARN_ON_USE_H) $(AM_V_at)$(MKDIR_P) sys $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_SYS_WAIT_H''@|$(NEXT_SYS_WAIT_H)|g' \ + -e 's|@''GNULIB_WAITPID''@|$(GNULIB_WAITPID)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/sys_wait.in.h; \ } > $@-t && \ mv $@-t $@ Index: sys_wait.in.h =================================================================== RCS file: /cvsroot/clisp/clisp/src/gllib/sys_wait.in.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- sys_wait.in.h 27 Sep 2010 21:39:10 -0000 1.1 +++ sys_wait.in.h 29 Sep 2010 18:38:53 -0000 1.2 @@ -30,6 +30,15 @@ #ifndef _gl_GL_SYS_WAIT_H #define _gl_GL_SYS_WAIT_H +/* Get pid_t. */ +#include <sys/types.h> + + +/* The definitions of _gl_GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _gl_GL_WARN_ON_USE is copied here. */ + + #if !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) /* Unix API. */ @@ -71,24 +80,11 @@ # define WCOREDUMP(x) ((x) & 0x80) # endif -# ifdef __cplusplus -extern "C" { -# endif - -/* Declarations of functions. */ - -# ifdef __cplusplus -} -# endif - #else /* Native Windows API. */ -# include <process.h> /* for _cwait, WAIT_CHILD */ # include <signal.h> /* for SIGTERM */ -# define waitpid(pid,statusp,options) _cwait (statusp, pid, WAIT_CHILD) - /* The following macros apply to an argument x, that is a status of a process, as returned by waitpid() or, equivalently, _cwait() or GetExitCodeProcess(). This value is simply an 'int', not composed of bit fields. */ @@ -111,5 +107,29 @@ #endif +#ifdef __cplusplus +extern "C" { +#endif + +/* Declarations of functions. */ + +#if @GNULIB_WAITPID@ +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +_gl_GL_FUNCDECL_SYS (waitpid, pid_t, (pid_t pid, int *statusp, int options)); +# endif +_gl_GL_CXXALIAS_SYS (waitpid, pid_t, (pid_t pid, int *statusp, int options)); +_gl_GL_CXXALIASWARN (waitpid); +#elif defined GNULIB_POSIXCHECK +# undef waitpid +# if HAVE_RAW_DECL_WAITPID +_gl_GL_WARN_ON_USE (waitpid, "waitpid is unportable - " + "use gnulib module sys_wait for portability"); +# endif +#endif + +#ifdef __cplusplus +} +#endif + #endif /* _gl_GL_SYS_WAIT_H */ #endif /* _gl_GL_SYS_WAIT_H */ ------------------------------ Message: 3 Date: Wed, 29 Sep 2010 19:30:00 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls calls.c,1.319,1.320 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv20144 Modified Files: calls.c Log Message: module__syscalls__init_function_2: fix setenv invocation and lib_dir use Index: calls.c =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/calls.c,v retrieving revision 1.319 retrieving revision 1.320 diff -u -d -r1.319 -r1.320 --- calls.c 29 Sep 2010 18:31:09 -0000 1.319 +++ calls.c 29 Sep 2010 19:29:58 -0000 1.320 @@ -5837,13 +5837,13 @@ #endif /* if DATEMSK is not set, set it to the clisp-supplied value */ if (NULL == getenv("DATEMSK")) { - with_string_0(GLO(lib_dir), GLO(pathname_encoding), ldz, { + with_string_0(physical_namestring(GLO(lib_dir)),GLO(pathname_encoding),ldz,{ char datemsk[MAXPATHLEN]; strcpy(datemsk,ldz); if (ldz[ldz_len-1] == '/') strcat(datemsk,"syscalls/datemsk"); else strcat(datemsk,"/syscalls/datemsk"); - setenv("DATEMSK",datemsk); + setenv("DATEMSK",datemsk,0); }); } } ------------------------------ Message: 4 Date: Wed, 29 Sep 2010 19:50:57 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls syscalls.xml,1.135,1.136 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv25394 Modified Files: syscalls.xml Log Message: document setting DATEMSK Index: syscalls.xml =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/syscalls.xml,v retrieving revision 1.135 retrieving revision 1.136 diff -u -d -r1.135 -r1.136 --- syscalls.xml 29 Sep 2010 13:24:14 -0000 1.135 +++ syscalls.xml 29 Sep 2010 19:50:55 -0000 1.136 @@ -834,8 +834,11 @@ <varlistentry id="getdate"><term><code>(OS:GETDATE &string-r; &optional-amp; timezone)</code></term> <listitem><simpara>Parse the &string-r; into a universal time using - <function role="unix">getdate</function>.</simpara></listitem></varlistentry> -</variablelist></section> + <function role="unix">getdate</function>.</simpara> + <simpara>If the the &env-var; <envar>DATEMSK</envar> is not set when + &clisp; is invoked, &clisp; sets it to point to the file + <code>(&merge-pathnames; "syscalls/datemsk" &libdir;)</code>. +</simpara></listitem></varlistentry></variablelist></section> <section id="strverscmp"><title>String comparision</title> <para>Functions <simplelist columns="1"> ------------------------------ ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ------------------------------ _______________________________________________ clisp-cvs mailing list cli...@li... https://lists.sourceforge.net/lists/listinfo/clisp-cvs End of clisp-cvs Digest, Vol 53, Issue 36 ***************************************** |
|
From: <cli...@li...> - 2010-09-29 18:39:05
|
Send clisp-cvs mailing list submissions to cli...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/clisp-cvs or, via email, send a message with subject or body 'help' to cli...@li... You can reach the person managing the list at cli...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of clisp-cvs digest..." CLISP CVS commits for today Today's Topics: 1. clisp/modules/syscalls/gllib c-ctype.c, 1.1, NONE c-ctype.h, 1.1, NONE getdate.h, 1.1, NONE getdate.y, 1.1, NONE gettext.h, 1.1, NONE gettime.c, 1.1, NONE timespec.h, 1.1, NONE xalloc.h, 1.1, NONE xmalloc.c, 1.1, NONE (Sam Steingold) 2. clisp Makefile.devel,1.285,1.286 (Sam Steingold) 3. clisp/modules/syscalls/glm4 bison.m4, 1.1, NONE clock_time.m4, 1.1, NONE error.m4, 1.1, NONE getdate.m4, 1.1, NONE gettime.m4, 1.1, NONE inline.m4, 1.1, NONE timespec.m4, 1.1, NONE xalloc.m4, 1.1, NONE (Sam Steingold) 4. clisp/src ChangeLog,1.7541,1.7542 (Sam Steingold) 5. clisp/modules/syscalls calls.c,1.318,1.319 configure.in,1.95,1.96 (Sam Steingold) 6. clisp/modules/syscalls/glm4 gnulib-cache.m4, 1.12, 1.13 gnulib-comp.m4, 1.13, 1.14 (Sam Steingold) 7. clisp/modules/syscalls config.h.in,1.83,1.84 configure,1.120,1.121 (Sam Steingold) 8. clisp/src/glm4 sys_wait_h.m4,1.1,1.2 (Sam Steingold) 9. clisp/src aclocal.m4, 1.100, 1.101 config.h.in, 1.45, 1.46 configure, 1.281, 1.282 (Sam Steingold) ---------------------------------------------------------------------- Message: 1 Date: Wed, 29 Sep 2010 18:31:11 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls/gllib c-ctype.c, 1.1, NONE c-ctype.h, 1.1, NONE getdate.h, 1.1, NONE getdate.y, 1.1, NONE gettext.h, 1.1, NONE gettime.c, 1.1, NONE timespec.h, 1.1, NONE xalloc.h, 1.1, NONE xmalloc.c, 1.1, NONE To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls/gllib In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv9741/modules/syscalls/gllib Removed Files: c-ctype.c c-ctype.h getdate.h getdate.y gettext.h gettime.c timespec.h xalloc.h xmalloc.c Log Message: do not use gnulib module getdate which should have been called get_date <http://article.gmane.org/gmane.comp.lib.gnulib.bugs/23310> * modules/syscalls/calls.c (xalloc_die): remove (GETDATE): condition on HAVE_GETDATE & HAVE_DECL_GETDATE_ERR * modules/syscalls/configure.in: do not call AC_PROG_YACC; check for getdate and getdate_err * modules/syscalls/gllib/c-ctype.c, modules/syscalls/gllib/c-ctype.h: * modules/syscalls/gllib/getdate.h, modules/syscalls/gllib/getdate.y: * modules/syscalls/gllib/gettext.h, modules/syscalls/gllib/gettime.c: * modules/syscalls/gllib/timespec.h, modules/syscalls/gllib/xalloc.h: * modules/syscalls/gllib/xmalloc.c, modules/syscalls/glm4/bison.m4: * modules/syscalls/glm4/clock_time.m4, modules/syscalls/glm4/error.m4: * modules/syscalls/glm4/getdate.m4, modules/syscalls/glm4/gettime.m4: * modules/syscalls/glm4/inline.m4, modules/syscalls/glm4/timespec.m4: * modules/syscalls/glm4/xalloc.m4: remove --- c-ctype.h DELETED --- --- getdate.y DELETED --- --- gettime.c DELETED --- --- xmalloc.c DELETED --- --- c-ctype.c DELETED --- --- timespec.h DELETED --- --- getdate.h DELETED --- --- xalloc.h DELETED --- --- gettext.h DELETED --- ------------------------------ Message: 2 Date: Wed, 29 Sep 2010 18:31:11 +0000 From: Sam Steingold <sd...@us...> Subject: clisp Makefile.devel,1.285,1.286 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv9741 Modified Files: Makefile.devel Log Message: do not use gnulib module getdate which should have been called get_date <http://article.gmane.org/gmane.comp.lib.gnulib.bugs/23310> * modules/syscalls/calls.c (xalloc_die): remove (GETDATE): condition on HAVE_GETDATE & HAVE_DECL_GETDATE_ERR * modules/syscalls/configure.in: do not call AC_PROG_YACC; check for getdate and getdate_err * modules/syscalls/gllib/c-ctype.c, modules/syscalls/gllib/c-ctype.h: * modules/syscalls/gllib/getdate.h, modules/syscalls/gllib/getdate.y: * modules/syscalls/gllib/gettext.h, modules/syscalls/gllib/gettime.c: * modules/syscalls/gllib/timespec.h, modules/syscalls/gllib/xalloc.h: * modules/syscalls/gllib/xmalloc.c, modules/syscalls/glm4/bison.m4: * modules/syscalls/glm4/clock_time.m4, modules/syscalls/glm4/error.m4: * modules/syscalls/glm4/getdate.m4, modules/syscalls/glm4/gettime.m4: * modules/syscalls/glm4/inline.m4, modules/syscalls/glm4/timespec.m4: * modules/syscalls/glm4/xalloc.m4: remove Index: Makefile.devel =================================================================== RCS file: /cvsroot/clisp/clisp/Makefile.devel,v retrieving revision 1.285 retrieving revision 1.286 diff -u -d -r1.285 -r1.286 --- Makefile.devel 29 Sep 2010 13:39:42 -0000 1.285 +++ Makefile.devel 29 Sep 2010 18:31:09 -0000 1.286 @@ -400,8 +400,7 @@ --macro-prefix=sc_gl --m4-base=modules/syscalls/glm4 \ $(GNULIB_AVOID) --avoid=xalloc-die \ mktime strftime strptime strverscmp uname \ - strerror getdate | tee -a $(GNULIB_IMPORTED_LOG) - $(RM) doc/getdate.texi + strerror | tee -a $(GNULIB_IMPORTED_LOG) $(GNULIB_TOOL) --source-base=modules/regexp/gllib \ --macro-prefix=rx_gl --m4-base=modules/regexp/glm4 \ $(GNULIB_AVOID) regex | tee -a $(GNULIB_IMPORTED_LOG) ------------------------------ Message: 3 Date: Wed, 29 Sep 2010 18:31:11 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls/glm4 bison.m4, 1.1, NONE clock_time.m4, 1.1, NONE error.m4, 1.1, NONE getdate.m4, 1.1, NONE gettime.m4, 1.1, NONE inline.m4, 1.1, NONE timespec.m4, 1.1, NONE xalloc.m4, 1.1, NONE To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls/glm4 In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv9741/modules/syscalls/glm4 Removed Files: bison.m4 clock_time.m4 error.m4 getdate.m4 gettime.m4 inline.m4 timespec.m4 xalloc.m4 Log Message: do not use gnulib module getdate which should have been called get_date <http://article.gmane.org/gmane.comp.lib.gnulib.bugs/23310> * modules/syscalls/calls.c (xalloc_die): remove (GETDATE): condition on HAVE_GETDATE & HAVE_DECL_GETDATE_ERR * modules/syscalls/configure.in: do not call AC_PROG_YACC; check for getdate and getdate_err * modules/syscalls/gllib/c-ctype.c, modules/syscalls/gllib/c-ctype.h: * modules/syscalls/gllib/getdate.h, modules/syscalls/gllib/getdate.y: * modules/syscalls/gllib/gettext.h, modules/syscalls/gllib/gettime.c: * modules/syscalls/gllib/timespec.h, modules/syscalls/gllib/xalloc.h: * modules/syscalls/gllib/xmalloc.c, modules/syscalls/glm4/bison.m4: * modules/syscalls/glm4/clock_time.m4, modules/syscalls/glm4/error.m4: * modules/syscalls/glm4/getdate.m4, modules/syscalls/glm4/gettime.m4: * modules/syscalls/glm4/inline.m4, modules/syscalls/glm4/timespec.m4: * modules/syscalls/glm4/xalloc.m4: remove --- xalloc.m4 DELETED --- --- clock_time.m4 DELETED --- --- getdate.m4 DELETED --- --- inline.m4 DELETED --- --- bison.m4 DELETED --- --- gettime.m4 DELETED --- --- error.m4 DELETED --- --- timespec.m4 DELETED --- ------------------------------ Message: 4 Date: Wed, 29 Sep 2010 18:31:12 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src ChangeLog,1.7541,1.7542 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv9741/src Modified Files: ChangeLog Log Message: do not use gnulib module getdate which should have been called get_date <http://article.gmane.org/gmane.comp.lib.gnulib.bugs/23310> * modules/syscalls/calls.c (xalloc_die): remove (GETDATE): condition on HAVE_GETDATE & HAVE_DECL_GETDATE_ERR * modules/syscalls/configure.in: do not call AC_PROG_YACC; check for getdate and getdate_err * modules/syscalls/gllib/c-ctype.c, modules/syscalls/gllib/c-ctype.h: * modules/syscalls/gllib/getdate.h, modules/syscalls/gllib/getdate.y: * modules/syscalls/gllib/gettext.h, modules/syscalls/gllib/gettime.c: * modules/syscalls/gllib/timespec.h, modules/syscalls/gllib/xalloc.h: * modules/syscalls/gllib/xmalloc.c, modules/syscalls/glm4/bison.m4: * modules/syscalls/glm4/clock_time.m4, modules/syscalls/glm4/error.m4: * modules/syscalls/glm4/getdate.m4, modules/syscalls/glm4/gettime.m4: * modules/syscalls/glm4/inline.m4, modules/syscalls/glm4/timespec.m4: * modules/syscalls/glm4/xalloc.m4: remove Index: ChangeLog =================================================================== RCS file: /cvsroot/clisp/clisp/src/ChangeLog,v retrieving revision 1.7541 retrieving revision 1.7542 diff -u -d -r1.7541 -r1.7542 --- ChangeLog 29 Sep 2010 18:18:24 -0000 1.7541 +++ ChangeLog 29 Sep 2010 18:31:09 -0000 1.7542 @@ -1,5 +1,23 @@ 2010-09-29 Sam Steingold <sd...@gn...> + do not use gnulib module getdate which should have been called get_date + <http://article.gmane.org/gmane.comp.lib.gnulib.bugs/23310> + * modules/syscalls/calls.c (xalloc_die): remove + (GETDATE): condition on HAVE_GETDATE & HAVE_DECL_GETDATE_ERR + * modules/syscalls/configure.in: do not call AC_PROG_YACC; + check for getdate and getdate_err + * modules/syscalls/gllib/c-ctype.c, modules/syscalls/gllib/c-ctype.h: + * modules/syscalls/gllib/getdate.h, modules/syscalls/gllib/getdate.y: + * modules/syscalls/gllib/gettext.h, modules/syscalls/gllib/gettime.c: + * modules/syscalls/gllib/timespec.h, modules/syscalls/gllib/xalloc.h: + * modules/syscalls/gllib/xmalloc.c, modules/syscalls/glm4/bison.m4: + * modules/syscalls/glm4/clock_time.m4, modules/syscalls/glm4/error.m4: + * modules/syscalls/glm4/getdate.m4, modules/syscalls/glm4/gettime.m4: + * modules/syscalls/glm4/inline.m4, modules/syscalls/glm4/timespec.m4: + * modules/syscalls/glm4/xalloc.m4: remove + +2010-09-29 Sam Steingold <sd...@gn...> + * configure.in, modules/syscalls/configure.in: do not call macros which are already called by gl_INIT ------------------------------ Message: 5 Date: Wed, 29 Sep 2010 18:31:11 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls calls.c,1.318,1.319 configure.in,1.95,1.96 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv9741/modules/syscalls Modified Files: calls.c configure.in Log Message: do not use gnulib module getdate which should have been called get_date <http://article.gmane.org/gmane.comp.lib.gnulib.bugs/23310> * modules/syscalls/calls.c (xalloc_die): remove (GETDATE): condition on HAVE_GETDATE & HAVE_DECL_GETDATE_ERR * modules/syscalls/configure.in: do not call AC_PROG_YACC; check for getdate and getdate_err * modules/syscalls/gllib/c-ctype.c, modules/syscalls/gllib/c-ctype.h: * modules/syscalls/gllib/getdate.h, modules/syscalls/gllib/getdate.y: * modules/syscalls/gllib/gettext.h, modules/syscalls/gllib/gettime.c: * modules/syscalls/gllib/timespec.h, modules/syscalls/gllib/xalloc.h: * modules/syscalls/gllib/xmalloc.c, modules/syscalls/glm4/bison.m4: * modules/syscalls/glm4/clock_time.m4, modules/syscalls/glm4/error.m4: * modules/syscalls/glm4/getdate.m4, modules/syscalls/glm4/gettime.m4: * modules/syscalls/glm4/inline.m4, modules/syscalls/glm4/timespec.m4: * modules/syscalls/glm4/xalloc.m4: remove Index: calls.c =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/calls.c,v retrieving revision 1.318 retrieving revision 1.319 diff -u -d -r1.318 -r1.319 --- calls.c 29 Sep 2010 15:27:18 -0000 1.318 +++ calls.c 29 Sep 2010 18:31:09 -0000 1.319 @@ -619,11 +619,7 @@ } else error_string_integer(STACK_1); } -nonreturning_function(extern, xalloc_die, (void)) { - pushSTACK(TheSubr(subr_self)->name); - error(storage_condition,GETTEXT("~S: malloc() failed")); -} - +#if defined(HAVE_GETDATE) && defined(HAVE_DECL_GETDATE_ERR) DEFUN(POSIX:GETDATE, timespec &optional timezone) { /* http://www.opengroup.org/onlinepubs/009695399/functions/getdate.html */ struct tm *tm; @@ -646,6 +642,7 @@ tm_to_lisp(tm,STACK_0); skipSTACK(2); } +#endif /* HAVE_GETDATE & HAVE_DECL_GETDATE_ERR */ /* ========================== string comparison ========================== */ /* call strverscmp() on STACK_0 & STACK_1 and remove them from STACK */ Index: configure.in =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/configure.in,v retrieving revision 1.95 retrieving revision 1.96 diff -u -d -r1.95 -r1.96 --- configure.in 29 Sep 2010 18:18:24 -0000 1.95 +++ configure.in 29 Sep 2010 18:31:09 -0000 1.96 @@ -12,7 +12,6 @@ CL_MODULE_COMMON_CHECKS() AM_INIT_AUTOMAKE([no-define]) AC_PROG_RANLIB -AC_PROG_YACC sc_gl_EARLY sc_gl_INIT @@ -52,9 +51,10 @@ ftruncate truncate getusershell endusershell dnl erf erfc lgamma tgamma fstatvfs statvfs getpriority setpriority dnl crypt encrypt setkey GlobalMemoryStatusEx dnl -gethostid sethostid getdomainname setdomainname nftw) +gethostid sethostid getdomainname setdomainname nftw getdate) AC_FUNC_CHOWN AC_CHECK_DECLS([signgam],,,[#include <math.h>]) +AC_CHECK_DECLS([getdate_err],,,[#include <time.h>]) CL_STAT if test "$ac_cv_header_sys_statvfs_h" = "yes"; then AC_MSG_CHECKING([whether f_fsid is scalar]) ------------------------------ Message: 6 Date: Wed, 29 Sep 2010 18:38:55 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls/glm4 gnulib-cache.m4, 1.12, 1.13 gnulib-comp.m4, 1.13, 1.14 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls/glm4 In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv11007/modules/syscalls/glm4 Modified Files: gnulib-cache.m4 gnulib-comp.m4 Log Message: regenerate after removing gnulib getdate Index: gnulib-comp.m4 =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/glm4/gnulib-comp.m4,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- gnulib-comp.m4 29 Sep 2010 13:24:14 -0000 1.13 +++ gnulib-comp.m4 29 Sep 2010 18:38:53 -0000 1.14 @@ -29,12 +29,7 @@ # Code from module alignof: # Code from module arg-nonnull: # Code from module c++defs: - # Code from module c-ctype: - # Code from module clock-time: - # Code from module getdate: # Code from module gethostname: - # Code from module gettime: - # Code from module inline: # Code from module intprops: # Code from module mbrlen: # Code from module mktime: @@ -50,11 +45,9 @@ # Code from module sys_utsname: # Code from module time: # Code from module time_r: - # Code from module timespec: # Code from module uname: # Code from module unistd: # Code from module warn-on-use: - # Code from module xalloc: ]) # This macro should be invoked from ./configure.ac, in the section @@ -76,18 +69,9 @@ # Code from module alignof: # Code from module arg-nonnull: # Code from module c++defs: - # Code from module c-ctype: - # Code from module clock-time: - gl_CLOCK_TIME - # Code from module getdate: - gl_GETDATE # Code from module gethostname: gl_FUNC_GETHOSTNAME gl_UNISTD_MODULE_INDICATOR([gethostname]) - # Code from module gettime: - gl_GETTIME - # Code from module inline: - gl_INLINE # Code from module intprops: # Code from module mbrlen: gl_FUNC_MBRLEN @@ -125,16 +109,13 @@ # Code from module time_r: gl_TIME_R gl_TIME_MODULE_INDICATOR([time_r]) - # Code from module timespec: - gl_TIMESPEC # Code from module uname: gl_FUNC_UNAME gl_SYS_UTSNAME_MODULE_INDICATOR([uname]) # Code from module unistd: gl_UNISTD_H # Code from module warn-on-use: - # Code from module xalloc: - gl_XALLOC + # Code from module dummy: # End of code from modules m4_ifval(sc_gl_LIBSOURCES_LIST, [ m4_syscmd([test ! -d ]m4_defn([sc_gl_LIBSOURCES_DIR])[ || @@ -278,14 +259,9 @@ build-aux/arg-nonnull.h build-aux/c++defs.h build-aux/warn-on-use.h - doc/getdate.texi lib/alignof.h - lib/c-ctype.c - lib/c-ctype.h - lib/getdate.h - lib/getdate.y + lib/dummy.c lib/gethostname.c - lib/gettime.c lib/intprops.h lib/mbrlen.c lib/mktime-internal.h @@ -303,20 +279,12 @@ lib/sys_utsname.in.h lib/time.in.h lib/time_r.c - lib/timespec.h lib/uname.c lib/unistd.in.h lib/w32sock.h - lib/xalloc.h - lib/xmalloc.c m4/00gnulib.m4 - m4/bison.m4 - m4/clock_time.m4 - m4/getdate.m4 m4/gethostname.m4 - m4/gettime.m4 m4/gnulib-common.m4 - m4/inline.m4 m4/mbrlen.m4 m4/mbstate_t.m4 m4/mktime.m4 @@ -333,11 +301,9 @@ m4/sys_utsname_h.m4 m4/time_h.m4 m4/time_r.m4 - m4/timespec.m4 m4/tm_gmtoff.m4 m4/uname.m4 m4/unistd_h.m4 m4/warn-on-use.m4 m4/wchar_t.m4 - m4/xalloc.m4 ]) Index: gnulib-cache.m4 =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/glm4/gnulib-cache.m4,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- gnulib-cache.m4 29 Sep 2010 13:24:14 -0000 1.12 +++ gnulib-cache.m4 29 Sep 2010 18:38:53 -0000 1.13 @@ -15,12 +15,11 @@ # Specification in the form of a command-line invocation: -# gnulib-tool --import --dir=. --lib=libgnu --source-base=modules/syscalls/gllib --m4-base=modules/syscalls/glm4 --doc-base=doc --tests-base=tests --aux-dir=src/build-aux --avoid=no-c++ --avoid=stdint --avoid=stdbool --avoid=havelib --avoid=gettext --avoid=localcharset --avoid=uniwidth/width --avoid=streq --avoid=uniname/uniname --avoid=unitypes --avoid=link-follow --avoid=host-cpu-c-abi --avoid=socklen --avoid=sockets --avoid=close-hook --avoid=setenv --avoid=unsetenv --avoid=errno --avoid=nocrash --avoid=libsigsegv --avoid=gnu-make --avoid=gettimeofday --avoid=getpagesize --avoid=sys_time --avoid=sys_wait --avoid=alloca-opt --avoid=alloca --avoid=extensions --avoid=include_next --avoid=verify --avoid=string --avoid=mbsinit --avoid=wchar --avoid=wctype --avoid=mbrtowc --avoid=mbsrtowcs --avoid=memchr --avoid=nl_langinfo --avoid=xalloc-die --no-libtool --macro-prefix=sc_gl --no-vc-files getdate mktime strerror strftime strptime strverscmp uname +# gnulib-tool --import --dir=. --lib=libgnu --source-base=modules/syscalls/gllib --m4-base=modules/syscalls/glm4 --doc-base=doc --tests-base=tests --aux-dir=src/build-aux --avoid=no-c++ --avoid=stdint --avoid=stdbool --avoid=havelib --avoid=gettext --avoid=localcharset --avoid=uniwidth/width --avoid=streq --avoid=uniname/uniname --avoid=unitypes --avoid=link-follow --avoid=host-cpu-c-abi --avoid=socklen --avoid=sockets --avoid=close-hook --avoid=setenv --avoid=unsetenv --avoid=errno --avoid=nocrash --avoid=libsigsegv --avoid=gnu-make --avoid=gettimeofday --avoid=getpagesize --avoid=sys_time --avoid=sys_wait --avoid=alloca-opt --avoid=alloca --avoid=extensions --avoid=include_next --avoid=verify --avoid=string --avoid=mbsinit --avoid=wchar --avoid=wctype --avoid=mbrtowc --avoid=mbsrtowcs --avoid=memchr --avoid=nl_langinfo --avoid=xalloc-die --no-libtool --macro-prefix=sc_gl --no-vc-files mktime strerror strftime strptime strverscmp uname # Specification in the form of a few gnulib-tool.m4 macro invocations: gl_LOCAL_DIR([]) gl_MODULES([ - getdate mktime strerror strftime ------------------------------ Message: 7 Date: Wed, 29 Sep 2010 18:38:55 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls config.h.in,1.83,1.84 configure,1.120,1.121 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv11007/modules/syscalls Modified Files: config.h.in configure Log Message: regenerate after removing gnulib getdate Index: config.h.in =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/config.h.in,v retrieving revision 1.83 retrieving revision 1.84 diff -u -d -r1.83 -r1.84 --- config.h.in 29 Sep 2010 13:40:09 -0000 1.83 +++ config.h.in 29 Sep 2010 18:38:53 -0000 1.84 @@ -40,18 +40,9 @@ /* Define to 1 if you have the `chroot' function. */ #undef HAVE_CHROOT -/* Define to 1 if you have the `clock_gettime' function. */ -#undef HAVE_CLOCK_GETTIME - -/* Define to 1 if you have the `clock_settime' function. */ -#undef HAVE_CLOCK_SETTIME - /* Define to 1 if you have the `closelog' function. */ #undef HAVE_CLOSELOG -/* Define if you have compound literals. */ -#undef HAVE_COMPOUND_LITERALS - /* Define to 1 if you have the `confstr' function. */ #undef HAVE_CONFSTR @@ -64,6 +55,10 @@ /* Define to 1 if you have the <crypt.h> header file. */ #undef HAVE_CRYPT_H +/* Define to 1 if you have the declaration of `getdate_err', and to 0 if you + don't. */ +#undef HAVE_DECL_GETDATE_ERR + /* Define to 1 if you have the declaration of `signgam', and to 0 if you don't. */ #undef HAVE_DECL_SIGNGAM @@ -137,6 +132,9 @@ /* Define to 1 if you have the <ftw.h> header file. */ #undef HAVE_FTW_H +/* Define to 1 if you have the `getdate' function. */ +#undef HAVE_GETDATE + /* Define to 1 if you have the `getdomainname' function. */ #undef HAVE_GETDOMAINNAME @@ -216,9 +214,6 @@ /* Define to 1 if you have the `getsid' function. */ #undef HAVE_GETSID -/* Define to 1 if you have the `gettimeofday' function. */ -#undef HAVE_GETTIMEOFDAY - /* Define to 1 if you have the `getuid' function. */ #undef HAVE_GETUID @@ -240,11 +235,6 @@ /* Define to 1 if you have the <grp.h> header file. */ #undef HAVE_GRP_H -/* Define to 1 if the compiler supports one of the keywords 'inline', - '__inline__', '__inline' and effectively inlines functions marked as such. - */ -#undef HAVE_INLINE - /* Define to 1 if you have the <inttypes.h> header file. */ #undef HAVE_INTTYPES_H @@ -296,9 +286,6 @@ /* Define to 1 if you have the `mkstemp' function. */ #undef HAVE_MKSTEMP -/* Define to 1 if you have the `nanotime' function. */ -#undef HAVE_NANOTIME - /* Define to 1 if you have the <netdb.h> header file. */ #undef HAVE_NETDB_H @@ -579,9 +566,6 @@ /* Define to 1 if you have the `statvfs' function. */ #undef HAVE_STATVFS -/* Define to 1 if stdbool.h conforms to C99. */ -#undef HAVE_STDBOOL_H - /* Define to 1 if you have the <stddef.h> header file. */ #undef HAVE_STDDEF_H @@ -740,9 +724,6 @@ /* Define to 1 if you have the <ws2tcpip.h> header file. */ #undef HAVE_WS2TCPIP_H -/* Define to 1 if the system has the type `_Bool'. */ -#undef HAVE__BOOL - /* Define HOST_NAME_MAX when <limits.h> does not define it. */ #undef HOST_NAME_MAX @@ -819,9 +800,6 @@ /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS -/* Define to 1 if all 'time_t' values fit in a 'long int'. */ -#undef TIME_T_FITS_IN_LONG_INT - /* Define to 1 if your <sys/time.h> declares `struct tm'. */ #undef TM_IN_SYS_TIME Index: configure =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/configure,v retrieving revision 1.120 retrieving revision 1.121 diff -u -d -r1.120 -r1.121 --- configure 29 Sep 2010 13:56:36 -0000 1.120 +++ configure 29 Sep 2010 18:38:53 -0000 1.121 @@ -881,13 +881,8 @@ GNULIB_DUP2 GNULIB_CLOSE GNULIB_CHOWN -HAVE__BOOL -STDBOOL_H -LIB_CLOCK_GETTIME GL_COND_LIBTOOL_FALSE GL_COND_LIBTOOL_TRUE -YFLAGS -YACC RANLIB [...1690 lines suppressed...] -$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h - - - -ac_fn_c_check_decl "$LINENO" "signgam" "ac_cv_have_decl_signgam" "#include <math.h> +ac_fn_c_check_decl "$LINENO" "getdate_err" "ac_cv_have_decl_getdate_err" "#include <time.h> " -if test "x$ac_cv_have_decl_signgam" = x""yes; then : +if test "x$ac_cv_have_decl_getdate_err" = x""yes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_SIGNGAM $ac_have_decl +#define HAVE_DECL_GETDATE_ERR $ac_have_decl _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5 ------------------------------ Message: 8 Date: Wed, 29 Sep 2010 18:38:55 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src/glm4 sys_wait_h.m4,1.1,1.2 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src/glm4 In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv11007/src/glm4 Modified Files: sys_wait_h.m4 Log Message: regenerate after removing gnulib getdate Index: sys_wait_h.m4 =================================================================== RCS file: /cvsroot/clisp/clisp/src/glm4/sys_wait_h.m4,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- sys_wait_h.m4 27 Sep 2010 21:39:11 -0000 1.1 +++ sys_wait_h.m4 29 Sep 2010 18:38:53 -0000 1.2 @@ -1,4 +1,4 @@ -# sys_wait_h.m4 serial 4 +# sys_wait_h.m4 serial 5 dnl Copyright (C) 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,6 +10,11 @@ dnl <sys/wait.h> is always overridden, because of GNULIB_POSIXCHECK. gl_CHECK_NEXT_HEADERS([sys/wait.h]) + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use. + gl_WARN_ON_USE_PREPARE([[#include <sys/wait.h>]], + [waitpid]) ]) AC_DEFUN([gl_SYS_WAIT_MODULE_INDICATOR], @@ -17,9 +22,12 @@ dnl Use AC_REQUIRE here, so that the default settings are expanded once only. AC_REQUIRE([gl_SYS_WAIT_H_DEFAULTS]) gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) AC_DEFUN([gl_SYS_WAIT_H_DEFAULTS], [ + GNULIB_WAITPID=0; AC_SUBST([GNULIB_WAITPID]) dnl Assume proper GNU behavior unless another module says otherwise. ]) ------------------------------ Message: 9 Date: Wed, 29 Sep 2010 18:38:55 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src aclocal.m4, 1.100, 1.101 config.h.in, 1.45, 1.46 configure, 1.281, 1.282 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv11007/src Modified Files: aclocal.m4 config.h.in configure Log Message: regenerate after removing gnulib getdate Index: aclocal.m4 =================================================================== RCS file: /cvsroot/clisp/clisp/src/aclocal.m4,v retrieving revision 1.100 retrieving revision 1.101 diff -u -d -r1.100 -r1.101 --- aclocal.m4 29 Sep 2010 13:40:09 -0000 1.100 +++ aclocal.m4 29 Sep 2010 18:38:53 -0000 1.101 @@ -1312,117 +1312,6 @@ m4/mbstate_t.m4 ]) -# serial 5 - -# Copyright (C) 2002, 2005, 2009, 2010 Free Software Foundation, Inc. -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -AC_DEFUN([gl_BISON], -[ - # getdate.y works with bison only. - : ${YACC='bison -y'} -dnl -dnl Declaring YACC & YFLAGS precious will not be necessary after GNULIB -dnl requires an Autoconf greater than 2.59c, but it will probably still be -dnl useful to override the description of YACC in the --help output, re -dnl getdate.y assuming `bison -y'. - AC_ARG_VAR([YACC], -[The `Yet Another C Compiler' implementation to use. Defaults to `bison -y'. -Values other than `bison -y' will most likely break on most systems.])dnl - AC_ARG_VAR([YFLAGS], -[YFLAGS contains the list arguments that will be passed by default to Bison. -This script will default YFLAGS to the empty string to avoid a default value of -`-d' given by some make applications.])dnl -]) - -# clock_time.m4 serial 10 -dnl Copyright (C) 2002-2006, 2009-2010 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -# Check for clock_gettime and clock_settime, and set LIB_CLOCK_GETTIME. -# For a program named, say foo, you should add a line like the following -# in the corresponding Makefile.am file: -# foo_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) - -AC_DEFUN([gl_CLOCK_TIME], -[ - dnl Persuade glibc and Solaris <time.h> to declare these functions. - AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) - - # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function. - # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. - - # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all* - # programs in the package would end up linked with that potentially-shared - # library, inducing unnecessary run-time overhead. - LIB_CLOCK_GETTIME= - AC_SUBST([LIB_CLOCK_GETTIME]) - gl_saved_libs=$LIBS - AC_SEARCH_LIBS([clock_gettime], [rt posix4], - [test "$ac_cv_search_clock_gettime" = "none required" || - LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime]) - AC_CHECK_FUNCS([clock_gettime clock_settime]) - LIBS=$gl_saved_libs -]) - -# getdate.m4 serial 16 -dnl Copyright (C) 2002-2006, 2008-2010 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl Define HAVE_COMPOUND_LITERALS if the C compiler supports compound literals -dnl as in ISO C99. -dnl Note that compound literals such as (struct s) { 3, 4 } can be used for -dnl initialization of stack-allocated variables, but are not constant -dnl expressions and therefore cannot be used as initializer for global or -dnl static variables (even though gcc supports this in pre-C99 mode). -AC_DEFUN([gl_C_COMPOUND_LITERALS], -[ - AC_CACHE_CHECK([for compound literals], [gl_cv_compound_literals], - [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[struct s { int i, j; };]], - [[struct s t = (struct s) { 3, 4 }; - if (t.i != 0) return 0;]])], - gl_cv_compound_literals=yes, - gl_cv_compound_literals=no)]) - if test $gl_cv_compound_literals = yes; then - AC_DEFINE([HAVE_COMPOUND_LITERALS], [1], - [Define if you have compound literals.]) - fi -]) - -AC_DEFUN([gl_GETDATE], -[ - dnl Prerequisites of lib/getdate.h. - AC_REQUIRE([AM_STDBOOL_H]) - AC_REQUIRE([gl_TIMESPEC]) - - dnl Prerequisites of lib/getdate.y. - AC_REQUIRE([gl_BISON]) - AC_REQUIRE([gl_C_COMPOUND_LITERALS]) - AC_STRUCT_TIMEZONE - AC_REQUIRE([gl_CLOCK_TIME]) - AC_REQUIRE([gl_TM_GMTOFF]) - AC_COMPILE_IFELSE( - [AC_LANG_SOURCE([[ -#include <time.h> /* for time_t */ -#include <limits.h> /* for CHAR_BIT, LONG_MIN, LONG_MAX */ -#define TYPE_MINIMUM(t) \ - ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) -#define TYPE_MAXIMUM(t) \ - ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) -typedef int verify_min[2 * (LONG_MIN <= TYPE_MINIMUM (time_t)) - 1]; -typedef int verify_max[2 * (TYPE_MAXIMUM (time_t) <= LONG_MAX) - 1]; - ]])], - [AC_DEFINE([TIME_T_FITS_IN_LONG_INT], [1], - [Define to 1 if all 'time_t' values fit in a 'long int'.]) - ]) -]) - # gethostname.m4 serial 9 dnl Copyright (C) 2002, 2008, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation @@ -1525,22 +1414,6 @@ fi ]) -# gettime.m4 serial 7 -dnl Copyright (C) 2002, 2004-2006, 2009-2010 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -AC_DEFUN([gl_GETTIME], -[ - AC_LIBOBJ([gettime]) - - dnl Prerequisites of lib/gettime.c. - AC_REQUIRE([gl_CLOCK_TIME]) - AC_REQUIRE([gl_TIMESPEC]) - AC_CHECK_FUNCS_ONCE([gettimeofday nanotime]) -]) - # DO NOT EDIT! GENERATED AUTOMATICALLY! # Copyright (C) 2002-2010 Free Software Foundation, Inc. # @@ -1572,12 +1445,7 @@ # Code from module alignof: # Code from module arg-nonnull: # Code from module c++defs: - # Code from module c-ctype: - # Code from module clock-time: - # Code from module getdate: # Code from module gethostname: - # Code from module gettime: - # Code from module inline: # Code from module intprops: # Code from module mbrlen: # Code from module mktime: @@ -1593,11 +1461,9 @@ # Code from module sys_utsname: # Code from module time: # Code from module time_r: - # Code from module timespec: # Code from module uname: # Code from module unistd: # Code from module warn-on-use: - # Code from module xalloc: ]) # This macro should be invoked from ./configure.ac, in the section @@ -1619,18 +1485,9 @@ # Code from module alignof: # Code from module arg-nonnull: # Code from module c++defs: - # Code from module c-ctype: - # Code from module clock-time: - gl_CLOCK_TIME - # Code from module getdate: - gl_GETDATE # Code from module gethostname: gl_FUNC_GETHOSTNAME gl_UNISTD_MODULE_INDICATOR([gethostname]) - # Code from module gettime: - gl_GETTIME - # Code from module inline: - gl_INLINE # Code from module intprops: # Code from module mbrlen: gl_FUNC_MBRLEN @@ -1668,16 +1525,13 @@ # Code from module time_r: gl_TIME_R gl_TIME_MODULE_INDICATOR([time_r]) - # Code from module timespec: - gl_TIMESPEC # Code from module uname: gl_FUNC_UNAME gl_SYS_UTSNAME_MODULE_INDICATOR([uname]) # Code from module unistd: gl_UNISTD_H # Code from module warn-on-use: - # Code from module xalloc: - gl_XALLOC + # Code from module dummy: # End of code from modules m4_ifval(sc_gl_LIBSOURCES_LIST, [ m4_syscmd([test ! -d ]m4_defn([sc_gl_LIBSOURCES_DIR])[ || @@ -1821,14 +1675,9 @@ build-aux/arg-nonnull.h build-aux/c++defs.h build-aux/warn-on-use.h - doc/getdate.texi lib/alignof.h - lib/c-ctype.c - lib/c-ctype.h - lib/getdate.h - lib/getdate.y + lib/dummy.c lib/gethostname.c - lib/gettime.c lib/intprops.h lib/mbrlen.c lib/mktime-internal.h @@ -1846,20 +1695,12 @@ lib/sys_utsname.in.h lib/time.in.h lib/time_r.c - lib/timespec.h lib/uname.c lib/unistd.in.h lib/w32sock.h - lib/xalloc.h - lib/xmalloc.c m4/00gnulib.m4 - m4/bison.m4 - m4/clock_time.m4 - m4/getdate.m4 m4/gethostname.m4 - m4/gettime.m4 m4/gnulib-common.m4 - m4/inline.m4 m4/mbrlen.m4 m4/mbstate_t.m4 m4/mktime.m4 @@ -1876,54 +1717,11 @@ m4/sys_utsname_h.m4 m4/time_h.m4 m4/time_r.m4 - m4/timespec.m4 m4/tm_gmtoff.m4 m4/uname.m4 m4/unistd_h.m4 m4/warn-on-use.m4 m4/wchar_t.m4 - m4/xalloc.m4 -]) - -# inline.m4 serial 4 -dnl Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl Test for the 'inline' keyword or equivalent. -dnl Define 'inline' to a supported equivalent, or to nothing if not supported, -dnl like AC_C_INLINE does. Also, define HAVE_INLINE if 'inline' or an -dnl equivalent is effectively supported, i.e. if the compiler is likely to -dnl drop unused 'static inline' functions. -AC_DEFUN([gl_INLINE], -[ - AC_REQUIRE([AC_C_INLINE]) - AC_CACHE_CHECK([whether the compiler generally respects inline], - [gl_cv_c_inline_effective], - [if test $ac_cv_c_inline = no; then - gl_cv_c_inline_effective=no - else - dnl GCC defines __NO_INLINE__ if not optimizing or if -fno-inline is - dnl specified. - dnl Use AC_COMPILE_IFELSE here, not AC_EGREP_CPP, because the result - dnl depends on optimization flags, which can be in CFLAGS. - dnl (AC_EGREP_CPP looks only at the CPPFLAGS.) - AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM([[]], - [[#ifdef __NO_INLINE__ - #error "inline is not effective" - #endif]])], - [gl_cv_c_inline_effective=yes], - [gl_cv_c_inline_effective=no]) - fi - ]) - if test $gl_cv_c_inline_effective = yes; then - AC_DEFINE([HAVE_INLINE], [1], - [Define to 1 if the compiler supports one of the keywords - 'inline', '__inline__', '__inline' and effectively inlines - functions marked as such.]) - fi ]) # mbrlen.m4 serial 3 @@ -2809,22 +2607,6 @@ : ]) -#serial 14 - -# Copyright (C) 2000-2001, 2003-2007, 2009-2010 Free Software Foundation, Inc. - -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -dnl From Jim Meyering - -AC_DEFUN([gl_TIMESPEC], -[ - dnl Prerequisites of lib/timespec.h. - AC_REQUIRE([AC_C_INLINE]) -]) - # tm_gmtoff.m4 serial 3 dnl Copyright (C) 2002, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation @@ -2861,32 +2643,6 @@ : ]) -# xalloc.m4 serial 16 -dnl Copyright (C) 2002, 2003, 2004, 2005, 2006, 2009, 2010 Free Software -dnl Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -AC_DEFUN([gl_XALLOC], -[ - AC_LIBOBJ([xmalloc]) - - gl_PREREQ_XALLOC - gl_PREREQ_XMALLOC -]) - -# Prerequisites of lib/xalloc.h. -AC_DEFUN([gl_PREREQ_XALLOC], [ - AC_REQUIRE([gl_INLINE]) - : -]) - -# Prerequisites of lib/xmalloc.c. -AC_DEFUN([gl_PREREQ_XMALLOC], [ - : -]) - # btowc.m4 serial 7 dnl Copyright (C) 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation @@ -11113,7 +10869,7 @@ REPLACE_GETTIMEOFDAY=0; AC_SUBST([REPLACE_GETTIMEOFDAY]) ]) -# sys_wait_h.m4 serial 4 +# sys_wait_h.m4 serial 5 dnl Copyright (C) 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -11125,6 +10881,11 @@ dnl <sys/wait.h> is always overridden, because of GNULIB_POSIXCHECK. gl_CHECK_NEXT_HEADERS([sys/wait.h]) + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use. + gl_WARN_ON_USE_PREPARE([[#include <sys/wait.h>]], + [waitpid]) ]) AC_DEFUN([gl_SYS_WAIT_MODULE_INDICATOR], @@ -11132,10 +10893,13 @@ dnl Use AC_REQUIRE here, so that the default settings are expanded once only. AC_REQUIRE([gl_SYS_WAIT_H_DEFAULTS]) gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) AC_DEFUN([gl_SYS_WAIT_H_DEFAULTS], [ + GNULIB_WAITPID=0; AC_SUBST([GNULIB_WAITPID]) dnl Assume proper GNU behavior unless another module says otherwise. ]) Index: config.h.in =================================================================== RCS file: /cvsroot/clisp/clisp/src/config.h.in,v retrieving revision 1.45 retrieving revision 1.46 diff -u -d -r1.45 -r1.46 --- config.h.in 27 Sep 2010 22:11:07 -0000 1.45 +++ config.h.in 29 Sep 2010 18:38:53 -0000 1.46 @@ -60,66 +60,6 @@ #endif -/* CPU and C ABI indicator */ -#ifndef __i386__ -#undef __i386__ -#endif -#ifndef __x86_64__ -#undef __x86_64__ -#endif -#ifndef __alpha__ -#undef __alpha__ -#endif -#ifndef __arm__ -#undef __arm__ -#endif -#ifndef __armel__ -#undef __armel__ -#endif -#ifndef __hppa__ -#undef __hppa__ -#endif -#ifndef __hppa64__ -#undef __hppa64__ -#endif -#ifndef __ia64__ -#undef __ia64__ -#endif -#ifndef __m68k__ -#undef __m68k__ -#endif -#ifndef __mips__ -#undef __mips__ -#endif -#ifndef __mipsn32__ -#undef __mipsn32__ -#endif -#ifndef __mips64__ -#undef __mips64__ -#endif -#ifndef __powerpc__ -#undef __powerpc__ -#endif -#ifndef __powerpc64__ -#undef __powerpc64__ -#endif -#ifndef __s390__ -#undef __s390__ -#endif -#ifndef __s390x__ -#undef __s390x__ -#endif -#ifndef __sh__ -#undef __sh__ -#endif -#ifndef __sparc__ -#undef __sparc__ -#endif -#ifndef __sparc64__ -#undef __sparc64__ -#endif - - /* Define if the compiler is building for multiple architectures of Apple platforms at once. */ #undef AA_APPLE_UNIVERSAL_BUILD @@ -817,6 +757,9 @@ /* Define to 1 if usleep is declared even after undefining macros. */ #undef HAVE_RAW_DECL_USLEEP +/* Define to 1 if waitpid is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_WAITPID + /* Define to 1 if wcrtomb is declared even after undefining macros. */ #undef HAVE_RAW_DECL_WCRTOMB Index: configure =================================================================== RCS file: /cvsroot/clisp/clisp/src/configure,v retrieving revision 1.281 retrieving revision 1.282 diff -u -d -r1.281 -r1.282 --- configure 28 Sep 2010 19:41:02 -0000 1.281 +++ configure 29 Sep 2010 18:38:53 -0000 1.282 @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Id: configure.in,v 1.190 2010/09/28 19:26:44 sds Exp . +# From configure.in Id: configure.in,v 1.191 2010/09/29 18:18:24 sds Exp . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.65 for GNU CLISP 2.49+ (2010-07-17). # @@ -674,6 +674,7 @@ LIBUNISTRING_UNINAME_H NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H NEXT_SYS_WAIT_H +GNULIB_WAITPID [...2200 lines suppressed...] - - - - -for ac_header in sys/resource.h sys/times.h + for ac_header in sys/resource.h sys/times.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" @@ -33814,10 +32588,6 @@ as_fn_error "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - as_fn_error "conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 ------------------------------ ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ------------------------------ _______________________________________________ clisp-cvs mailing list cli...@li... https://lists.sourceforge.net/lists/listinfo/clisp-cvs End of clisp-cvs Digest, Vol 53, Issue 36 ***************************************** |
|
From: <cli...@li...> - 2010-09-29 18:18:35
|
Send clisp-cvs mailing list submissions to cli...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/clisp-cvs or, via email, send a message with subject or body 'help' to cli...@li... You can reach the person managing the list at cli...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of clisp-cvs digest..." CLISP CVS commits for today Today's Topics: 1. clisp/modules/syscalls calls.c,1.316,1.317 (Sam Steingold) 2. clisp/src ChangeLog,1.7535,1.7536 (Sam Steingold) 3. clisp/modules/syscalls configure.in,1.93,1.94 (Sam Steingold) 4. clisp/src ChangeLog,1.7536,1.7537 (Sam Steingold) 5. clisp/modules/syscalls posix.lisp,1.98,1.99 (Sam Steingold) 6. clisp/modules/syscalls configure,1.119,1.120 (Sam Steingold) 7. clisp/src ChangeLog,1.7537,1.7538 makemake.in,1.949,1.950 (Sam Steingold) 8. clisp/modules/syscalls datemsk, NONE, 1.1 Makefile.in, 1.27, 1.28 calls.c, 1.317, 1.318 (Sam Steingold) 9. clisp/src ChangeLog,1.7538,1.7539 (Sam Steingold) 10. clisp/src ChangeLog,1.7539,1.7540 (Sam Steingold) 11. clisp/src ChangeLog,1.7540,1.7541 configure.in,1.190,1.191 (Sam Steingold) 12. clisp/modules/syscalls configure.in,1.94,1.95 (Sam Steingold) ---------------------------------------------------------------------- Message: 1 Date: Wed, 29 Sep 2010 13:45:24 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls calls.c,1.316,1.317 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv10256/modules/syscalls Modified Files: calls.c Log Message: fix tm_to_lisp Index: calls.c =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/calls.c,v retrieving revision 1.316 retrieving revision 1.317 diff -u -d -r1.316 -r1.317 --- calls.c 29 Sep 2010 13:24:14 -0000 1.316 +++ calls.c 29 Sep 2010 13:45:22 -0000 1.317 @@ -549,12 +549,12 @@ /* ========================== time conversion ========================== */ /* call ENCODE-UNIVERSAL-TIME on struct tm and timezone */ static Values tm_to_lisp (struct tm *tm, object timezone) { - pushSTACK(fixnum(tm.tm_sec)); - pushSTACK(fixnum(tm.tm_min)); - pushSTACK(fixnum(tm.tm_hour)); - pushSTACK(fixnum(tm.tm_mday)); - pushSTACK(fixnum(1+tm.tm_mon)); - pushSTACK(fixnum(1900+tm.tm_year)); + pushSTACK(fixnum(tm->tm_sec)); + pushSTACK(fixnum(tm->tm_min)); + pushSTACK(fixnum(tm->tm_hour)); + pushSTACK(fixnum(tm->tm_mday)); + pushSTACK(fixnum(1+tm->tm_mon)); + pushSTACK(fixnum(1900+tm->tm_year)); pushSTACK(timezone); funcall(S(encode_universal_time),7); } ------------------------------ Message: 2 Date: Wed, 29 Sep 2010 13:53:12 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src ChangeLog,1.7535,1.7536 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv12562/src Modified Files: ChangeLog Log Message: call AC_PROG_YACC for getdate Index: ChangeLog =================================================================== RCS file: /cvsroot/clisp/clisp/src/ChangeLog,v retrieving revision 1.7535 retrieving revision 1.7536 diff -u -d -r1.7535 -r1.7536 --- ChangeLog 29 Sep 2010 13:39:41 -0000 1.7535 +++ ChangeLog 29 Sep 2010 13:53:10 -0000 1.7536 @@ -5,7 +5,7 @@ (build-aux-update): get ylwrap from automake * modules/syscalls/calls.c (tm_to_lisp): extract from STRING-TIME (POSIX:GETDATE, xalloc_die): implement - * modules/syscalls/configure.in: call gl_GETDATE + * modules/syscalls/configure.in: call gl_GETDATE & AC_PROG_YACC * modules/syscalls/gllib/c-ctype.c, modules/syscalls/gllib/c-ctype.h: * modules/syscalls/gllib/getdate.h, modules/syscalls/gllib/getdate.y: * modules/syscalls/gllib/gettext.h, modules/syscalls/gllib/gettime.c: ------------------------------ Message: 3 Date: Wed, 29 Sep 2010 13:53:12 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls configure.in,1.93,1.94 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv12562/modules/syscalls Modified Files: configure.in Log Message: call AC_PROG_YACC for getdate Index: configure.in =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/configure.in,v retrieving revision 1.93 retrieving revision 1.94 diff -u -d -r1.93 -r1.94 --- configure.in 29 Sep 2010 13:24:14 -0000 1.93 +++ configure.in 29 Sep 2010 13:53:10 -0000 1.94 @@ -12,6 +12,7 @@ CL_MODULE_COMMON_CHECKS() AM_INIT_AUTOMAKE([no-define]) AC_PROG_RANLIB +AC_PROG_YACC sc_gl_EARLY sc_gl_INIT ------------------------------ Message: 4 Date: Wed, 29 Sep 2010 13:55:59 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src ChangeLog,1.7536,1.7537 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv13376/src Modified Files: ChangeLog Log Message: export GETDATE Index: ChangeLog =================================================================== RCS file: /cvsroot/clisp/clisp/src/ChangeLog,v retrieving revision 1.7536 retrieving revision 1.7537 diff -u -d -r1.7536 -r1.7537 --- ChangeLog 29 Sep 2010 13:53:10 -0000 1.7536 +++ ChangeLog 29 Sep 2010 13:55:57 -0000 1.7537 @@ -5,6 +5,7 @@ (build-aux-update): get ylwrap from automake * modules/syscalls/calls.c (tm_to_lisp): extract from STRING-TIME (POSIX:GETDATE, xalloc_die): implement + * modules/syscalls/posix.lisp: export GETDATE * modules/syscalls/configure.in: call gl_GETDATE & AC_PROG_YACC * modules/syscalls/gllib/c-ctype.c, modules/syscalls/gllib/c-ctype.h: * modules/syscalls/gllib/getdate.h, modules/syscalls/gllib/getdate.y: ------------------------------ Message: 5 Date: Wed, 29 Sep 2010 13:55:59 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls posix.lisp,1.98,1.99 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv13376/modules/syscalls Modified Files: posix.lisp Log Message: export GETDATE Index: posix.lisp =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/posix.lisp,v retrieving revision 1.98 retrieving revision 1.99 diff -u -d -r1.98 -r1.99 --- posix.lisp 21 Sep 2010 16:09:48 -0000 1.98 +++ posix.lisp 29 Sep 2010 13:55:57 -0000 1.99 @@ -9,7 +9,7 @@ (:export #:resolve-host-ipaddr #:bogomips #:loadavg #:mkstemp #:mkdtemp #+unix #:wait #:stream-lock #:with-stream-lock #:duplicate-handle #:copy-file - #:file-owner #:physical-memory #:stream-options #:string-time + #:file-owner #:physical-memory #:stream-options #:string-time #:getdate #:version-compare #:version< #:version<= #:version> #:version>= #+(or :win32 :cygwin) #:file-properties #+unix #:make-xterm-io-stream #:priority #:openlog #:setlogmask #:syslog #:closelog #:process-id #:getppid ------------------------------ Message: 6 Date: Wed, 29 Sep 2010 13:56:38 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls configure,1.119,1.120 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv13745/modules/syscalls Modified Files: configure Log Message: regenerate with C_PROG_YACC Index: configure =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/configure,v retrieving revision 1.119 retrieving revision 1.120 diff -u -d -r1.119 -r1.120 --- configure 29 Sep 2010 13:40:09 -0000 1.119 +++ configure 29 Sep 2010 13:56:36 -0000 1.120 @@ -881,13 +881,13 @@ GNULIB_DUP2 GNULIB_CLOSE GNULIB_CHOWN -YFLAGS -YACC HAVE__BOOL STDBOOL_H LIB_CLOCK_GETTIME GL_COND_LIBTOOL_FALSE GL_COND_LIBTOOL_TRUE +YFLAGS +YACC RANLIB am__fastdepCC_FALSE am__fastdepCC_TRUE @@ -1642,12 +1642,10 @@ you have headers in a nonstandard directory <include dir> CPP C preprocessor YACC The `Yet Another C Compiler' implementation to use. Defaults to - `bison -y'. Values other than `bison -y' will most likely break - on most systems. - YFLAGS YFLAGS contains the list arguments that will be passed by - default to Bison. This script will default YFLAGS to the empty - string to avoid a default value of `-d' given by some make - applications. + the first program found out of: `bison -y', `byacc', `yacc'. + YFLAGS The list of arguments that will be passed by default to $YACC. + This script will default YFLAGS to the empty string to avoid a + default value of `-d' given by some make applications. Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. @@ -5130,6 +5128,49 @@ RANLIB="$ac_cv_prog_RANLIB" fi +for ac_prog in 'bison -y' byacc +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_YACC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$YACC"; then + ac_cv_prog_YACC="$YACC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_YACC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +YACC=$ac_cv_prog_YACC +if test -n "$YACC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 +$as_echo "$YACC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$YACC" && break +done +test -n "$YACC" || YACC="yacc" + # Code from module alignof: ------------------------------ Message: 7 Date: Wed, 29 Sep 2010 14:46:41 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src ChangeLog,1.7537,1.7538 makemake.in,1.949,1.950 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv24620/src Modified Files: ChangeLog makemake.in Log Message: * src/makemake.in (lisp${SHREXT}, lisp${LEXE}): put ${GLLIB_A} before $(OBJECTS) so that gllib is rebuilt before compiling charstrg.d Index: makemake.in =================================================================== RCS file: /cvsroot/clisp/clisp/src/makemake.in,v retrieving revision 1.949 retrieving revision 1.950 diff -u -d -r1.949 -r1.950 --- makemake.in 28 Sep 2010 20:40:40 -0000 1.949 +++ makemake.in 29 Sep 2010 14:46:39 -0000 1.950 @@ -2632,7 +2632,7 @@ # linker, and when creating lisp.dll, we must give $(LIBS) to it. # Some unixes (SHREXT=.so) need -fPIC when compiling clisp core for a DLL, # which loses performance; besides, we do not need lisp.so on unix anyway. - echol "lisp${SHREXT} : \$(OBJECTS) modules.o ${GLLIB_A}" + echol "lisp${SHREXT} : ${GLLIB_A} \$(OBJECTS) modules.o" CLISP_DEF=" lisp.def" XCC_CREATESHARED_=`echo ${XCC_CREATESHARED} | sed -e 's/\\${/\\\\$\\\\(/g' -e 's/}/\\\\)/g'` echotab "`eval \"lib=\$\@; libs=\$^\ \$\(LIBS\); echo ${XCC_CREATESHARED_}\"`" @@ -2698,7 +2698,7 @@ } fi -echol "lisp${LEXE} : \$(OBJECTS) ${GLLIB_A} modules${TOBJ} ${XCL_GETTEXTLIB} data" +echol "lisp${LEXE} : ${GLLIB_A} \$(OBJECTS) modules${TOBJ} ${XCL_GETTEXTLIB} data" if [ $HOS != win32 ] ; then if [ $XCC_GCC = true -a -n "$SOLARIS_LINKING" ] ; then # Dynamically linking on Solaris 2.[23] is a pain. Index: ChangeLog =================================================================== RCS file: /cvsroot/clisp/clisp/src/ChangeLog,v retrieving revision 1.7537 retrieving revision 1.7538 diff -u -d -r1.7537 -r1.7538 --- ChangeLog 29 Sep 2010 13:55:57 -0000 1.7537 +++ ChangeLog 29 Sep 2010 14:46:38 -0000 1.7538 @@ -1,3 +1,8 @@ +2010-09-29 Sam Steingold <sd...@gn...> + + * makemake.in (lisp${SHREXT}, lisp${LEXE}): put ${GLLIB_A} before + $(OBJECTS) so that gllib is rebuilt before compiling charstrg.d + 2010-09-28 Sam Steingold <sd...@gn...> implement POSIX:GETDATE using gnulib ------------------------------ Message: 8 Date: Wed, 29 Sep 2010 15:27:21 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls datemsk, NONE, 1.1 Makefile.in, 1.27, 1.28 calls.c, 1.317, 1.318 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv2797/modules/syscalls Modified Files: Makefile.in calls.c Added Files: datemsk Log Message: * modules/syscalls/calls.c (module__syscalls__init_function_2): if DATEMSK is not set, point it to the inluded file ... * modules/syscalls/datemsk: add (based on http://www.opengroup.org/onlinepubs/009695399/functions/getdate.html) * modules/syscalls/Makefile.in (GENERATED): add datemsk (datemsk): new target Index: Makefile.in =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/Makefile.in,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- Makefile.in 10 Jun 2010 15:07:01 -0000 1.27 +++ Makefile.in 29 Sep 2010 15:27:18 -0000 1.28 @@ -17,7 +17,7 @@ SHELL = /bin/sh -GENERATED = calls.o bogomips.o posix.fas libgnu_sc.a preload.lisp +GENERATED = calls.o bogomips.o posix.fas libgnu_sc.a preload.lisp datemsk DISTRIBFILES = link.sh Makefile $(GENERATED) \ $(srcdir)/posix.lisp $(srcdir)/README distribdir = @@ -44,6 +44,9 @@ preload.lisp : $(srcdir)/preload.lisp $(LN_S) $(srcdir)/preload.lisp . +datemsk : $(srcdir)/datemsk + $(LN_S) $(srcdir)/datemsk . + am--refresh : # syscalls relies on src/gllib, so we must also include files in the build dir Index: calls.c =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/calls.c,v retrieving revision 1.317 retrieving revision 1.318 diff -u -d -r1.317 -r1.318 --- calls.c 29 Sep 2010 13:45:22 -0000 1.317 +++ calls.c 29 Sep 2010 15:27:18 -0000 1.318 @@ -5838,4 +5838,15 @@ #if defined(HAVE_FFI) init_stdio(); #endif + /* if DATEMSK is not set, set it to the clisp-supplied value */ + if (NULL == getenv("DATEMSK")) { + with_string_0(GLO(lib_dir), GLO(pathname_encoding), ldz, { + char datemsk[MAXPATHLEN]; + strcpy(datemsk,ldz); + if (ldz[ldz_len-1] == '/') + strcat(datemsk,"syscalls/datemsk"); + else strcat(datemsk,"/syscalls/datemsk"); + setenv("DATEMSK",datemsk); + }); + } } --- NEW FILE: datemsk --- %m %A %B %d, %Y, %H:%M:%S %A %B %m/%d/%y %I %p %d,%m,%Y %H:%M %m/%d/%y %d.%m.%y %y-%m-%d %A %H:%M:%S %a %b %a %b %a %Y %a %H %b %H:%S %H:%M ------------------------------ Message: 9 Date: Wed, 29 Sep 2010 15:27:21 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src ChangeLog,1.7538,1.7539 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv2797/src Modified Files: ChangeLog Log Message: * modules/syscalls/calls.c (module__syscalls__init_function_2): if DATEMSK is not set, point it to the inluded file ... * modules/syscalls/datemsk: add (based on http://www.opengroup.org/onlinepubs/009695399/functions/getdate.html) * modules/syscalls/Makefile.in (GENERATED): add datemsk (datemsk): new target Index: ChangeLog =================================================================== RCS file: /cvsroot/clisp/clisp/src/ChangeLog,v retrieving revision 1.7538 retrieving revision 1.7539 diff -u -d -r1.7538 -r1.7539 --- ChangeLog 29 Sep 2010 14:46:38 -0000 1.7538 +++ ChangeLog 29 Sep 2010 15:27:19 -0000 1.7539 @@ -1,5 +1,14 @@ 2010-09-29 Sam Steingold <sd...@gn...> + * modules/syscalls/calls.c (module__syscalls__init_function_2): if + DATEMSK is not set, point it to the inluded file ... + * modules/syscalls/datemsk: add (based on + http://www.opengroup.org/onlinepubs/009695399/functions/getdate.html) + * modules/syscalls/Makefile.in (GENERATED): add datemsk + (datemsk): new target + +2010-09-29 Sam Steingold <sd...@gn...> + * makemake.in (lisp${SHREXT}, lisp${LEXE}): put ${GLLIB_A} before $(OBJECTS) so that gllib is rebuilt before compiling charstrg.d ------------------------------ Message: 10 Date: Wed, 29 Sep 2010 15:27:40 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src ChangeLog,1.7539,1.7540 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv2901 Modified Files: ChangeLog Log Message: typo Index: ChangeLog =================================================================== RCS file: /cvsroot/clisp/clisp/src/ChangeLog,v retrieving revision 1.7539 retrieving revision 1.7540 diff -u -d -r1.7539 -r1.7540 --- ChangeLog 29 Sep 2010 15:27:19 -0000 1.7539 +++ ChangeLog 29 Sep 2010 15:27:37 -0000 1.7540 @@ -1,7 +1,7 @@ 2010-09-29 Sam Steingold <sd...@gn...> * modules/syscalls/calls.c (module__syscalls__init_function_2): if - DATEMSK is not set, point it to the inluded file ... + DATEMSK is not set, point it to the included file ... * modules/syscalls/datemsk: add (based on http://www.opengroup.org/onlinepubs/009695399/functions/getdate.html) * modules/syscalls/Makefile.in (GENERATED): add datemsk ------------------------------ Message: 11 Date: Wed, 29 Sep 2010 18:18:26 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src ChangeLog,1.7540,1.7541 configure.in,1.190,1.191 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv7780/src Modified Files: ChangeLog configure.in Log Message: do not call macros which are already called by gl_INIT Index: ChangeLog =================================================================== RCS file: /cvsroot/clisp/clisp/src/ChangeLog,v retrieving revision 1.7540 retrieving revision 1.7541 diff -u -d -r1.7540 -r1.7541 --- ChangeLog 29 Sep 2010 15:27:37 -0000 1.7540 +++ ChangeLog 29 Sep 2010 18:18:24 -0000 1.7541 @@ -1,5 +1,10 @@ 2010-09-29 Sam Steingold <sd...@gn...> + * configure.in, modules/syscalls/configure.in: + do not call macros which are already called by gl_INIT + +2010-09-29 Sam Steingold <sd...@gn...> + * modules/syscalls/calls.c (module__syscalls__init_function_2): if DATEMSK is not set, point it to the included file ... * modules/syscalls/datemsk: add (based on Index: configure.in =================================================================== RCS file: /cvsroot/clisp/clisp/src/configure.in,v retrieving revision 1.190 retrieving revision 1.191 diff -u -d -r1.190 -r1.191 --- configure.in 28 Sep 2010 19:26:44 -0000 1.190 +++ configure.in 29 Sep 2010 18:18:24 -0000 1.191 @@ -29,7 +29,6 @@ RSE_BOLD BOLD_MSG([check for host type]) AC_CANONICAL_HOST -gl_HOST_CPU_C_ABI CL_DECOLONIZE BOLD_MSG([checks for programs]) dnl @@ -55,7 +54,6 @@ CL_CC_CPLUSPLUS dnl sets variable CC_CPLUSPLUS CL_CC_NEED_DEEMA dnl sets variable CC_NEED_DEEMA CL_AS_UNDERSCORE dnl sets variable AS_UNDERSCORE, DEFS ASM_UNDERSCORE -gl_SOCKETS dnl sets LIBSOCKET CL_CC_WORKS dnl final CC check dnl BOLD_MSG([check for add-ons]) @@ -83,7 +81,6 @@ dnl BOLD_MSG([checks for typedefs]) CL_CADDR_T dnl DEFS CADDR_T -gl_TYPE_SOCKLEN_T dnl DEFS socklen_t AC_CHECK_SIZEOF([off_t]) AC_CHECK_SIZEOF(struct timeval,,[#include <stdio.h> #include <sys/time.h>]) @@ -111,7 +108,6 @@ CL_RLIMIT dnl DEFS HAVE_GETRLIMIT, HAVE_SETRLIMIT, RLIMIT_RESOURCE_T, SETRLIMIT_CONST AC_FUNC_VFORK dnl DEFS HAVE_VFORK_H, vfork CL_WAITPID dnl DEFS PID_T -gl_SYS_WAIT_H CL_RUSAGE dnl DEFS HAVE_SYS_RESOURCE_H, HAVE_GETRUSAGE, RUSAGE_WHO_T, HAVE_SYS_TIMES_H CL_STAT dnl DEFS HAVE_LSTAT etc CL_ELOOP dnl DEFS ELOOP_VALUE ------------------------------ Message: 12 Date: Wed, 29 Sep 2010 18:18:26 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls configure.in,1.94,1.95 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv7780/modules/syscalls Modified Files: configure.in Log Message: do not call macros which are already called by gl_INIT Index: configure.in =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/configure.in,v retrieving revision 1.94 retrieving revision 1.95 diff -u -d -r1.94 -r1.95 --- configure.in 29 Sep 2010 13:53:10 -0000 1.94 +++ configure.in 29 Sep 2010 18:18:24 -0000 1.95 @@ -54,17 +54,6 @@ crypt encrypt setkey GlobalMemoryStatusEx dnl gethostid sethostid getdomainname setdomainname nftw) AC_FUNC_CHOWN -gl_FUNC_MKTIME -gl_FUNC_GNU_STRFTIME -gl_FUNC_STRPTIME -gl_TIME_MODULE_INDICATOR([strptime]) -gl_GETDATE -gl_FUNC_STRVERSCMP -gl_STRING_MODULE_INDICATOR([strverscmp]) -gl_FUNC_UNAME -gl_SYS_UTSNAME_MODULE_INDICATOR([uname]) -gl_FUNC_STRERROR -gl_STRING_MODULE_INDICATOR([strerror]) AC_CHECK_DECLS([signgam],,,[#include <math.h>]) CL_STAT if test "$ac_cv_header_sys_statvfs_h" = "yes"; then ------------------------------ ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ------------------------------ _______________________________________________ clisp-cvs mailing list cli...@li... https://lists.sourceforge.net/lists/listinfo/clisp-cvs End of clisp-cvs Digest, Vol 53, Issue 35 ***************************************** |
|
From: <Joe...@t-...> - 2010-09-29 15:22:11
|
Don Cohen wrote: >I saw the warning (c. 2004?) and concluded that this was not a good >way to deal with signals. Still applies. Yet I think CLISP would benefit, like CMUCL, from an API which would allow to declare signal handlers written in Lisp. The effort estimate may be short sighted, but the most important piece of work is to note a signal was invoked in the signal handler, then later -- at a safe point to do so -- invoke the Lisp callback (not unlike ^C signals were tested synchronously on some platforms, then the break loop invoked). A major difference with CMUCL is that CLISP normally hangs in (READ *standard-input*), instead of polling a set of fd. Of course with MT you have the additional burden on deciding upon which thread to invoke the delayed signal handler. >The code I see in stream.d suggests there can only be one screen >window. Is there a good reason for that? It is hooked to the one special terminal stream. >Does WINCH give you a way to find out which window has been resized? No. UNIX signals are one bit only. However somebody else may know whether the OS normally delivers SIGWINCH for anything else than stdin/stdout/stderr. E.g. if you implement the telnet protocol on a socket stream, I believe you'll have to deal with WILL/WONT_XY messages yourself. Likewise for ssh connections. I've no idea how ext:make-xterm-io-stream (name?) behaves. Regards, Jörg Höhle |
|
From: <cli...@li...> - 2010-09-29 13:40:47
|
Send clisp-cvs mailing list submissions to cli...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/clisp-cvs or, via email, send a message with subject or body 'help' to cli...@li... You can reach the person managing the list at cli...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of clisp-cvs digest..." CLISP CVS commits for today Today's Topics: 1. clisp Makefile.devel,1.284,1.285 (Sam Steingold) 2. clisp/src ChangeLog,1.7534,1.7535 (Sam Steingold) 3. clisp/modules/syscalls config.h.in,1.82,1.83 configure,1.118,1.119 (Sam Steingold) 4. clisp/src aclocal.m4,1.99,1.100 (Sam Steingold) 5. clisp/modules/syscalls/gllib Makefile.in,1.25,1.26 (Sam Steingold) 6. clisp/src/build-aux ylwrap,NONE,1.1 (Sam Steingold) ---------------------------------------------------------------------- Message: 1 Date: Wed, 29 Sep 2010 13:39:44 +0000 From: Sam Steingold <sd...@us...> Subject: clisp Makefile.devel,1.284,1.285 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv8460 Modified Files: Makefile.devel Log Message: (build-aux-update): get ylwrap from automake (for getdate) Index: Makefile.devel =================================================================== RCS file: /cvsroot/clisp/clisp/Makefile.devel,v retrieving revision 1.284 retrieving revision 1.285 diff -u -d -r1.284 -r1.285 --- Makefile.devel 29 Sep 2010 13:24:14 -0000 1.284 +++ Makefile.devel 29 Sep 2010 13:39:42 -0000 1.285 @@ -353,6 +353,7 @@ cp -afuv $(GNULIB_CHECKOUT)/build-aux/$$f src/build-aux; \ done cp -afuv /usr/share/automake*/compile src/build-aux + cp -afuv /usr/share/automake*/ylwrap src/build-aux test -f $(LIBTOOL_SOURCE_FILE) || wget $(LIBTOOL_SOURCE_URL) rm -rf libtool-$(LIBTOOL_VERSION) gunzip -c < $(LIBTOOL_SOURCE_FILE) | tar xf - ------------------------------ Message: 2 Date: Wed, 29 Sep 2010 13:39:44 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src ChangeLog,1.7534,1.7535 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv8460/src Modified Files: ChangeLog Log Message: (build-aux-update): get ylwrap from automake (for getdate) Index: ChangeLog =================================================================== RCS file: /cvsroot/clisp/clisp/src/ChangeLog,v retrieving revision 1.7534 retrieving revision 1.7535 diff -u -d -r1.7534 -r1.7535 --- ChangeLog 29 Sep 2010 13:24:14 -0000 1.7534 +++ ChangeLog 29 Sep 2010 13:39:41 -0000 1.7535 @@ -2,18 +2,19 @@ implement POSIX:GETDATE using gnulib * Makefile.devel (gnulib-imported): import getdate into syscalls + (build-aux-update): get ylwrap from automake * modules/syscalls/calls.c (tm_to_lisp): extract from STRING-TIME (POSIX:GETDATE, xalloc_die): implement * modules/syscalls/configure.in: call gl_GETDATE * modules/syscalls/gllib/c-ctype.c, modules/syscalls/gllib/c-ctype.h: - * modules/syscalls/gllib/getdate.h, modules/syscalls/gllib/getdate.y: - * modules/syscalls/gllib/gettext.h, modules/syscalls/gllib/gettime.c: - * modules/syscalls/gllib/timespec.h, modules/syscalls/gllib/xalloc.h: - * modules/syscalls/gllib/xmalloc.c, modules/syscalls/glm4/bison.m4: - * modules/syscalls/glm4/clock_time.m4, modules/syscalls/glm4/error.m4: - * modules/syscalls/glm4/getdate.m4, modules/syscalls/glm4/gettime.m4: - * modules/syscalls/glm4/inline.m4, modules/syscalls/glm4/timespec.m4: - * modules/syscalls/glm4/xalloc.m4: add + * modules/syscalls/gllib/getdate.h, modules/syscalls/gllib/getdate.y: + * modules/syscalls/gllib/gettext.h, modules/syscalls/gllib/gettime.c: + * modules/syscalls/gllib/timespec.h, modules/syscalls/gllib/xalloc.h: + * modules/syscalls/gllib/xmalloc.c, modules/syscalls/glm4/bison.m4: + * modules/syscalls/glm4/clock_time.m4, modules/syscalls/glm4/error.m4: + * modules/syscalls/glm4/getdate.m4, modules/syscalls/glm4/gettime.m4: + * modules/syscalls/glm4/inline.m4, modules/syscalls/glm4/timespec.m4: + * modules/syscalls/glm4/xalloc.m4: add 2010-09-28 Sam Steingold <sd...@gn...> ------------------------------ Message: 3 Date: Wed, 29 Sep 2010 13:40:11 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls config.h.in,1.82,1.83 configure,1.118,1.119 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv8630/modules/syscalls Modified Files: config.h.in configure Log Message: regenerate for getdate Index: config.h.in =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/config.h.in,v retrieving revision 1.82 retrieving revision 1.83 diff -u -d -r1.82 -r1.83 --- config.h.in 28 Sep 2010 18:58:39 -0000 1.82 +++ config.h.in 29 Sep 2010 13:40:09 -0000 1.83 @@ -40,9 +40,18 @@ /* Define to 1 if you have the `chroot' function. */ #undef HAVE_CHROOT +/* Define to 1 if you have the `clock_gettime' function. */ +#undef HAVE_CLOCK_GETTIME + +/* Define to 1 if you have the `clock_settime' function. */ +#undef HAVE_CLOCK_SETTIME + /* Define to 1 if you have the `closelog' function. */ #undef HAVE_CLOSELOG +/* Define if you have compound literals. */ +#undef HAVE_COMPOUND_LITERALS + /* Define to 1 if you have the `confstr' function. */ #undef HAVE_CONFSTR @@ -207,6 +216,9 @@ /* Define to 1 if you have the `getsid' function. */ #undef HAVE_GETSID +/* Define to 1 if you have the `gettimeofday' function. */ +#undef HAVE_GETTIMEOFDAY + /* Define to 1 if you have the `getuid' function. */ #undef HAVE_GETUID @@ -228,6 +240,11 @@ /* Define to 1 if you have the <grp.h> header file. */ #undef HAVE_GRP_H +/* Define to 1 if the compiler supports one of the keywords 'inline', + '__inline__', '__inline' and effectively inlines functions marked as such. + */ +#undef HAVE_INLINE + /* Define to 1 if you have the <inttypes.h> header file. */ #undef HAVE_INTTYPES_H @@ -279,6 +296,9 @@ /* Define to 1 if you have the `mkstemp' function. */ #undef HAVE_MKSTEMP +/* Define to 1 if you have the `nanotime' function. */ +#undef HAVE_NANOTIME + /* Define to 1 if you have the <netdb.h> header file. */ #undef HAVE_NETDB_H @@ -559,6 +579,9 @@ /* Define to 1 if you have the `statvfs' function. */ #undef HAVE_STATVFS +/* Define to 1 if stdbool.h conforms to C99. */ +#undef HAVE_STDBOOL_H + /* Define to 1 if you have the <stddef.h> header file. */ #undef HAVE_STDDEF_H @@ -717,6 +740,9 @@ /* Define to 1 if you have the <ws2tcpip.h> header file. */ #undef HAVE_WS2TCPIP_H +/* Define to 1 if the system has the type `_Bool'. */ +#undef HAVE__BOOL + /* Define HOST_NAME_MAX when <limits.h> does not define it. */ #undef HOST_NAME_MAX @@ -793,6 +819,9 @@ /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS +/* Define to 1 if all 'time_t' values fit in a 'long int'. */ +#undef TIME_T_FITS_IN_LONG_INT + /* Define to 1 if your <sys/time.h> declares `struct tm'. */ #undef TM_IN_SYS_TIME Index: configure =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/configure,v retrieving revision 1.118 retrieving revision 1.119 diff -u -d -r1.118 -r1.119 --- configure 28 Sep 2010 18:58:39 -0000 1.118 +++ configure 29 Sep 2010 13:40:09 -0000 1.119 @@ -881,6 +881,11 @@ GNULIB_DUP2 GNULIB_CLOSE GNULIB_CHOWN +YFLAGS +YACC +HAVE__BOOL +STDBOOL_H +LIB_CLOCK_GETTIME GL_COND_LIBTOOL_FALSE GL_COND_LIBTOOL_TRUE RANLIB [...1230 lines suppressed...] + ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) +typedef int verify_min[2 * (LONG_MIN <= TYPE_MINIMUM (time_t)) - 1]; +typedef int verify_max[2 * (TYPE_MAXIMUM (time_t) <= LONG_MAX) - 1]; + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +$as_echo "#define TIME_T_FITS_IN_LONG_INT 1" >>confdefs.h + + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + + + for ac_func in strverscmp do : ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp" ------------------------------ Message: 4 Date: Wed, 29 Sep 2010 13:40:11 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src aclocal.m4,1.99,1.100 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv8630/src Modified Files: aclocal.m4 Log Message: regenerate for getdate Index: aclocal.m4 =================================================================== RCS file: /cvsroot/clisp/clisp/src/aclocal.m4,v retrieving revision 1.99 retrieving revision 1.100 diff -u -d -r1.99 -r1.100 --- aclocal.m4 28 Sep 2010 18:58:39 -0000 1.99 +++ aclocal.m4 29 Sep 2010 13:40:09 -0000 1.100 @@ -1312,6 +1312,117 @@ m4/mbstate_t.m4 ]) +# serial 5 + +# Copyright (C) 2002, 2005, 2009, 2010 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_BISON], +[ + # getdate.y works with bison only. + : ${YACC='bison -y'} +dnl +dnl Declaring YACC & YFLAGS precious will not be necessary after GNULIB +dnl requires an Autoconf greater than 2.59c, but it will probably still be +dnl useful to override the description of YACC in the --help output, re +dnl getdate.y assuming `bison -y'. + AC_ARG_VAR([YACC], +[The `Yet Another C Compiler' implementation to use. Defaults to `bison -y'. +Values other than `bison -y' will most likely break on most systems.])dnl + AC_ARG_VAR([YFLAGS], +[YFLAGS contains the list arguments that will be passed by default to Bison. +This script will default YFLAGS to the empty string to avoid a default value of +`-d' given by some make applications.])dnl +]) + +# clock_time.m4 serial 10 +dnl Copyright (C) 2002-2006, 2009-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# Check for clock_gettime and clock_settime, and set LIB_CLOCK_GETTIME. +# For a program named, say foo, you should add a line like the following +# in the corresponding Makefile.am file: +# foo_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) + +AC_DEFUN([gl_CLOCK_TIME], +[ + dnl Persuade glibc and Solaris <time.h> to declare these functions. + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + + # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function. + # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. + + # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all* + # programs in the package would end up linked with that potentially-shared + # library, inducing unnecessary run-time overhead. + LIB_CLOCK_GETTIME= + AC_SUBST([LIB_CLOCK_GETTIME]) + gl_saved_libs=$LIBS + AC_SEARCH_LIBS([clock_gettime], [rt posix4], + [test "$ac_cv_search_clock_gettime" = "none required" || + LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime]) + AC_CHECK_FUNCS([clock_gettime clock_settime]) + LIBS=$gl_saved_libs +]) + +# getdate.m4 serial 16 +dnl Copyright (C) 2002-2006, 2008-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Define HAVE_COMPOUND_LITERALS if the C compiler supports compound literals +dnl as in ISO C99. +dnl Note that compound literals such as (struct s) { 3, 4 } can be used for +dnl initialization of stack-allocated variables, but are not constant +dnl expressions and therefore cannot be used as initializer for global or +dnl static variables (even though gcc supports this in pre-C99 mode). +AC_DEFUN([gl_C_COMPOUND_LITERALS], +[ + AC_CACHE_CHECK([for compound literals], [gl_cv_compound_literals], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[struct s { int i, j; };]], + [[struct s t = (struct s) { 3, 4 }; + if (t.i != 0) return 0;]])], + gl_cv_compound_literals=yes, + gl_cv_compound_literals=no)]) + if test $gl_cv_compound_literals = yes; then + AC_DEFINE([HAVE_COMPOUND_LITERALS], [1], + [Define if you have compound literals.]) + fi +]) + +AC_DEFUN([gl_GETDATE], +[ + dnl Prerequisites of lib/getdate.h. + AC_REQUIRE([AM_STDBOOL_H]) + AC_REQUIRE([gl_TIMESPEC]) + + dnl Prerequisites of lib/getdate.y. + AC_REQUIRE([gl_BISON]) + AC_REQUIRE([gl_C_COMPOUND_LITERALS]) + AC_STRUCT_TIMEZONE + AC_REQUIRE([gl_CLOCK_TIME]) + AC_REQUIRE([gl_TM_GMTOFF]) + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE([[ +#include <time.h> /* for time_t */ +#include <limits.h> /* for CHAR_BIT, LONG_MIN, LONG_MAX */ +#define TYPE_MINIMUM(t) \ + ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) +#define TYPE_MAXIMUM(t) \ + ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) +typedef int verify_min[2 * (LONG_MIN <= TYPE_MINIMUM (time_t)) - 1]; +typedef int verify_max[2 * (TYPE_MAXIMUM (time_t) <= LONG_MAX) - 1]; + ]])], + [AC_DEFINE([TIME_T_FITS_IN_LONG_INT], [1], + [Define to 1 if all 'time_t' values fit in a 'long int'.]) + ]) +]) + # gethostname.m4 serial 9 dnl Copyright (C) 2002, 2008, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation @@ -1414,6 +1525,22 @@ fi ]) +# gettime.m4 serial 7 +dnl Copyright (C) 2002, 2004-2006, 2009-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_GETTIME], +[ + AC_LIBOBJ([gettime]) + + dnl Prerequisites of lib/gettime.c. + AC_REQUIRE([gl_CLOCK_TIME]) + AC_REQUIRE([gl_TIMESPEC]) + AC_CHECK_FUNCS_ONCE([gettimeofday nanotime]) +]) + # DO NOT EDIT! GENERATED AUTOMATICALLY! # Copyright (C) 2002-2010 Free Software Foundation, Inc. # @@ -1445,7 +1572,12 @@ # Code from module alignof: # Code from module arg-nonnull: # Code from module c++defs: + # Code from module c-ctype: + # Code from module clock-time: + # Code from module getdate: # Code from module gethostname: + # Code from module gettime: + # Code from module inline: # Code from module intprops: # Code from module mbrlen: # Code from module mktime: @@ -1461,9 +1593,11 @@ # Code from module sys_utsname: # Code from module time: # Code from module time_r: + # Code from module timespec: # Code from module uname: # Code from module unistd: # Code from module warn-on-use: + # Code from module xalloc: ]) # This macro should be invoked from ./configure.ac, in the section @@ -1485,9 +1619,18 @@ # Code from module alignof: # Code from module arg-nonnull: # Code from module c++defs: + # Code from module c-ctype: + # Code from module clock-time: + gl_CLOCK_TIME + # Code from module getdate: + gl_GETDATE # Code from module gethostname: gl_FUNC_GETHOSTNAME gl_UNISTD_MODULE_INDICATOR([gethostname]) + # Code from module gettime: + gl_GETTIME + # Code from module inline: + gl_INLINE # Code from module intprops: # Code from module mbrlen: gl_FUNC_MBRLEN @@ -1525,13 +1668,16 @@ # Code from module time_r: gl_TIME_R gl_TIME_MODULE_INDICATOR([time_r]) + # Code from module timespec: + gl_TIMESPEC # Code from module uname: gl_FUNC_UNAME gl_SYS_UTSNAME_MODULE_INDICATOR([uname]) # Code from module unistd: gl_UNISTD_H # Code from module warn-on-use: - # Code from module dummy: + # Code from module xalloc: + gl_XALLOC # End of code from modules m4_ifval(sc_gl_LIBSOURCES_LIST, [ m4_syscmd([test ! -d ]m4_defn([sc_gl_LIBSOURCES_DIR])[ || @@ -1675,9 +1821,14 @@ build-aux/arg-nonnull.h build-aux/c++defs.h build-aux/warn-on-use.h + doc/getdate.texi lib/alignof.h - lib/dummy.c + lib/c-ctype.c + lib/c-ctype.h + lib/getdate.h + lib/getdate.y lib/gethostname.c + lib/gettime.c lib/intprops.h lib/mbrlen.c lib/mktime-internal.h @@ -1695,12 +1846,20 @@ lib/sys_utsname.in.h lib/time.in.h lib/time_r.c + lib/timespec.h lib/uname.c lib/unistd.in.h lib/w32sock.h + lib/xalloc.h + lib/xmalloc.c m4/00gnulib.m4 + m4/bison.m4 + m4/clock_time.m4 + m4/getdate.m4 m4/gethostname.m4 + m4/gettime.m4 m4/gnulib-common.m4 + m4/inline.m4 m4/mbrlen.m4 m4/mbstate_t.m4 m4/mktime.m4 @@ -1717,11 +1876,54 @@ m4/sys_utsname_h.m4 m4/time_h.m4 m4/time_r.m4 + m4/timespec.m4 m4/tm_gmtoff.m4 m4/uname.m4 m4/unistd_h.m4 m4/warn-on-use.m4 m4/wchar_t.m4 + m4/xalloc.m4 +]) + +# inline.m4 serial 4 +dnl Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Test for the 'inline' keyword or equivalent. +dnl Define 'inline' to a supported equivalent, or to nothing if not supported, +dnl like AC_C_INLINE does. Also, define HAVE_INLINE if 'inline' or an +dnl equivalent is effectively supported, i.e. if the compiler is likely to +dnl drop unused 'static inline' functions. +AC_DEFUN([gl_INLINE], +[ + AC_REQUIRE([AC_C_INLINE]) + AC_CACHE_CHECK([whether the compiler generally respects inline], + [gl_cv_c_inline_effective], + [if test $ac_cv_c_inline = no; then + gl_cv_c_inline_effective=no + else + dnl GCC defines __NO_INLINE__ if not optimizing or if -fno-inline is + dnl specified. + dnl Use AC_COMPILE_IFELSE here, not AC_EGREP_CPP, because the result + dnl depends on optimization flags, which can be in CFLAGS. + dnl (AC_EGREP_CPP looks only at the CPPFLAGS.) + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([[]], + [[#ifdef __NO_INLINE__ + #error "inline is not effective" + #endif]])], + [gl_cv_c_inline_effective=yes], + [gl_cv_c_inline_effective=no]) + fi + ]) + if test $gl_cv_c_inline_effective = yes; then + AC_DEFINE([HAVE_INLINE], [1], + [Define to 1 if the compiler supports one of the keywords + 'inline', '__inline__', '__inline' and effectively inlines + functions marked as such.]) + fi ]) # mbrlen.m4 serial 3 @@ -2607,6 +2809,22 @@ : ]) +#serial 14 + +# Copyright (C) 2000-2001, 2003-2007, 2009-2010 Free Software Foundation, Inc. + +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +dnl From Jim Meyering + +AC_DEFUN([gl_TIMESPEC], +[ + dnl Prerequisites of lib/timespec.h. + AC_REQUIRE([AC_C_INLINE]) +]) + # tm_gmtoff.m4 serial 3 dnl Copyright (C) 2002, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation @@ -2643,6 +2861,32 @@ : ]) +# xalloc.m4 serial 16 +dnl Copyright (C) 2002, 2003, 2004, 2005, 2006, 2009, 2010 Free Software +dnl Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_XALLOC], +[ + AC_LIBOBJ([xmalloc]) + + gl_PREREQ_XALLOC + gl_PREREQ_XMALLOC +]) + +# Prerequisites of lib/xalloc.h. +AC_DEFUN([gl_PREREQ_XALLOC], [ + AC_REQUIRE([gl_INLINE]) + : +]) + +# Prerequisites of lib/xmalloc.c. +AC_DEFUN([gl_PREREQ_XMALLOC], [ + : +]) + # btowc.m4 serial 7 dnl Copyright (C) 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation ------------------------------ Message: 5 Date: Wed, 29 Sep 2010 13:40:11 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls/gllib Makefile.in,1.25,1.26 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls/gllib In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv8630/modules/syscalls/gllib Modified Files: Makefile.in Log Message: regenerate for getdate Index: Makefile.in =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/gllib/Makefile.in,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- Makefile.in 28 Sep 2010 18:58:39 -0000 1.25 +++ Makefile.in 29 Sep 2010 13:40:09 -0000 1.26 @@ -24,7 +24,7 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=modules/syscalls/gllib --m4-base=modules/syscalls/glm4 --doc-base=doc --tests-base=tests --aux-dir=src/build-aux --avoid=no-c++ --avoid=stdint --avoid=stdbool --avoid=havelib --avoid=gettext --avoid=localcharset --avoid=uniwidth/width --avoid=streq --avoid=uniname/uniname --avoid=unitypes --avoid=link-follow --avoid=host-cpu-c-abi --avoid=socklen --avoid=sockets --avoid=close-hook --avoid=setenv --avoid=unsetenv --avoid=errno --avoid=nocrash --avoid=libsigsegv --avoid=gnu-make --avoid=gettimeofday --avoid=getpagesize --avoid=sys_time --avoid=sys_wait --avoid=alloca-opt --avoid=alloca --avoid=extensions --avoid=include_next --avoid=verify --avoid=string --avoid=mbsinit --avoid=wchar --avoid=wctype --avoid=mbrtowc --avoid=mbsrtowcs --avoid=memchr --avoid=nl_langinfo --no-libtool --macro-prefix=sc_gl --no-vc-files mktime strerror strftime strptime strverscmp uname +# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=modules/syscalls/gllib --m4-base=modules/syscalls/glm4 --doc-base=doc --tests-base=tests --aux-dir=src/build-aux --avoid=no-c++ --avoid=stdint --avoid=stdbool --avoid=havelib --avoid=gettext --avoid=localcharset --avoid=uniwidth/width --avoid=streq --avoid=uniname/uniname --avoid=unitypes --avoid=link-follow --avoid=host-cpu-c-abi --avoid=socklen --avoid=sockets --avoid=close-hook --avoid=setenv --avoid=unsetenv --avoid=errno --avoid=nocrash --avoid=libsigsegv --avoid=gnu-make --avoid=gettimeofday --avoid=getpagesize --avoid=sys_time --avoid=sys_wait --avoid=alloca-opt --avoid=alloca --avoid=extensions --avoid=include_next --avoid=verify --avoid=string --avoid=mbsinit --avoid=wchar --avoid=wctype --avoid=mbrtowc --avoid=mbsrtowcs --avoid=memchr --avoid=nl_langinfo --avoid=xalloc-die --no-libtool --macro-prefix=sc_gl --no-vc-files getdate mktime strerror strftime strptime strverscmp uname @@ -49,7 +49,7 @@ host_triplet = @host@ subdir = gllib DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in + $(srcdir)/Makefile.in getdate.c ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -63,7 +63,7 @@ ARFLAGS = cru libgnu_a_AR = $(AR) $(ARFLAGS) am__DEPENDENCIES_1 = -am_libgnu_a_OBJECTS = dummy.$(OBJEXT) +am_libgnu_a_OBJECTS = c-ctype.$(OBJEXT) getdate.$(OBJEXT) libgnu_a_OBJECTS = $(am_libgnu_a_OBJECTS) LTLIBRARIES = $(noinst_LTLIBRARIES) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) @@ -74,6 +74,8 @@ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +YACCCOMPILE = $(YACC) $(YFLAGS) $(AM_YFLAGS) +YLWRAP = $(CLISP_LIBDIR)/build-aux/ylwrap SOURCES = $(libgnu_a_SOURCES) $(EXTRA_libgnu_a_SOURCES) DIST_SOURCES = $(libgnu_a_SOURCES) $(EXTRA_libgnu_a_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ @@ -342,6 +344,7 @@ HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ +HAVE__BOOL = @HAVE__BOOL@ INCLUDE_NEXT = @INCLUDE_NEXT@ INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INSTALL = @INSTALL@ @@ -354,6 +357,7 @@ LIBGNU_LTLIBDEPS = @LIBGNU_LTLIBDEPS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ +LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@ LN = @LN@ LN_S = @LN_S@ LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ @@ -442,6 +446,7 @@ REPLACE_WRITE = @REPLACE_WRITE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ +STDBOOL_H = @STDBOOL_H@ STDDEF_H = @STDDEF_H@ STRIP = @STRIP@ SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ @@ -450,6 +455,8 @@ UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ VERSION = @VERSION@ +YACC = @YACC@ +YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ @@ -512,12 +519,13 @@ noinst_LIBRARIES = libgnu.a noinst_LTLIBRARIES = EXTRA_DIST = alignof.h $(CLISP_LIBDIR)/build-aux/arg-nonnull.h \ - $(CLISP_LIBDIR)/build-aux/c++defs.h gethostname.c w32sock.h \ - intprops.h mbrlen.c mktime-internal.h mktime.c stddef.in.h \ - strcasecmp.c strncasecmp.c strerror.c strftime.c strftime.h \ - strings.in.h strptime.c strverscmp.c sys_socket.in.h \ - sys_utsname.in.h time.in.h time_r.c uname.c unistd.in.h \ - $(CLISP_LIBDIR)/build-aux/warn-on-use.h + $(CLISP_LIBDIR)/build-aux/c++defs.h getdate.c getdate.h \ + gethostname.c w32sock.h gettime.c intprops.h mbrlen.c \ + mktime-internal.h mktime.c stddef.in.h strcasecmp.c \ + strncasecmp.c strerror.c strftime.c strftime.h strings.in.h \ + strptime.c strverscmp.c sys_socket.in.h sys_utsname.in.h \ + time.in.h time_r.c timespec.h uname.c unistd.in.h \ + $(CLISP_LIBDIR)/build-aux/warn-on-use.h xalloc.h xmalloc.c # The BUILT_SOURCES created by this Makefile snippet are not used via #include # statements but through direct file reference. Therefore this snippet must be @@ -528,26 +536,27 @@ # statements but through direct file reference. Therefore this snippet must be # present in all Makefile.am that need it. This is ensured by the applicability # 'all' defined above. -BUILT_SOURCES = arg-nonnull.h c++defs.h $(STDDEF_H) strings.h \ - sys/socket.h sys/utsname.h time.h unistd.h warn-on-use.h +BUILT_SOURCES = arg-nonnull.h c++defs.h getdate.c $(STDDEF_H) \ + strings.h sys/socket.h sys/utsname.h time.h unistd.h \ + warn-on-use.h SUFFIXES = MOSTLYCLEANFILES = core *.stackdump arg-nonnull.h arg-nonnull.h-t \ - c++defs.h c++defs.h-t stddef.h stddef.h-t strings.h \ - strings.h-t sys/socket.h sys/socket.h-t sys/utsname.h \ - sys/utsname.h-t time.h time.h-t unistd.h unistd.h-t \ - warn-on-use.h warn-on-use.h-t + c++defs.h c++defs.h-t getdate.c-t stddef.h stddef.h-t \ + strings.h strings.h-t sys/socket.h sys/socket.h-t \ + sys/utsname.h sys/utsname.h-t time.h time.h-t unistd.h \ + unistd.h-t warn-on-use.h warn-on-use.h-t MOSTLYCLEANDIRS = sys sys CLEANFILES = DISTCLEANFILES = -MAINTAINERCLEANFILES = +MAINTAINERCLEANFILES = getdate.c AM_CPPFLAGS = AM_CFLAGS = -libgnu_a_SOURCES = dummy.c +libgnu_a_SOURCES = c-ctype.h c-ctype.c getdate.y libgnu_a_LIBADD = $(sc_gl_LIBOBJS) libgnu_a_DEPENDENCIES = $(sc_gl_LIBOBJS) -EXTRA_libgnu_a_SOURCES = gethostname.c mbrlen.c mktime.c strcasecmp.c \ - strncasecmp.c strerror.c strftime.c strptime.c strverscmp.c \ - time_r.c uname.c +EXTRA_libgnu_a_SOURCES = gethostname.c gettime.c mbrlen.c mktime.c \ + strcasecmp.c strncasecmp.c strerror.c strftime.c strptime.c \ + strverscmp.c time_r.c uname.c xmalloc.c ARG_NONNULL_H = arg-nonnull.h CXXDEFS_H = c++defs.h WARN_ON_USE_H = warn-on-use.h @@ -555,7 +564,7 @@ $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: -.SUFFIXES: .c .o .obj +.SUFFIXES: .c .o .obj .y $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ @@ -609,8 +618,10 @@ distclean-compile: -rm -f *.tab.c -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dummy.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/c-ctype.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getdate.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gethostname.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gettime.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mbrlen.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mktime.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strcasecmp.Po@am__quote@ @@ -621,6 +632,7 @@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strverscmp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/time_r.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uname.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmalloc.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @@ -636,6 +648,9 @@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` +.y.c: + $(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h $*.h y.output $*.output -- $(YACCCOMPILE) + # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, @@ -864,6 +879,7 @@ maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." + -rm -f getdate.c -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive @@ -975,6 +991,18 @@ > $@-t && \ mv $@-t $@ +# This rule overrides the Automake generated .y.c rule, to ensure that the +# getdate.c file gets generated in the source directory, not in the build +# directory. +getdate.c: getdate.y + $(AM_V_GEN)$(SHELL) $(YLWRAP) $(srcdir)/getdate.y \ + y.tab.c getdate.c \ + y.tab.h getdate.h \ + y.output getdate.output \ + -- $(YACC) $(YFLAGS) $(AM_YFLAGS) && \ + mv getdate.c getdate.c-t && \ + mv getdate.c-t $(srcdir)/getdate.c + # We need the following in order to create <stddef.h> when the system # doesn't have one that works with the given compiler. stddef.h: stddef.in.h ------------------------------ Message: 6 Date: Wed, 29 Sep 2010 13:40:39 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src/build-aux ylwrap,NONE,1.1 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src/build-aux In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv8905/src/build-aux Added Files: ylwrap Log Message: needed by getdate --- NEW FILE: ylwrap --- #! /bin/sh # ylwrap - wrapper for lex/yacc invocations. scriptversion=2009-04-28.21; # UTC # Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005, # 2007, 2009 Free Software Foundation, Inc. # # Written by Tom Tromey <tr...@cy...>. # # This program 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; either version 2, or (at your option) # any later version. # # This program 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 this program. If not, see <http://www.gnu.org/licenses/>. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to <bug...@gn...> or send patches to # <aut...@gn...>. case "$1" in '') echo "$0: No files given. Try \`$0 --help' for more information." 1>&2 exit 1 ;; --basedir) basedir=$2 shift 2 ;; -h|--h*) cat <<\EOF Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]... Wrapper for lex/yacc invocations, renaming files as desired. INPUT is the input file OUTPUT is one file PROG generates DESIRED is the file we actually want instead of OUTPUT PROGRAM is program to run ARGS are passed to PROG Any number of OUTPUT,DESIRED pairs may be used. Report bugs to <bug...@gn...>. EOF exit $? ;; -v|--v*) echo "ylwrap $scriptversion" exit $? ;; esac # The input. input="$1" shift case "$input" in [\\/]* | ?:[\\/]*) # Absolute path; do nothing. ;; *) # Relative path. Make it absolute. input="`pwd`/$input" ;; esac pairlist= while test "$#" -ne 0; do if test "$1" = "--"; then shift break fi pairlist="$pairlist $1" shift done # The program to run. prog="$1" shift # Make any relative path in $prog absolute. case "$prog" in [\\/]* | ?:[\\/]*) ;; *[\\/]*) prog="`pwd`/$prog" ;; esac # FIXME: add hostname here for parallel makes that run commands on # other machines. But that might take us over the 14-char limit. dirname=ylwrap$$ trap "cd '`pwd`'; rm -rf $dirname > /dev/null 2>&1" 1 2 3 15 mkdir $dirname || exit 1 cd $dirname case $# in 0) "$prog" "$input" ;; *) "$prog" "$@" "$input" ;; esac ret=$? if test $ret -eq 0; then set X $pairlist shift first=yes # Since DOS filename conventions don't allow two dots, # the DOS version of Bison writes out y_tab.c instead of y.tab.c # and y_tab.h instead of y.tab.h. Test to see if this is the case. y_tab_nodot="no" if test -f y_tab.c || test -f y_tab.h; then y_tab_nodot="yes" fi # The directory holding the input. input_dir=`echo "$input" | sed -e 's,\([\\/]\)[^\\/]*$,\1,'` # Quote $INPUT_DIR so we can use it in a regexp. # FIXME: really we should care about more than `.' and `\'. input_rx=`echo "$input_dir" | sed 's,\\\\,\\\\\\\\,g;s,\\.,\\\\.,g'` while test "$#" -ne 0; do from="$1" # Handle y_tab.c and y_tab.h output by DOS if test $y_tab_nodot = "yes"; then if test $from = "y.tab.c"; then from="y_tab.c" else if test $from = "y.tab.h"; then from="y_tab.h" fi fi fi if test -f "$from"; then # If $2 is an absolute path name, then just use that, # otherwise prepend `../'. case "$2" in [\\/]* | ?:[\\/]*) target="$2";; *) target="../$2";; esac # We do not want to overwrite a header file if it hasn't # changed. This avoid useless recompilations. However the # parser itself (the first file) should always be updated, # because it is the destination of the .y.c rule in the # Makefile. Divert the output of all other files to a temporary # file so we can compare them to existing versions. if test $first = no; then realtarget="$target" target="tmp-`echo $target | sed s/.*[\\/]//g`" fi # Edit out `#line' or `#' directives. # # We don't want the resulting debug information to point at # an absolute srcdir; it is better for it to just mention the # .y file with no path. # # We want to use the real output file name, not yy.lex.c for # instance. # # We want the include guards to be adjusted too. FROM=`echo "$from" | sed \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'\ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'` TARGET=`echo "$2" | sed \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'\ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'` sed -e "/^#/!b" -e "s,$input_rx,," -e "s,$from,$2," \ -e "s,$FROM,$TARGET," "$from" >"$target" || ret=$? # Check whether header files must be updated. if test $first = no; then if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then echo "$2" is unchanged rm -f "$target" else echo updating "$2" mv -f "$target" "$realtarget" fi fi else # A missing file is only an error for the first file. This # is a blatant hack to let us support using "yacc -d". If -d # is not specified, we don't want an error when the header # file is "missing". if test $first = yes; then ret=1 fi fi shift shift first=no done else ret=$? fi # Remove the directory. cd .. rm -rf $dirname exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: ------------------------------ ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ------------------------------ _______________________________________________ clisp-cvs mailing list cli...@li... https://lists.sourceforge.net/lists/listinfo/clisp-cvs End of clisp-cvs Digest, Vol 53, Issue 34 ***************************************** |
|
From: <cli...@li...> - 2010-09-29 13:24:28
|
Send clisp-cvs mailing list submissions to cli...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/clisp-cvs or, via email, send a message with subject or body 'help' to cli...@li... You can reach the person managing the list at cli...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of clisp-cvs digest..." CLISP CVS commits for today Today's Topics: 1. clisp/modules/syscalls/glm4 bison.m4, NONE, 1.1 clock_time.m4, NONE, 1.1 error.m4, NONE, 1.1 getdate.m4, NONE, 1.1 gettime.m4, NONE, 1.1 inline.m4, NONE, 1.1 timespec.m4, NONE, 1.1 xalloc.m4, NONE, 1.1 gnulib-cache.m4, 1.11, 1.12 gnulib-comp.m4, 1.12, 1.13 (Sam Steingold) 2. clisp/src ChangeLog,1.7533,1.7534 NEWS,1.548,1.549 (Sam Steingold) 3. clisp Makefile.devel,1.283,1.284 (Sam Steingold) 4. clisp/modules/syscalls calls.c, 1.315, 1.316 configure.in, 1.92, 1.93 syscalls.xml, 1.134, 1.135 (Sam Steingold) 5. clisp/modules/syscalls/gllib c-ctype.c, NONE, 1.1 c-ctype.h, NONE, 1.1 getdate.h, NONE, 1.1 getdate.y, NONE, 1.1 gettext.h, NONE, 1.1 gettime.c, NONE, 1.1 timespec.h, NONE, 1.1 xalloc.h, NONE, 1.1 xmalloc.c, NONE, 1.1 Makefile.am, 1.19, 1.20 (Sam Steingold) ---------------------------------------------------------------------- Message: 1 Date: Wed, 29 Sep 2010 13:24:16 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls/glm4 bison.m4, NONE, 1.1 clock_time.m4, NONE, 1.1 error.m4, NONE, 1.1 getdate.m4, NONE, 1.1 gettime.m4, NONE, 1.1 inline.m4, NONE, 1.1 timespec.m4, NONE, 1.1 xalloc.m4, NONE, 1.1 gnulib-cache.m4, 1.11, 1.12 gnulib-comp.m4, 1.12, 1.13 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls/glm4 In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv5536/modules/syscalls/glm4 Modified Files: gnulib-cache.m4 gnulib-comp.m4 Added Files: bison.m4 clock_time.m4 error.m4 getdate.m4 gettime.m4 inline.m4 timespec.m4 xalloc.m4 Log Message: implement POSIX:GETDATE using gnulib * Makefile.devel (gnulib-imported): import getdate into syscalls * modules/syscalls/calls.c (tm_to_lisp): extract from STRING-TIME (POSIX:GETDATE, xalloc_die): implement * modules/syscalls/configure.in: call gl_GETDATE --- NEW FILE: xalloc.m4 --- # xalloc.m4 serial 16 dnl Copyright (C) 2002, 2003, 2004, 2005, 2006, 2009, 2010 Free Software dnl Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_XALLOC], [ AC_LIBOBJ([xmalloc]) gl_PREREQ_XALLOC gl_PREREQ_XMALLOC ]) # Prerequisites of lib/xalloc.h. AC_DEFUN([gl_PREREQ_XALLOC], [ AC_REQUIRE([gl_INLINE]) : ]) # Prerequisites of lib/xmalloc.c. AC_DEFUN([gl_PREREQ_XMALLOC], [ : ]) --- NEW FILE: clock_time.m4 --- # clock_time.m4 serial 10 dnl Copyright (C) 2002-2006, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # Check for clock_gettime and clock_settime, and set LIB_CLOCK_GETTIME. # For a program named, say foo, you should add a line like the following # in the corresponding Makefile.am file: # foo_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) AC_DEFUN([gl_CLOCK_TIME], [ dnl Persuade glibc and Solaris <time.h> to declare these functions. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function. # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all* # programs in the package would end up linked with that potentially-shared # library, inducing unnecessary run-time overhead. LIB_CLOCK_GETTIME= AC_SUBST([LIB_CLOCK_GETTIME]) gl_saved_libs=$LIBS AC_SEARCH_LIBS([clock_gettime], [rt posix4], [test "$ac_cv_search_clock_gettime" = "none required" || LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime]) AC_CHECK_FUNCS([clock_gettime clock_settime]) LIBS=$gl_saved_libs ]) --- NEW FILE: getdate.m4 --- # getdate.m4 serial 16 dnl Copyright (C) 2002-2006, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Define HAVE_COMPOUND_LITERALS if the C compiler supports compound literals dnl as in ISO C99. dnl Note that compound literals such as (struct s) { 3, 4 } can be used for dnl initialization of stack-allocated variables, but are not constant dnl expressions and therefore cannot be used as initializer for global or dnl static variables (even though gcc supports this in pre-C99 mode). AC_DEFUN([gl_C_COMPOUND_LITERALS], [ AC_CACHE_CHECK([for compound literals], [gl_cv_compound_literals], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[struct s { int i, j; };]], [[struct s t = (struct s) { 3, 4 }; if (t.i != 0) return 0;]])], gl_cv_compound_literals=yes, gl_cv_compound_literals=no)]) if test $gl_cv_compound_literals = yes; then AC_DEFINE([HAVE_COMPOUND_LITERALS], [1], [Define if you have compound literals.]) fi ]) AC_DEFUN([gl_GETDATE], [ dnl Prerequisites of lib/getdate.h. AC_REQUIRE([AM_STDBOOL_H]) AC_REQUIRE([gl_TIMESPEC]) dnl Prerequisites of lib/getdate.y. AC_REQUIRE([gl_BISON]) AC_REQUIRE([gl_C_COMPOUND_LITERALS]) AC_STRUCT_TIMEZONE AC_REQUIRE([gl_CLOCK_TIME]) AC_REQUIRE([gl_TM_GMTOFF]) AC_COMPILE_IFELSE( [AC_LANG_SOURCE([[ #include <time.h> /* for time_t */ #include <limits.h> /* for CHAR_BIT, LONG_MIN, LONG_MAX */ #define TYPE_MINIMUM(t) \ ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) #define TYPE_MAXIMUM(t) \ ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) typedef int verify_min[2 * (LONG_MIN <= TYPE_MINIMUM (time_t)) - 1]; typedef int verify_max[2 * (TYPE_MAXIMUM (time_t) <= LONG_MAX) - 1]; ]])], [AC_DEFINE([TIME_T_FITS_IN_LONG_INT], [1], [Define to 1 if all 'time_t' values fit in a 'long int'.]) ]) ]) --- NEW FILE: inline.m4 --- # inline.m4 serial 4 dnl Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Test for the 'inline' keyword or equivalent. dnl Define 'inline' to a supported equivalent, or to nothing if not supported, dnl like AC_C_INLINE does. Also, define HAVE_INLINE if 'inline' or an dnl equivalent is effectively supported, i.e. if the compiler is likely to dnl drop unused 'static inline' functions. AC_DEFUN([gl_INLINE], [ AC_REQUIRE([AC_C_INLINE]) AC_CACHE_CHECK([whether the compiler generally respects inline], [gl_cv_c_inline_effective], [if test $ac_cv_c_inline = no; then gl_cv_c_inline_effective=no else dnl GCC defines __NO_INLINE__ if not optimizing or if -fno-inline is dnl specified. dnl Use AC_COMPILE_IFELSE here, not AC_EGREP_CPP, because the result dnl depends on optimization flags, which can be in CFLAGS. dnl (AC_EGREP_CPP looks only at the CPPFLAGS.) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[]], [[#ifdef __NO_INLINE__ #error "inline is not effective" #endif]])], [gl_cv_c_inline_effective=yes], [gl_cv_c_inline_effective=no]) fi ]) if test $gl_cv_c_inline_effective = yes; then AC_DEFINE([HAVE_INLINE], [1], [Define to 1 if the compiler supports one of the keywords 'inline', '__inline__', '__inline' and effectively inlines functions marked as such.]) fi ]) Index: gnulib-comp.m4 =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/glm4/gnulib-comp.m4,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- gnulib-comp.m4 28 Sep 2010 18:43:29 -0000 1.12 +++ gnulib-comp.m4 29 Sep 2010 13:24:14 -0000 1.13 @@ -29,7 +29,12 @@ # Code from module alignof: # Code from module arg-nonnull: # Code from module c++defs: + # Code from module c-ctype: + # Code from module clock-time: + # Code from module getdate: # Code from module gethostname: + # Code from module gettime: + # Code from module inline: # Code from module intprops: # Code from module mbrlen: # Code from module mktime: @@ -45,9 +50,11 @@ # Code from module sys_utsname: # Code from module time: # Code from module time_r: + # Code from module timespec: # Code from module uname: # Code from module unistd: # Code from module warn-on-use: + # Code from module xalloc: ]) # This macro should be invoked from ./configure.ac, in the section @@ -69,9 +76,18 @@ # Code from module alignof: # Code from module arg-nonnull: # Code from module c++defs: + # Code from module c-ctype: + # Code from module clock-time: + gl_CLOCK_TIME + # Code from module getdate: + gl_GETDATE # Code from module gethostname: gl_FUNC_GETHOSTNAME gl_UNISTD_MODULE_INDICATOR([gethostname]) + # Code from module gettime: + gl_GETTIME + # Code from module inline: + gl_INLINE # Code from module intprops: # Code from module mbrlen: gl_FUNC_MBRLEN @@ -109,13 +125,16 @@ # Code from module time_r: gl_TIME_R gl_TIME_MODULE_INDICATOR([time_r]) + # Code from module timespec: + gl_TIMESPEC # Code from module uname: gl_FUNC_UNAME gl_SYS_UTSNAME_MODULE_INDICATOR([uname]) # Code from module unistd: gl_UNISTD_H # Code from module warn-on-use: - # Code from module dummy: + # Code from module xalloc: + gl_XALLOC # End of code from modules m4_ifval(sc_gl_LIBSOURCES_LIST, [ m4_syscmd([test ! -d ]m4_defn([sc_gl_LIBSOURCES_DIR])[ || @@ -259,9 +278,14 @@ build-aux/arg-nonnull.h build-aux/c++defs.h build-aux/warn-on-use.h + doc/getdate.texi lib/alignof.h - lib/dummy.c + lib/c-ctype.c + lib/c-ctype.h + lib/getdate.h + lib/getdate.y lib/gethostname.c + lib/gettime.c lib/intprops.h lib/mbrlen.c lib/mktime-internal.h @@ -279,12 +303,20 @@ lib/sys_utsname.in.h lib/time.in.h lib/time_r.c + lib/timespec.h lib/uname.c lib/unistd.in.h lib/w32sock.h + lib/xalloc.h + lib/xmalloc.c m4/00gnulib.m4 + m4/bison.m4 + m4/clock_time.m4 + m4/getdate.m4 m4/gethostname.m4 + m4/gettime.m4 m4/gnulib-common.m4 + m4/inline.m4 m4/mbrlen.m4 m4/mbstate_t.m4 m4/mktime.m4 @@ -301,9 +333,11 @@ m4/sys_utsname_h.m4 m4/time_h.m4 m4/time_r.m4 + m4/timespec.m4 m4/tm_gmtoff.m4 m4/uname.m4 m4/unistd_h.m4 m4/warn-on-use.m4 m4/wchar_t.m4 + m4/xalloc.m4 ]) --- NEW FILE: bison.m4 --- # serial 5 # Copyright (C) 2002, 2005, 2009, 2010 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_BISON], [ # getdate.y works with bison only. : ${YACC='bison -y'} dnl dnl Declaring YACC & YFLAGS precious will not be necessary after GNULIB dnl requires an Autoconf greater than 2.59c, but it will probably still be dnl useful to override the description of YACC in the --help output, re dnl getdate.y assuming `bison -y'. AC_ARG_VAR([YACC], [The `Yet Another C Compiler' implementation to use. Defaults to `bison -y'. Values other than `bison -y' will most likely break on most systems.])dnl AC_ARG_VAR([YFLAGS], [YFLAGS contains the list arguments that will be passed by default to Bison. This script will default YFLAGS to the empty string to avoid a default value of `-d' given by some make applications.])dnl ]) Index: gnulib-cache.m4 =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/glm4/gnulib-cache.m4,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- gnulib-cache.m4 28 Sep 2010 18:43:29 -0000 1.11 +++ gnulib-cache.m4 29 Sep 2010 13:24:14 -0000 1.12 @@ -15,11 +15,12 @@ # Specification in the form of a command-line invocation: -# gnulib-tool --import --dir=. --lib=libgnu --source-base=modules/syscalls/gllib --m4-base=modules/syscalls/glm4 --doc-base=doc --tests-base=tests --aux-dir=src/build-aux --avoid=no-c++ --avoid=stdint --avoid=stdbool --avoid=havelib --avoid=gettext --avoid=localcharset --avoid=uniwidth/width --avoid=streq --avoid=uniname/uniname --avoid=unitypes --avoid=link-follow --avoid=host-cpu-c-abi --avoid=socklen --avoid=sockets --avoid=close-hook --avoid=setenv --avoid=unsetenv --avoid=errno --avoid=nocrash --avoid=libsigsegv --avoid=gnu-make --avoid=gettimeofday --avoid=getpagesize --avoid=sys_time --avoid=sys_wait --avoid=alloca-opt --avoid=alloca --avoid=extensions --avoid=include_next --avoid=verify --avoid=string --avoid=mbsinit --avoid=wchar --avoid=wctype --avoid=mbrtowc --avoid=mbsrtowcs --avoid=memchr --avoid=nl_langinfo --no-libtool --macro-prefix=sc_gl --no-vc-files mktime strerror strftime strptime strverscmp uname +# gnulib-tool --import --dir=. --lib=libgnu --source-base=modules/syscalls/gllib --m4-base=modules/syscalls/glm4 --doc-base=doc --tests-base=tests --aux-dir=src/build-aux --avoid=no-c++ --avoid=stdint --avoid=stdbool --avoid=havelib --avoid=gettext --avoid=localcharset --avoid=uniwidth/width --avoid=streq --avoid=uniname/uniname --avoid=unitypes --avoid=link-follow --avoid=host-cpu-c-abi --avoid=socklen --avoid=sockets --avoid=close-hook --avoid=setenv --avoid=unsetenv --avoid=errno --avoid=nocrash --avoid=libsigsegv --avoid=gnu-make --avoid=gettimeofday --avoid=getpagesize --avoid=sys_time --avoid=sys_wait --avoid=alloca-opt --avoid=alloca --avoid=extensions --avoid=include_next --avoid=verify --avoid=string --avoid=mbsinit --avoid=wchar --avoid=wctype --avoid=mbrtowc --avoid=mbsrtowcs --avoid=memchr --avoid=nl_langinfo --avoid=xalloc-die --no-libtool --macro-prefix=sc_gl --no-vc-files getdate mktime strerror strftime strptime strverscmp uname # Specification in the form of a few gnulib-tool.m4 macro invocations: gl_LOCAL_DIR([]) gl_MODULES([ + getdate mktime strerror strftime @@ -27,7 +28,7 @@ strverscmp uname ]) -gl_AVOID([ no-c++ stdint stdbool havelib gettext localcharset uniwidth/width streq uniname/uniname unitypes link-follow host-cpu-c-abi socklen sockets close-hook setenv unsetenv errno nocrash libsigsegv gnu-make gettimeofday getpagesize sys_time sys_wait alloca-opt alloca extensions include_next verify string mbsinit wchar wctype mbrtowc mbsrtowcs memchr nl_langinfo]) +gl_AVOID([ no-c++ stdint stdbool havelib gettext localcharset uniwidth/width streq uniname/uniname unitypes link-follow host-cpu-c-abi socklen sockets close-hook setenv unsetenv errno nocrash libsigsegv gnu-make gettimeofday getpagesize sys_time sys_wait alloca-opt alloca extensions include_next verify string mbsinit wchar wctype mbrtowc mbsrtowcs memchr nl_langinfo xalloc-die]) gl_SOURCE_BASE([modules/syscalls/gllib]) gl_M4_BASE([modules/syscalls/glm4]) gl_PO_BASE([]) --- NEW FILE: gettime.m4 --- # gettime.m4 serial 7 dnl Copyright (C) 2002, 2004-2006, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_GETTIME], [ AC_LIBOBJ([gettime]) dnl Prerequisites of lib/gettime.c. AC_REQUIRE([gl_CLOCK_TIME]) AC_REQUIRE([gl_TIMESPEC]) AC_CHECK_FUNCS_ONCE([gettimeofday nanotime]) ]) --- NEW FILE: error.m4 --- #serial 13 # Copyright (C) 1996-1998, 2001-2004, 2009-2010 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_ERROR], [ AC_FUNC_ERROR_AT_LINE dnl Note: AC_FUNC_ERROR_AT_LINE does AC_LIBSOURCES([error.h, error.c]). gl_PREREQ_ERROR ]) # Redefine AC_FUNC_ERROR_AT_LINE, because it is no longer maintained in # Autoconf. AC_DEFUN([AC_FUNC_ERROR_AT_LINE], [ AC_LIBSOURCES([error.h, error.c])dnl AC_CACHE_CHECK([for error_at_line], [ac_cv_lib_error_at_line], [AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include <error.h>]], [[error_at_line (0, 0, "", 0, "an error occurred");]])], [ac_cv_lib_error_at_line=yes], [ac_cv_lib_error_at_line=no])]) if test $ac_cv_lib_error_at_line = no; then AC_LIBOBJ([error]) fi ]) # Prerequisites of lib/error.c. AC_DEFUN([gl_PREREQ_ERROR], [ AC_REQUIRE([AC_FUNC_STRERROR_R]) AC_REQUIRE([AC_C_INLINE]) : ]) --- NEW FILE: timespec.m4 --- #serial 14 # Copyright (C) 2000-2001, 2003-2007, 2009-2010 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. dnl From Jim Meyering AC_DEFUN([gl_TIMESPEC], [ dnl Prerequisites of lib/timespec.h. AC_REQUIRE([AC_C_INLINE]) ]) ------------------------------ Message: 2 Date: Wed, 29 Sep 2010 13:24:16 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src ChangeLog,1.7533,1.7534 NEWS,1.548,1.549 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv5536/src Modified Files: ChangeLog NEWS Log Message: implement POSIX:GETDATE using gnulib * Makefile.devel (gnulib-imported): import getdate into syscalls * modules/syscalls/calls.c (tm_to_lisp): extract from STRING-TIME (POSIX:GETDATE, xalloc_die): implement * modules/syscalls/configure.in: call gl_GETDATE Index: NEWS =================================================================== RCS file: /cvsroot/clisp/clisp/src/NEWS,v retrieving revision 1.548 retrieving revision 1.549 diff -u -d -r1.548 -r1.549 --- NEWS 28 Sep 2010 20:40:40 -0000 1.548 +++ NEWS 29 Sep 2010 13:24:14 -0000 1.549 @@ -27,6 +27,9 @@ * New function POSIX:FILE-TREE-WALK calls nftw(). See <http://clisp.cons.org/impnotes/syscalls.html#file-tree-walk> for details. +* New function POSIX:GETDATE calls getdate(). + See <http://clisp.cons.org/impnotes/syscalls.html#getdate> for details + * FFI now converts REALs to FLOATs automatically as necessary. * Bug fixes: Index: ChangeLog =================================================================== RCS file: /cvsroot/clisp/clisp/src/ChangeLog,v retrieving revision 1.7533 retrieving revision 1.7534 diff -u -d -r1.7533 -r1.7534 --- ChangeLog 28 Sep 2010 20:40:40 -0000 1.7533 +++ ChangeLog 29 Sep 2010 13:24:14 -0000 1.7534 @@ -1,5 +1,22 @@ 2010-09-28 Sam Steingold <sd...@gn...> + implement POSIX:GETDATE using gnulib + * Makefile.devel (gnulib-imported): import getdate into syscalls + * modules/syscalls/calls.c (tm_to_lisp): extract from STRING-TIME + (POSIX:GETDATE, xalloc_die): implement + * modules/syscalls/configure.in: call gl_GETDATE + * modules/syscalls/gllib/c-ctype.c, modules/syscalls/gllib/c-ctype.h: + * modules/syscalls/gllib/getdate.h, modules/syscalls/gllib/getdate.y: + * modules/syscalls/gllib/gettext.h, modules/syscalls/gllib/gettime.c: + * modules/syscalls/gllib/timespec.h, modules/syscalls/gllib/xalloc.h: + * modules/syscalls/gllib/xmalloc.c, modules/syscalls/glm4/bison.m4: + * modules/syscalls/glm4/clock_time.m4, modules/syscalls/glm4/error.m4: + * modules/syscalls/glm4/getdate.m4, modules/syscalls/glm4/gettime.m4: + * modules/syscalls/glm4/inline.m4, modules/syscalls/glm4/timespec.m4: + * modules/syscalls/glm4/xalloc.m4: add + +2010-09-28 Sam Steingold <sd...@gn...> + fix bug#3076160: pass the top-level configure arguments --build= & --host= to the module configures * makemake.in (module_configure_flags): ------------------------------ Message: 3 Date: Wed, 29 Sep 2010 13:24:16 +0000 From: Sam Steingold <sd...@us...> Subject: clisp Makefile.devel,1.283,1.284 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv5536 Modified Files: Makefile.devel Log Message: implement POSIX:GETDATE using gnulib * Makefile.devel (gnulib-imported): import getdate into syscalls * modules/syscalls/calls.c (tm_to_lisp): extract from STRING-TIME (POSIX:GETDATE, xalloc_die): implement * modules/syscalls/configure.in: call gl_GETDATE Index: Makefile.devel =================================================================== RCS file: /cvsroot/clisp/clisp/Makefile.devel,v retrieving revision 1.283 retrieving revision 1.284 diff -u -d -r1.283 -r1.284 --- Makefile.devel 28 Sep 2010 19:26:41 -0000 1.283 +++ Makefile.devel 29 Sep 2010 13:24:14 -0000 1.284 @@ -397,8 +397,10 @@ $(GNULIB_COMMON) | tee -a $(GNULIB_IMPORTED_LOG) $(GNULIB_TOOL) --source-base=modules/syscalls/gllib \ --macro-prefix=sc_gl --m4-base=modules/syscalls/glm4 \ - $(GNULIB_AVOID) mktime strftime strptime strverscmp uname \ - strerror | tee -a $(GNULIB_IMPORTED_LOG) + $(GNULIB_AVOID) --avoid=xalloc-die \ + mktime strftime strptime strverscmp uname \ + strerror getdate | tee -a $(GNULIB_IMPORTED_LOG) + $(RM) doc/getdate.texi $(GNULIB_TOOL) --source-base=modules/regexp/gllib \ --macro-prefix=rx_gl --m4-base=modules/regexp/glm4 \ $(GNULIB_AVOID) regex | tee -a $(GNULIB_IMPORTED_LOG) ------------------------------ Message: 4 Date: Wed, 29 Sep 2010 13:24:16 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls calls.c, 1.315, 1.316 configure.in, 1.92, 1.93 syscalls.xml, 1.134, 1.135 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv5536/modules/syscalls Modified Files: calls.c configure.in syscalls.xml Log Message: implement POSIX:GETDATE using gnulib * Makefile.devel (gnulib-imported): import getdate into syscalls * modules/syscalls/calls.c (tm_to_lisp): extract from STRING-TIME (POSIX:GETDATE, xalloc_die): implement * modules/syscalls/configure.in: call gl_GETDATE Index: calls.c =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/calls.c,v retrieving revision 1.315 retrieving revision 1.316 diff -u -d -r1.315 -r1.316 --- calls.c 28 Sep 2010 18:43:29 -0000 1.315 +++ calls.c 29 Sep 2010 13:24:14 -0000 1.316 @@ -547,6 +547,17 @@ #endif /* HAVE_SYSLOG */ /* ========================== time conversion ========================== */ +/* call ENCODE-UNIVERSAL-TIME on struct tm and timezone */ +static Values tm_to_lisp (struct tm *tm, object timezone) { + pushSTACK(fixnum(tm.tm_sec)); + pushSTACK(fixnum(tm.tm_min)); + pushSTACK(fixnum(tm.tm_hour)); + pushSTACK(fixnum(tm.tm_mday)); + pushSTACK(fixnum(1+tm.tm_mon)); + pushSTACK(fixnum(1900+tm.tm_year)); + pushSTACK(timezone); + funcall(S(encode_universal_time),7); +} DEFUN(POSIX:STRING-TIME, format &optional datum timezone) { /* http://www.opengroup.org/onlinepubs/009695399/functions/strptime.html http://www.opengroup.org/onlinepubs/009695399/functions/strftime.html */ @@ -572,15 +583,7 @@ pushSTACK(TheSubr(subr_self)->name); error(error_condition,GETTEXT("~S: invalid format ~S or datum ~S")); } - pushSTACK(fixnum(tm.tm_sec)); - pushSTACK(fixnum(tm.tm_min)); - pushSTACK(fixnum(tm.tm_hour)); - pushSTACK(fixnum(tm.tm_mday)); - pushSTACK(fixnum(1+tm.tm_mon)); - pushSTACK(fixnum(1900+tm.tm_year)); - pushSTACK(STACK_(0+6)); /* timezone */ - funcall(S(encode_universal_time),7); - /* value1 from ENCODE-UNIVERSAL-TIME */ + tm_to_lisp(&tm,STACK_0); /* set value1 */ value2 = tm.tm_isdst > 0 ? T : NIL; value3 = fixnum(offset); mv_count = 3; @@ -616,6 +619,34 @@ } else error_string_integer(STACK_1); } +nonreturning_function(extern, xalloc_die, (void)) { + pushSTACK(TheSubr(subr_self)->name); + error(storage_condition,GETTEXT("~S: malloc() failed")); +} + +DEFUN(POSIX:GETDATE, timespec &optional timezone) +{ /* http://www.opengroup.org/onlinepubs/009695399/functions/getdate.html */ + struct tm *tm; + getdate_restart: + STACK_1 = check_string(STACK_1); + with_string_0(STACK_1,GLO(misc_encoding),timespec, { + begin_system_call(); + tm = getdate(timespec); + end_system_call(); + }); + if (tm == NULL) { + pushSTACK(NIL); /* no PLACE */ + pushSTACK(fixnum(getdate_err)); + pushSTACK(STACK_(1+2)); + pushSTACK(TheSubr(subr_self)->name); + check_value(error_condition,GETTEXT("~S(~S): getdate error ~S")); + STACK_1 = value1; + goto getdate_restart; + } + tm_to_lisp(tm,STACK_0); + skipSTACK(2); +} + /* ========================== string comparison ========================== */ /* call strverscmp() on STACK_0 & STACK_1 and remove them from STACK */ static /*maygc*/ int string_version_compare (void) { Index: syscalls.xml =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/syscalls.xml,v retrieving revision 1.134 retrieving revision 1.135 diff -u -d -r1.134 -r1.135 --- syscalls.xml 21 Sep 2010 16:09:48 -0000 1.134 +++ syscalls.xml 29 Sep 2010 13:24:14 -0000 1.135 @@ -821,15 +821,21 @@ <listitem><simpara>Calls <function role="unix">setutxent</function>. </simpara></listitem></varlistentry></variablelist></section> -<section id="strtime"><title>Time conversion</title> -<para><code>(OS:STRING-TIME &fmt-r; &optional-amp; &object-r; timezone)</code> - <itemizedlist><listitem><simpara>When &object-r; is a &string-t;, is is - parsed according to &fmt-r; by <function role="unix">strptime</function>. - </simpara></listitem><listitem><simpara>When it is an &integer-t;, it - is formatted according to &fmt-r; by - <function role="unix">strftime</function>. +<section id="posix-time"><title>Time and Data Conversion</title> +<variablelist><varlistentry id="strtime"><term><code>(OS:STRING-TIME + &fmt-r; &optional-amp; &object-r; timezone)</code></term> + <listitem><itemizedlist><listitem><simpara>When &object-r; is a &string-t;, + it is parsed into a universal time according to &fmt-r; by + <function role="unix">strptime</function>.</simpara></listitem> + <listitem><simpara>When it is an &integer-t;, it is formatted according + to &fmt-r; by <function role="unix">strftime</function>. &object-r; defaults to <code>(&get-universal-time;)</code>. -</simpara></listitem></itemizedlist></para></section> +</simpara></listitem></itemizedlist></listitem></varlistentry> +<varlistentry id="getdate"><term><code>(OS:GETDATE &string-r; + &optional-amp; timezone)</code></term> + <listitem><simpara>Parse the &string-r; into a universal time using + <function role="unix">getdate</function>.</simpara></listitem></varlistentry> +</variablelist></section> <section id="strverscmp"><title>String comparision</title> <para>Functions <simplelist columns="1"> Index: configure.in =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/configure.in,v retrieving revision 1.92 retrieving revision 1.93 diff -u -d -r1.92 -r1.93 --- configure.in 28 Sep 2010 18:43:29 -0000 1.92 +++ configure.in 29 Sep 2010 13:24:14 -0000 1.93 @@ -57,6 +57,7 @@ gl_FUNC_GNU_STRFTIME gl_FUNC_STRPTIME gl_TIME_MODULE_INDICATOR([strptime]) +gl_GETDATE gl_FUNC_STRVERSCMP gl_STRING_MODULE_INDICATOR([strverscmp]) gl_FUNC_UNAME ------------------------------ Message: 5 Date: Wed, 29 Sep 2010 13:24:16 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls/gllib c-ctype.c, NONE, 1.1 c-ctype.h, NONE, 1.1 getdate.h, NONE, 1.1 getdate.y, NONE, 1.1 gettext.h, NONE, 1.1 gettime.c, NONE, 1.1 timespec.h, NONE, 1.1 xalloc.h, NONE, 1.1 xmalloc.c, NONE, 1.1 Makefile.am, 1.19, 1.20 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls/gllib In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv5536/modules/syscalls/gllib Modified Files: Makefile.am Added Files: c-ctype.c c-ctype.h getdate.h getdate.y gettext.h gettime.c timespec.h xalloc.h xmalloc.c Log Message: implement POSIX:GETDATE using gnulib * Makefile.devel (gnulib-imported): import getdate into syscalls * modules/syscalls/calls.c (tm_to_lisp): extract from STRING-TIME (POSIX:GETDATE, xalloc_die): implement * modules/syscalls/configure.in: call gl_GETDATE --- NEW FILE: c-ctype.h --- /* Character handling in C locale. These functions work like the corresponding functions in <ctype.h>, except that they have the C (POSIX) locale hardwired, whereas the <ctype.h> functions' behaviour depends on the current locale set via setlocale. Copyright (C) 2000-2003, 2006, 2008-2010 Free Software Foundation, Inc. This program 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; either version 3 of the License, or (at your option) any later version. This program 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 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef C_CTYPE_H #define C_CTYPE_H #include <stdbool.h> #ifdef __cplusplus extern "C" { #endif /* The functions defined in this file assume the "C" locale and a character set without diacritics (ASCII-US or EBCDIC-US or something like that). Even if the "C" locale on a particular system is an extension of the ASCII character set (like on BeOS, where it is UTF-8, or on AmigaOS, where it is ISO-8859-1), the functions in this file recognize only the ASCII characters. */ /* Check whether the ASCII optimizations apply. */ /* ANSI C89 (and ISO C99 5.2.1.3 too) already guarantees that '0', '1', ..., '9' have consecutive integer values. */ #define C_CTYPE_CONSECUTIVE_DIGITS 1 #if ('A' <= 'Z') \ && ('A' + 1 == 'B') && ('B' + 1 == 'C') && ('C' + 1 == 'D') \ && ('D' + 1 == 'E') && ('E' + 1 == 'F') && ('F' + 1 == 'G') \ && ('G' + 1 == 'H') && ('H' + 1 == 'I') && ('I' + 1 == 'J') \ && ('J' + 1 == 'K') && ('K' + 1 == 'L') && ('L' + 1 == 'M') \ && ('M' + 1 == 'N') && ('N' + 1 == 'O') && ('O' + 1 == 'P') \ && ('P' + 1 == 'Q') && ('Q' + 1 == 'R') && ('R' + 1 == 'S') \ && ('S' + 1 == 'T') && ('T' + 1 == 'U') && ('U' + 1 == 'V') \ && ('V' + 1 == 'W') && ('W' + 1 == 'X') && ('X' + 1 == 'Y') \ && ('Y' + 1 == 'Z') #define C_CTYPE_CONSECUTIVE_UPPERCASE 1 #endif #if ('a' <= 'z') \ && ('a' + 1 == 'b') && ('b' + 1 == 'c') && ('c' + 1 == 'd') \ && ('d' + 1 == 'e') && ('e' + 1 == 'f') && ('f' + 1 == 'g') \ && ('g' + 1 == 'h') && ('h' + 1 == 'i') && ('i' + 1 == 'j') \ && ('j' + 1 == 'k') && ('k' + 1 == 'l') && ('l' + 1 == 'm') \ && ('m' + 1 == 'n') && ('n' + 1 == 'o') && ('o' + 1 == 'p') \ && ('p' + 1 == 'q') && ('q' + 1 == 'r') && ('r' + 1 == 's') \ && ('s' + 1 == 't') && ('t' + 1 == 'u') && ('u' + 1 == 'v') \ && ('v' + 1 == 'w') && ('w' + 1 == 'x') && ('x' + 1 == 'y') \ && ('y' + 1 == 'z') #define C_CTYPE_CONSECUTIVE_LOWERCASE 1 #endif #if (' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \ && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \ && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \ && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \ && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \ && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \ && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \ && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \ && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \ && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \ && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \ && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \ && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \ && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \ && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \ && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \ && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \ && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \ && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \ && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \ && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126) /* The character set is ASCII or one of its variants or extensions, not EBCDIC. Testing the value of '\n' and '\r' is not relevant. */ #define C_CTYPE_ASCII 1 #endif /* Function declarations. */ /* Unlike the functions in <ctype.h>, which require an argument in the range of the 'unsigned char' type, the functions here operate on values that are in the 'unsigned char' range or in the 'char' range. In other words, when you have a 'char' value, you need to cast it before using it as argument to a <ctype.h> function: const char *s = ...; if (isalpha ((unsigned char) *s)) ... but you don't need to cast it for the functions defined in this file: const char *s = ...; if (c_isalpha (*s)) ... */ extern bool c_isascii (int c); /* not locale dependent */ extern bool c_isalnum (int c); extern bool c_isalpha (int c); extern bool c_isblank (int c); extern bool c_iscntrl (int c); extern bool c_isdigit (int c); extern bool c_islower (int c); extern bool c_isgraph (int c); extern bool c_isprint (int c); extern bool c_ispunct (int c); extern bool c_isspace (int c); extern bool c_isupper (int c); extern bool c_isxdigit (int c); extern int c_tolower (int c); extern int c_toupper (int c); #if defined __GNUC__ && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__ && !defined NO_C_CTYPE_MACROS /* ASCII optimizations. */ #undef c_isascii #define c_isascii(c) \ ({ int __c = (c); \ (__c >= 0x00 && __c <= 0x7f); \ }) #if C_CTYPE_CONSECUTIVE_DIGITS \ && C_CTYPE_CONSECUTIVE_UPPERCASE && C_CTYPE_CONSECUTIVE_LOWERCASE #if C_CTYPE_ASCII #undef c_isalnum #define c_isalnum(c) \ ({ int __c = (c); \ ((__c >= '0' && __c <= '9') \ || ((__c & ~0x20) >= 'A' && (__c & ~0x20) <= 'Z')); \ }) #else #undef c_isalnum #define c_isalnum(c) \ ({ int __c = (c); \ ((__c >= '0' && __c <= '9') \ || (__c >= 'A' && __c <= 'Z') \ || (__c >= 'a' && __c <= 'z')); \ }) #endif #endif #if C_CTYPE_CONSECUTIVE_UPPERCASE && C_CTYPE_CONSECUTIVE_LOWERCASE #if C_CTYPE_ASCII #undef c_isalpha #define c_isalpha(c) \ ({ int __c = (c); \ ((__c & ~0x20) >= 'A' && (__c & ~0x20) <= 'Z'); \ }) #else #undef c_isalpha #define c_isalpha(c) \ ({ int __c = (c); \ ((__c >= 'A' && __c <= 'Z') || (__c >= 'a' && __c <= 'z')); \ }) #endif #endif #undef c_isblank #define c_isblank(c) \ ({ int __c = (c); \ (__c == ' ' || __c == '\t'); \ }) #if C_CTYPE_ASCII #undef c_iscntrl #define c_iscntrl(c) \ ({ int __c = (c); \ ((__c & ~0x1f) == 0 || __c == 0x7f); \ }) #endif #if C_CTYPE_CONSECUTIVE_DIGITS #undef c_isdigit #define c_isdigit(c) \ ({ int __c = (c); \ (__c >= '0' && __c <= '9'); \ }) #endif #if C_CTYPE_CONSECUTIVE_LOWERCASE #undef c_islower #define c_islower(c) \ ({ int __c = (c); \ (__c >= 'a' && __c <= 'z'); \ }) #endif #if C_CTYPE_ASCII #undef c_isgraph #define c_isgraph(c) \ ({ int __c = (c); \ (__c >= '!' && __c <= '~'); \ }) #endif #if C_CTYPE_ASCII #undef c_isprint #define c_isprint(c) \ ({ int __c = (c); \ (__c >= ' ' && __c <= '~'); \ }) #endif #if C_CTYPE_ASCII #undef c_ispunct #define c_ispunct(c) \ ({ int _c = (c); \ (c_isgraph (_c) && ! c_isalnum (_c)); \ }) #endif #undef c_isspace #define c_isspace(c) \ ({ int __c = (c); \ (__c == ' ' || __c == '\t' \ || __c == '\n' || __c == '\v' || __c == '\f' || __c == '\r'); \ }) #if C_CTYPE_CONSECUTIVE_UPPERCASE #undef c_isupper #define c_isupper(c) \ ({ int __c = (c); \ (__c >= 'A' && __c <= 'Z'); \ }) #endif #if C_CTYPE_CONSECUTIVE_DIGITS \ && C_CTYPE_CONSECUTIVE_UPPERCASE && C_CTYPE_CONSECUTIVE_LOWERCASE #if C_CTYPE_ASCII #undef c_isxdigit #define c_isxdigit(c) \ ({ int __c = (c); \ ((__c >= '0' && __c <= '9') \ || ((__c & ~0x20) >= 'A' && (__c & ~0x20) <= 'F')); \ }) #else #undef c_isxdigit #define c_isxdigit(c) \ ({ int __c = (c); \ ((__c >= '0' && __c <= '9') \ || (__c >= 'A' && __c <= 'F') \ || (__c >= 'a' && __c <= 'f')); \ }) #endif #endif #if C_CTYPE_CONSECUTIVE_UPPERCASE && C_CTYPE_CONSECUTIVE_LOWERCASE #undef c_tolower #define c_tolower(c) \ ({ int __c = (c); \ (__c >= 'A' && __c <= 'Z' ? __c - 'A' + 'a' : __c); \ }) #undef c_toupper #define c_toupper(c) \ ({ int __c = (c); \ (__c >= 'a' && __c <= 'z' ? __c - 'a' + 'A' : __c); \ }) #endif #endif /* optimizing for speed */ #ifdef __cplusplus } #endif #endif /* C_CTYPE_H */ --- NEW FILE: getdate.y --- %{ /* Parse a string into an internal time stamp. Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. This program 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; either version 3 of the License, or (at your option) any later version. This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */ [...1533 lines suppressed...] if (! get_date (&d, buff, NULL)) printf ("Bad format - couldn't convert.\n"); else if (! (tm = localtime (&d.tv_sec))) { long int sec = d.tv_sec; printf ("localtime (%ld) failed\n", sec); } else { int ns = d.tv_nsec; printf ("%04ld-%02d-%02d %02d:%02d:%02d.%09d\n", tm->tm_year + 1900L, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, ns); } printf ("\t> "); fflush (stdout); } return 0; } #endif /* TEST */ --- NEW FILE: gettime.c --- /* gettime -- get the system clock Copyright (C) 2002, 2004-2007, 2009-2010 Free Software Foundation, Inc. This program 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; either version 3 of the License, or (at your option) any later version. This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */ /* Written by Paul Eggert. */ #include <config.h> #include "timespec.h" #include <sys/time.h> /* Get the system time into *TS. */ void gettime (struct timespec *ts) { #if HAVE_NANOTIME nanotime (ts); #else # if defined CLOCK_REALTIME && HAVE_CLOCK_GETTIME if (clock_gettime (CLOCK_REALTIME, ts) == 0) return; # endif { struct timeval tv; gettimeofday (&tv, NULL); ts->tv_sec = tv.tv_sec; ts->tv_nsec = tv.tv_usec * 1000; } #endif } --- NEW FILE: xmalloc.c --- /* xmalloc.c -- malloc with out of memory checking Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2008, 2009, 2010 Free Software Foundation, Inc. This program 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; either version 3 of the License, or (at your option) any later version. This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> #if ! HAVE_INLINE # define static_inline #endif #include "xalloc.h" #undef static_inline #include <stdlib.h> #include <string.h> /* 1 if calloc is known to be compatible with GNU calloc. This matters if we are not also using the calloc module, which defines HAVE_CALLOC_GNU and supports the GNU API even on non-GNU platforms. */ #if defined HAVE_CALLOC_GNU || defined __GLIBC__ enum { HAVE_GNU_CALLOC = 1 }; #else enum { HAVE_GNU_CALLOC = 0 }; #endif /* Allocate N bytes of memory dynamically, with error checking. */ void * xmalloc (size_t n) { void *p = malloc (n); if (!p && n != 0) xalloc_die (); return p; } /* Change the size of an allocated block of memory P to N bytes, with error checking. */ void * xrealloc (void *p, size_t n) { p = realloc (p, n); if (!p && n != 0) xalloc_die (); return p; } /* If P is null, allocate a block of at least *PN bytes; otherwise, reallocate P so that it contains more than *PN bytes. *PN must be nonzero unless P is null. Set *PN to the new block's size, and return the pointer to the new block. *PN is never set to zero, and the returned pointer is never null. */ void * x2realloc (void *p, size_t *pn) { return x2nrealloc (p, pn, 1); } /* Allocate S bytes of zeroed memory dynamically, with error checking. There's no need for xnzalloc (N, S), since it would be equivalent to xcalloc (N, S). */ void * xzalloc (size_t s) { return memset (xmalloc (s), 0, s); } /* Allocate zeroed memory for N elements of S bytes, with error checking. S must be nonzero. */ void * xcalloc (size_t n, size_t s) { void *p; /* Test for overflow, since some calloc implementations don't have proper overflow checks. But omit overflow and size-zero tests if HAVE_GNU_CALLOC, since GNU calloc catches overflow and never returns NULL if successful. */ if ((! HAVE_GNU_CALLOC && xalloc_oversized (n, s)) || (! (p = calloc (n, s)) && (HAVE_GNU_CALLOC || n != 0))) xalloc_die (); return p; } /* Clone an object P of size S, with error checking. There's no need for xnmemdup (P, N, S), since xmemdup (P, N * S) works without any need for an arithmetic overflow check. */ void * xmemdup (void const *p, size_t s) { return memcpy (xmalloc (s), p, s); } /* Clone STRING. */ char * xstrdup (char const *string) { return xmemdup (string, strlen (string) + 1); } --- NEW FILE: c-ctype.c --- /* Character handling in C locale. Copyright 2000-2003, 2006, 2009-2010 Free Software Foundation, Inc. This program 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; either version 3 of the License, or (at your option) any later version. This program 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 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include <config.h> /* Specification. */ #define NO_C_CTYPE_MACROS #include "c-ctype.h" /* The function isascii is not locale dependent. Its use in EBCDIC is questionable. */ bool c_isascii (int c) { return (c >= 0x00 && c <= 0x7f); } bool c_isalnum (int c) { #if C_CTYPE_CONSECUTIVE_DIGITS \ && C_CTYPE_CONSECUTIVE_UPPERCASE && C_CTYPE_CONSECUTIVE_LOWERCASE #if C_CTYPE_ASCII return ((c >= '0' && c <= '9') || ((c & ~0x20) >= 'A' && (c & ~0x20) <= 'Z')); #else return ((c >= '0' && c <= '9') || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')); #endif #else switch (c) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': return 1; default: return 0; } #endif } bool c_isalpha (int c) { #if C_CTYPE_CONSECUTIVE_UPPERCASE && C_CTYPE_CONSECUTIVE_LOWERCASE #if C_CTYPE_ASCII return ((c & ~0x20) >= 'A' && (c & ~0x20) <= 'Z'); #else return ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')); #endif #else switch (c) { case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': return 1; default: return 0; } #endif } bool c_isblank (int c) { return (c == ' ' || c == '\t'); } bool c_iscntrl (int c) { #if C_CTYPE_ASCII return ((c & ~0x1f) == 0 || c == 0x7f); #else switch (c) { case ' ': case '!': case '"': case '#': case '$': case '%': case '&': case '\'': case '(': case ')': case '*': case '+': case ',': case '-': case '.': case '/': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case ':': case ';': case '<': case '=': case '>': case '?': case '@': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case '[': case '\\': case ']': case '^': case '_': case '`': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': case '{': case '|': case '}': case '~': return 0; default: return 1; } #endif } bool c_isdigit (int c) { #if C_CTYPE_CONSECUTIVE_DIGITS return (c >= '0' && c <= '9'); #else switch (c) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': return 1; default: return 0; } #endif } bool c_islower (int c) { #if C_CTYPE_CONSECUTIVE_LOWERCASE return (c >= 'a' && c <= 'z'); #else switch (c) { case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': return 1; default: return 0; } #endif } bool c_isgraph (int c) { #if C_CTYPE_ASCII return (c >= '!' && c <= '~'); #else switch (c) { case '!': case '"': case '#': case '$': case '%': case '&': case '\'': case '(': case ')': case '*': case '+': case ',': case '-': case '.': case '/': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case ':': case ';': case '<': case '=': case '>': case '?': case '@': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case '[': case '\\': case ']': case '^': case '_': case '`': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': case '{': case '|': case '}': case '~': return 1; default: return 0; } #endif } bool c_isprint (int c) { #if C_CTYPE_ASCII return (c >= ' ' && c <= '~'); #else switch (c) { case ' ': case '!': case '"': case '#': case '$': case '%': case '&': case '\'': case '(': case ')': case '*': case '+': case ',': case '-': case '.': case '/': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case ':': case ';': case '<': case '=': case '>': case '?': case '@': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case '[': case '\\': case ']': case '^': case '_': case '`': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': case '{': case '|': case '}': case '~': return 1; default: return 0; } #endif } bool c_ispunct (int c) { #if C_CTYPE_ASCII return ((c >= '!' && c <= '~') && !((c >= '0' && c <= '9') || ((c & ~0x20) >= 'A' && (c & ~0x20) <= 'Z'))); #else switch (c) { case '!': case '"': case '#': case '$': case '%': case '&': case '\'': case '(': case ')': case '*': case '+': case ',': case '-': case '.': case '/': case ':': case ';': case '<': case '=': case '>': case '?': case '@': case '[': case '\\': case ']': case '^': case '_': case '`': case '{': case '|': case '}': case '~': return 1; default: return 0; } #endif } bool c_isspace (int c) { return (c == ' ' || c == '\t' || c == '\n' || c == '\v' || c == '\f' || c == '\r'); } bool c_isupper (int c) { #if C_CTYPE_CONSECUTIVE_UPPERCASE return (c >= 'A' && c <= 'Z'); #else switch (c) { case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': return 1; default: return 0; } #endif } bool c_isxdigit (int c) { #if C_CTYPE_CONSECUTIVE_DIGITS \ && C_CTYPE_CONSECUTIVE_UPPERCASE && C_CTYPE_CONSECUTIVE_LOWERCASE #if C_CTYPE_ASCII return ((c >= '0' && c <= '9') || ((c & ~0x20) >= 'A' && (c & ~0x20) <= 'F')); #else return ((c >= '0' && c <= '9') || (c >= 'A' && c <= 'F') || (c >= 'a' && c <= 'f')); #endif #else switch (c) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': return 1; default: return 0; } #endif } int c_tolower (int c) { #if C_CTYPE_CONSECUTIVE_UPPERCASE && C_CTYPE_CONSECUTIVE_LOWERCASE return (c >= 'A' && c <= 'Z' ? c - 'A' + 'a' : c); #else switch (c) { case 'A': return 'a'; case 'B': return 'b'; case 'C': return 'c'; case 'D': return 'd'; case 'E': return 'e'; case 'F': return 'f'; case 'G': return 'g'; case 'H': return 'h'; case 'I': return 'i'; case 'J': return 'j'; case 'K': return 'k'; case 'L': return 'l'; case 'M': return 'm'; case 'N': return 'n'; case 'O': return 'o'; case 'P': return 'p'; case 'Q': return 'q'; case 'R': return 'r'; case 'S': return 's'; case 'T': return 't'; case 'U': return 'u'; case 'V': return 'v'; case 'W': return 'w'; case 'X': return 'x'; case 'Y': return 'y'; case 'Z': return 'z'; default: return c; } #endif } int c_toupper (int c) { #if C_CTYPE_CONSECUTIVE_UPPERCASE && C_CTYPE_CONSECUTIVE_LOWERCASE return (c >= 'a' && c <= 'z' ? c - 'a' + 'A' : c); #else switch (c) { case 'a': return 'A'; case 'b': return 'B'; case 'c': return 'C'; case 'd': return 'D'; case 'e': return 'E'; case 'f': return 'F'; case 'g': return 'G'; case 'h': return 'H'; case 'i': return 'I'; case 'j': return 'J'; case 'k': return 'K'; case 'l': return 'L'; case 'm': return 'M'; case 'n': return 'N'; case 'o': return 'O'; case 'p': return 'P'; case 'q': return 'Q'; case 'r': return 'R'; case 's': return 'S'; case 't': return 'T'; case 'u': return 'U'; case 'v': return 'V'; case 'w': return 'W'; case 'x': return 'X'; case 'y': return 'Y'; case 'z': return 'Z'; default: return c; } #endif } --- NEW FILE: timespec.h --- /* timespec -- System time interface Copyright (C) 2000, 2002, 2004-2005, 2007, 2009-2010 Free Software Foundation, Inc. This program 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; either version 3 of the License, or (at your option) any later version. This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */ #if ! defined TIMESPEC_H # define TIMESPEC_H # include <time.h> /* Return negative, zero, positive if A < B, A == B, A > B, respectively. For each time stamp T, this code assumes that either: * T.tv_nsec is in the range 0..999999999; or * T.tv_sec corresponds to a valid leap second on a host that supports leap seconds, and T.tv_nsec is in the range 1000000000..1999999999; or * T.tv_sec is the minimum time_t value and T.tv_nsec is -1; or T.tv_sec is the maximum time_t value and T.tv_nsec is 2000000000. This allows for special struct timespec values that are less or greater than all possible valid time stamps. In all these cases, it is safe to subtract two tv_nsec values and convert the result to integer without worrying about overflow on any platform of interest to the GNU project, since all such platforms have 32-bit int or wider. Replacing "(int) (a.tv_nsec - b.tv_nsec)" with something like "a.tv_nsec < b.tv_nsec ? -1 : a.tv_nsec > b.tv_nsec" would cause this function to work in some cases where the above assumption is violated, but not in all cases (e.g., a.tv_sec==1, a.tv_nsec==-2, b.tv_sec==0, b.tv_nsec==999999999) and is arguably not worth the extra instructions. Using a subtraction has the advantage of detecting some invalid cases on platforms that detect integer overflow. The (int) cast avoids a gcc -Wconversion warning. */ static inline int timespec_cmp (struct timespec a, struct timespec b) { return (a.tv_sec < b.tv_sec ? -1 : a.tv_sec > b.tv_sec ? 1 : (int) (a.tv_nsec - b.tv_nsec)); } void gettime (struct timespec *); int settime (struct timespec const *); #endif --- NEW FILE: getdate.h --- /* Parse a string into an internal time stamp. Copyright (C) 1995, 1997, 1998, 2003, 2004, 2007, 2009, 2010 Free Software Foundation, Inc. This program 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; either version 3 of the License, or (at your option) any later version. This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */ #include <stdbool.h> #include <time.h> bool get_date (struct timespec *, char const *, struct timespec const *); --- NEW FILE: xalloc.h --- /* xalloc.h -- malloc with out-of-memory checking Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2003, 2004, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. This program 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; either version 3 of the License, or (at your option) any later version. This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef XALLOC_H_ # define XALLOC_H_ # include <stddef.h> # ifdef __cplusplus extern "C" { # endif # ifndef __attribute__ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) # define __attribute__(x) # endif # endif # ifndef ATTRIBUTE_NORETURN # define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__)) # endif # ifndef ATTRIBUTE_MALLOC # if __GNUC__ >= 3 # define ATTRIBUTE_MALLOC __attribute__ ((__malloc__)) # else # define ATTRIBUTE_MALLOC # endif # endif /* This function is always triggered when memory is exhausted. It must be defined by the application, either explicitly or by using gnulib's xalloc-die module. This is the function to call when one wants the program to die because of a memory allocation failure. */ ... [truncated message content] |
|
From: <cli...@li...> - 2010-09-29 12:05:17
|
Send clisp-cvs mailing list submissions to cli...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/clisp-cvs or, via email, send a message with subject or body 'help' to cli...@li... You can reach the person managing the list at cli...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of clisp-cvs digest..." CLISP CVS commits for today Today's Topics: 1. clisp Makefile.devel,1.282,1.283 (Sam Steingold) 2. clisp/src/gllib Makefile.in,1.42,1.43 (Sam Steingold) 3. clisp/src configure,1.280,1.281 (Sam Steingold) 4. clisp/modules/rawsock rawsock.c,1.134,1.135 (Sam Steingold) 5. clisp/src ChangeLog,1.7531,1.7532 (Sam Steingold) 6. clisp/src ChangeLog, 1.7532, 1.7533 NEWS, 1.547, 1.548 makemake.in, 1.948, 1.949 (Sam Steingold) ---------------------------------------------------------------------- Message: 1 Date: Tue, 28 Sep 2010 19:26:44 +0000 From: Sam Steingold <sd...@us...> Subject: clisp Makefile.devel,1.282,1.283 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv8381 Modified Files: Makefile.devel Log Message: * Makefile.devel ($(MAKEMAKE_TMP)): substitute --disable-option-checking for @module_configure_flags@ * src/configure.in: substitute $ac_configure_args for @module_configure_flags * src/makemake.in (module_configure_flags): use @module_configure_flags@ instead of hard-wired --disable-option-checking Index: Makefile.devel =================================================================== RCS file: /cvsroot/clisp/clisp/Makefile.devel,v retrieving revision 1.282 retrieving revision 1.283 diff -u -d -r1.282 -r1.283 --- Makefile.devel 28 Sep 2010 18:43:29 -0000 1.282 +++ Makefile.devel 28 Sep 2010 19:26:41 -0000 1.283 @@ -45,6 +45,7 @@ . ./version.sh; \ sed -e "s/@PACKAGE_VERSION@/$${VERSION_NUMBER}/g" \ -e "s/@CLISP_DECOLONIZE@/echo $$x/" src/makemake.in \ + -e "s/@module_configure_flags@/--disable-option-checking/" \ -e "s,@SHELL@,/bin/sh," > $(MAKEMAKE_TMP) chmod a+x $(MAKEMAKE_TMP) ------------------------------ Message: 2 Date: Tue, 28 Sep 2010 19:41:04 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src/gllib Makefile.in,1.42,1.43 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src/gllib In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv12852/src/gllib Modified Files: Makefile.in Log Message: regenerate for @module_configure_flags@ Index: Makefile.in =================================================================== RCS file: /cvsroot/clisp/clisp/src/gllib/Makefile.in,v retrieving revision 1.42 retrieving revision 1.43 diff -u -d -r1.42 -r1.43 --- Makefile.in 28 Sep 2010 18:58:39 -0000 1.42 +++ Makefile.in 28 Sep 2010 19:41:02 -0000 1.43 @@ -660,6 +660,7 @@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ +module_configure_flags = @module_configure_flags@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ ------------------------------ Message: 3 Date: Tue, 28 Sep 2010 19:41:04 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src configure,1.280,1.281 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv12852/src Modified Files: configure Log Message: regenerate for @module_configure_flags@ Index: configure =================================================================== RCS file: /cvsroot/clisp/clisp/src/configure,v retrieving revision 1.280 retrieving revision 1.281 diff -u -d -r1.280 -r1.281 --- configure 28 Sep 2010 18:58:39 -0000 1.280 +++ configure 28 Sep 2010 19:41:02 -0000 1.281 @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Id: configure.in,v 1.189 2010/09/28 18:24:29 sds Exp . +# From configure.in Id: configure.in,v 1.190 2010/09/28 19:26:44 sds Exp . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.65 for GNU CLISP 2.49+ (2010-07-17). # @@ -619,6 +619,7 @@ am__EXEEXT_TRUE LTLIBOBJS LIBOBJS +module_configure_flags INCTERMCAP LIBTERMCAP X_EXTRA_LIBS @@ -33696,6 +33697,8 @@ ac_config_files="$ac_config_files po/Makefile.in gllib/Makefile" +module_configure_flags="$ac_configure_args" + ac_config_files="$ac_config_files makemake" cat >confcache <<\_ACEOF ------------------------------ Message: 4 Date: Tue, 28 Sep 2010 20:27:27 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/rawsock rawsock.c,1.134,1.135 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/rawsock In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv26146/modules/rawsock Modified Files: rawsock.c Log Message: * modules/rawsock/rawsock.c (module__rawsock__init_function_2): use _GL_UNUSED instead of the ad hoc `unused' Index: rawsock.c =================================================================== RCS file: /cvsroot/clisp/clisp/modules/rawsock/rawsock.c,v retrieving revision 1.134 retrieving revision 1.135 diff -u -d -r1.134 -r1.135 --- rawsock.c 15 Sep 2010 19:45:11 -0000 1.134 +++ rawsock.c 28 Sep 2010 20:27:25 -0000 1.135 @@ -1565,15 +1565,8 @@ VALUES1(fixnum(length)); skipSTACK(1); } -#ifdef __GNUC__ /* to prevent a gcc-warning "statement with no effect" */ -# define unused (void) -#else -# define unused -#endif - void module__rawsock__init_function_2 (module_t* module); -void module__rawsock__init_function_2 (module_t* module) { - unused module; +void module__rawsock__init_function_2 (module_t* module _GL_UNUSED) { #if defined(WIN32_NATIVE) HMODULE ws2 = LoadLibrary("ws2_32.dll"); if (ws2 != NULL) { ------------------------------ Message: 5 Date: Tue, 28 Sep 2010 20:27:29 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src ChangeLog,1.7531,1.7532 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv26146/src Modified Files: ChangeLog Log Message: * modules/rawsock/rawsock.c (module__rawsock__init_function_2): use _GL_UNUSED instead of the ad hoc `unused' Index: ChangeLog =================================================================== RCS file: /cvsroot/clisp/clisp/src/ChangeLog,v retrieving revision 1.7531 retrieving revision 1.7532 diff -u -d -r1.7531 -r1.7532 --- ChangeLog 28 Sep 2010 19:26:42 -0000 1.7531 +++ ChangeLog 28 Sep 2010 20:27:25 -0000 1.7532 @@ -1,5 +1,10 @@ 2010-09-28 Sam Steingold <sd...@gn...> + * modules/rawsock/rawsock.c (module__rawsock__init_function_2): + use _GL_UNUSED instead of the ad hoc `unused' + +2010-09-28 Sam Steingold <sd...@gn...> + * Makefile.devel ($(MAKEMAKE_TMP)): substitute --disable-option-checking for @module_configure_flags@ * configure.in: substitute $ac_configure_args ------------------------------ Message: 6 Date: Tue, 28 Sep 2010 20:40:42 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src ChangeLog, 1.7532, 1.7533 NEWS, 1.547, 1.548 makemake.in, 1.948, 1.949 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv29238/src Modified Files: ChangeLog NEWS makemake.in Log Message: fix bug#3076160: pass the top-level configure arguments --build= & --host= to the module configures * src/makemake.in (module_configure_flags): strip out -srcdir* & -cache-file* Index: NEWS =================================================================== RCS file: /cvsroot/clisp/clisp/src/NEWS,v retrieving revision 1.547 retrieving revision 1.548 diff -u -d -r1.547 -r1.548 --- NEWS 28 Sep 2010 13:49:53 -0000 1.547 +++ NEWS 28 Sep 2010 20:40:40 -0000 1.548 @@ -32,6 +32,8 @@ * Bug fixes: + Fix documentation strings handling for structs (bug#3040648). + Fix SCREEN behavior when the window is resized. + + Pass the top-level configure arguments --build= & --host= + to the module configures (bug#3076160). 2.49 (2010-07-07) Index: makemake.in =================================================================== RCS file: /cvsroot/clisp/clisp/src/makemake.in,v retrieving revision 1.948 retrieving revision 1.949 diff -u -d -r1.948 -r1.949 --- makemake.in 28 Sep 2010 19:26:44 -0000 1.948 +++ makemake.in 28 Sep 2010 20:40:40 -0000 1.949 @@ -196,6 +196,30 @@ LN_S='ln -s' HLN='ln' +# strip out -srcdir* & -cache-file* +tmp="" +keep_next=maybe +for arg in $module_configure_flags; do + case $arg in + CFLAGS* ) continue ;; + *\'*) arg="`$echo "$arg" | sed "s/'/'\\\\\\\\''/g"`" ;; + esac + case $keep_next in + yes ) tmp="$tmp '$arg'"; keep_next=maybe; ;; + no ) keep_next=maybe; ;; + maybe ) case $arg in + --cache-file=* | --srcdir=*) continue ;; + --cache-file | --srcdir ) keep_next=no; ;; + *=* ) tmp="$tmp '$arg'"; ;; + *) tmp="$tmp '$arg'"; keep_next=yes; ;; + esac ;; + esac +done +module_configure_flags="$tmp" +unset tmp +unset arg +unset keep_next + # NLS nuisances. # Needed e.g. for some versions of `tr' so that character classes in `[]' work. if test "${LC_ALL+set}" = 'set'; then LC_ALL=C ; export LC_ALL ; fi @@ -261,8 +285,6 @@ test -n "`echol $package|sed 's/[-a-zA-Z0-9_]*//g'`" && \ fail "$package: invalid package name" my_eval "with_`echol $package|sed s/-/_/g`=no" - test "$package" = dynamic-modules -o "$package" = dynamic-ffi || \ - module_configure_flags="$module_configure_flags $1" shift ;; -with-* | --with-*) @@ -283,8 +305,6 @@ fi fi my_eval "with_`echol $package|sed s/-/_/g`=${packopt}" - test "$package" = dynamic-modules -o "$package" = dynamic-ffi || \ - module_configure_flags="$module_configure_flags $1" shift ;; -disable-* | --disable-*) @@ -294,7 +314,6 @@ fail "$feature: invalid feature name" feature=`echol $feature | sed 's/-/_/g'` my_eval "enable_$feature=no" - module_configure_flags="$module_configure_flags $1" shift ;; -enable-* | --enable-*) @@ -304,7 +323,6 @@ fail "$feature: invalid feature name" feature=`echol $feature | sed 's/-/_/g'` my_eval "enable_$feature=yes" - module_configure_flags="$module_configure_flags $1" shift ;; -srcdir* | --srcdir*) @@ -1120,6 +1138,7 @@ test "${verbose}" = true -o "${verbose}" = yes && \ cat <<EOF >&2 EXPORT_DYNAMIC_FLAG_SPEC=${EXPORT_DYNAMIC_FLAG_SPEC} +module_configure_flags=${module_configure_flags} # host system: hostname = "${hostname}" HSYS = "${HSYS}" Index: ChangeLog =================================================================== RCS file: /cvsroot/clisp/clisp/src/ChangeLog,v retrieving revision 1.7532 retrieving revision 1.7533 diff -u -d -r1.7532 -r1.7533 --- ChangeLog 28 Sep 2010 20:27:25 -0000 1.7532 +++ ChangeLog 28 Sep 2010 20:40:40 -0000 1.7533 @@ -1,5 +1,12 @@ 2010-09-28 Sam Steingold <sd...@gn...> + fix bug#3076160: pass the top-level configure arguments --build= & + --host= to the module configures + * makemake.in (module_configure_flags): + strip out -srcdir* & -cache-file* + +2010-09-28 Sam Steingold <sd...@gn...> + * modules/rawsock/rawsock.c (module__rawsock__init_function_2): use _GL_UNUSED instead of the ad hoc `unused' ------------------------------ ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ------------------------------ _______________________________________________ clisp-cvs mailing list cli...@li... https://lists.sourceforge.net/lists/listinfo/clisp-cvs End of clisp-cvs Digest, Vol 53, Issue 32 ***************************************** |
|
From: edgar <edg...@we...> - 2010-09-28 23:19:04
|
Original background information behind the SCREEN question: I work here with some programmers who cannot read or write english language, that's why we use localized CLISP versions with german error messages. Many of these programmers have worked in former times with machines like Commodore C-64 or MS-DOS computers, that's why they are not afraid to type letters into terminal windows. :) We wanted to use the SCREEN package to implement things like funny stoneage terminal games (e.g. the CLX package contains a Sokoban game that could be re-implemented via SCREEN), so I only wanted to tell that there's no deeper need from our side to over-perfectionize the SCREEN package. Example: On c.l.l., I reported a few other problems which turned out to be: * terminal-dependent (xterm vs. rxvt vs. ...) * shell-dependent (bash vs. csh vs. zsh vs. ...) * any combination of terminal/shell/readline dependent ... ... and so on ... If you really want to fix all these issues (where first of all the issues of xterm, rxvt, bash, csh, zsh and readline programs and libraries themselves and their interaction should be fixed), then this will be a tremendous amount of work and probably will last the next ten or twenty years. Writing an Emacs or Hemlock like editor via SCREEN would be even more work. My original intention was trying to use the SCREEN package together with EXT:*KEYBOARD-INPUT* in practical programming to find out if there are problems left that cannot be solved from the Lisp level and only if there is a really urgent need to fix something on the C level, then to ask on the CLISP lists. I do not have problems if you want to improve the SCREEN package, but I do not think that it makes much sense to put too much work into this, because there probably are only a very few users. Thanks to Sam Steingold for fixing the SCREEN:WINDOW-SIZE function, I will try to test what happens on Windows later on tonight at work. - edgar -- The author of this email does not necessarily endorse the following advertisements, which are the sole responsibility of the advertiser: |
|
From: SourceForge.net <no...@so...> - 2010-09-28 22:35:05
|
Bugs item #3077583, was opened at 2010-09-29 00:09 Message generated for change (Comment added) made by vtz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=3077583&group_id=1355 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: multithreading Group: segfault Status: Open Resolution: None Priority: 5 Private: No Submitted By: Don Cohen (donc) Assigned to: Vladimir Tzankov (vtz) Summary: seg fault from cvs MT clisp due to show-stack Initial Comment: doesn't happen if I just run clisp and do show-stack in the main thread, but after doing this: [1]> (defun show-socket-addrs(socket) (multiple-value-bind (local-host local-port) (socket:socket-stream-local socket) (multiple-value-bind (remote-host remote-port) (socket:socket-stream-peer socket) (format t "~&Connection: ~S:~D -- ~S:~D~%" remote-host remote-port local-host local-port)))) SHOW-SOCKET-ADDRS [2]> (defun debug-server() (let ((server (socket:socket-server 8217 :interface "localhost"))) (unwind-protect (loop (let ((socket (socket:socket-accept server :buffered nil))) (show-socket-addrs socket) (let ((tlist (loop for x in (mt:list-threads) as i from 1 when (mt:thread-active-p x) collect (cons i x))) ans) (print tlist socket) (print "debug which thread (enter the number)" socket) (when (setf ans (cdr (assoc (read socket) tlist))) (mt:thread-interrupt ans :function (lambda nil (let ((*standard-input* socket) (*standard-output* socket) (*debug-io* socket) (*error-output* socket) (*trace-output* socket) (*query-io* socket)) (unwind-protect (break "debug") (close socket))))))))) (socket:socket-server-close server)))) DEBUG-SERVER [3]> (mt:make-thread #'debug-server :name "debug-server") #<THREAD "debug-server"> [4]> then in another shell: $ telnet localhost 8217 Trying 127.0.0.1...^M Connected to localhost.localdomain (127.0.0.1).^M Escape character is '^]'.^M ^M ((1 . #<THREAD "debug-server">) (2 . #<THREAD "main thread">)) ^M "debug which thread (enter the number)" 1 1^M ^M ** - Continuable Error^M debug^M If you continue (by typing 'continue'): Return from BREAK loop^M Break 1 [1]> (ext:show-stack) (ext:show-stack)^M ... 670 more lines <21/5> #<SYSTEM-FUNCTION MAKE-THREAD>^M - Connection closed by foreign host.^M [2010-09-28 12:54:50 root@collabrium /home/metasearch] $ The reason the connection is closed is that the clisp process now contains: Segmentation fault [2010-09-28 12:54:51 root@collabrium /home/metasearch] $ ---------------------------------------------------------------------- >Comment By: Vladimir Tzankov (vtz) Date: 2010-09-29 01:35 Message: The problem is similar to bug#1506316. It is caused by not detecting properly the bottom of the stack in debug.d:show_stack():1508. In this case STACK_start == FRAME but cmpSTACKop is defined as > - thus the stack is traversed beyond it's end. Shouldn't the comparison be reversed: (FRAME cmpSTACKop (gcv_object_t*)STACK_start)? Would this work if STACK_DOWN is defined? The problem is not experienced for the first thread in process since it's stack is allocated differently (at least page aligned in spvw.d:init_memory()). show-stack in this thread ends with following: <20/3> #<SYSTEM-FUNCTION SYSTEM::DRIVER> - #<ADDRESS #x00000000> - #<ADDRESS #x00000000> - #<ADDRESS #x00000000> 20 Why 3 nullobjs at the end - by design there should be just 2? Looks like this works because of uninitialized memory. With thread created by mt:create-thread, show-stack shows: - #<FUNCTION :LAMBDA NIL (LOOP (SLEEP 1))> - #<ADDRESS #x00000000> - #<ADDRESS #x00000000> <17/5> #<SYSTEM-FUNCTION MAKE-THREAD> and segfault here (two nullobjs are the bottom of the stack and beyond them there is some uninitialized memory). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=3077583&group_id=1355 |
|
From: SourceForge.net <no...@so...> - 2010-09-28 21:09:23
|
Bugs item #3077583, was opened at 2010-09-28 21:09 Message generated for change (Tracker Item Submitted) made by donc You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=3077583&group_id=1355 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: multithreading Group: segfault Status: Open Resolution: None Priority: 5 Private: No Submitted By: Don Cohen (donc) Assigned to: Vladimir Tzankov (vtz) Summary: seg fault from cvs MT clisp due to show-stack Initial Comment: doesn't happen if I just run clisp and do show-stack in the main thread, but after doing this: [1]> (defun show-socket-addrs(socket) (multiple-value-bind (local-host local-port) (socket:socket-stream-local socket) (multiple-value-bind (remote-host remote-port) (socket:socket-stream-peer socket) (format t "~&Connection: ~S:~D -- ~S:~D~%" remote-host remote-port local-host local-port)))) SHOW-SOCKET-ADDRS [2]> (defun debug-server() (let ((server (socket:socket-server 8217 :interface "localhost"))) (unwind-protect (loop (let ((socket (socket:socket-accept server :buffered nil))) (show-socket-addrs socket) (let ((tlist (loop for x in (mt:list-threads) as i from 1 when (mt:thread-active-p x) collect (cons i x))) ans) (print tlist socket) (print "debug which thread (enter the number)" socket) (when (setf ans (cdr (assoc (read socket) tlist))) (mt:thread-interrupt ans :function (lambda nil (let ((*standard-input* socket) (*standard-output* socket) (*debug-io* socket) (*error-output* socket) (*trace-output* socket) (*query-io* socket)) (unwind-protect (break "debug") (close socket))))))))) (socket:socket-server-close server)))) DEBUG-SERVER [3]> (mt:make-thread #'debug-server :name "debug-server") #<THREAD "debug-server"> [4]> then in another shell: $ telnet localhost 8217 Trying 127.0.0.1...^M Connected to localhost.localdomain (127.0.0.1).^M Escape character is '^]'.^M ^M ((1 . #<THREAD "debug-server">) (2 . #<THREAD "main thread">)) ^M "debug which thread (enter the number)" 1 1^M ^M ** - Continuable Error^M debug^M If you continue (by typing 'continue'): Return from BREAK loop^M Break 1 [1]> (ext:show-stack) (ext:show-stack)^M ... 670 more lines <21/5> #<SYSTEM-FUNCTION MAKE-THREAD>^M - Connection closed by foreign host.^M [2010-09-28 12:54:50 root@collabrium /home/metasearch] $ The reason the connection is closed is that the clisp process now contains: Segmentation fault [2010-09-28 12:54:51 root@collabrium /home/metasearch] $ ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=3077583&group_id=1355 |
|
From: Sam S. <sd...@gn...> - 2010-09-28 20:44:01
|
Don Cohen wrote: > Sam Steingold writes: > > > Under what circumstance would curr->image be true? > > this code is specific to the SCREEN package (window streams). > > it is of no interest to you if you are not using that. > Is this the one you said was removed in 1999 or is there some other > screen package? I see screen listed in impnotes 32.1. You misread me. I said that Bruno removed (in 1998) the _editor_ based on screen, not screen itself. |
|
From: SourceForge.net <no...@so...> - 2010-09-28 20:41:05
|
Bugs item #3076160, was opened at 2010-09-26 18:33 Message generated for change (Comment added) made by sds You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=3076160&group_id=1355 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: modules Group: build problems >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: zumbi (setrlive) >Assigned to: Sam Steingold (sds) Summary: Compiling CLISP 2.49 on ARM EABI Initial Comment: Hello, I tried to compile twice CLISP 2.49 on ARM EABI (Debian armel), it fails with following error: test -d boot || (mkdir boot && cd boot && for f in lisp.a libnoreadline.a libgnu_cl.a modules.h modules.o lisp.run lispinit.mem; do ln -s ../$f .; done && (grep -v '^FILES=' ../makevars; fl=''; for f in lisp.a libnoreadline.a libgnu_cl.a ; do fl=$fl' '`basename $f`; done; echo 'FILES='"'"$fl"'") > makevars) || (rm -rf boot ; exit 1) ./txt2c -I'/home/zumbi/clisp-2.49/' < /home/zumbi/clisp-2.49/src/_clisp.c > txt.c arm-linux-gnueabi-gcc -I/home/zumbi/clisp-2.49/debian/build/gllib -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -falign-functions=4 -DENABLE_UNICODE -DDYNAMIC_MODULES -I. -DCOMPILE_STANDALONE -O0 txt.c -o txt ./txt > clisp.c rm -f txt.c rm -f txt arm-linux-gnueabi-gcc -I/home/zumbi/clisp-2.49/debian/build/gllib -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -falign-functions=4 -DENABLE_UNICODE -DDYNAMIC_MODULES -I. -DENABLE_RELOCATABLE clisp.c /usr/lib/libreadline.so -lncurses -ldl /usr/lib/libavcall.so /usr/lib/libcallback.so -L/usr/lib -lsigsegv libgnu_cl.a -o clisp mkdir -p i18n m=`cd /home/zumbi/clisp-2.49/modules/i18n; pwd`; \ if test -f $m/configure -a $m/configure -nt i18n/config.status ; then ( cd i18n ; rm -rf gllib;\ cache=`echo i18n/ | sed -e 's,[^/][^/]*//*,../,g'`config.cache; \ if test -f ${cache} ; then \ . ${cache}; \ if test "${ac_cv_env_CC_set}" = set; then CC="${ac_cv_env_CC_value}"; export CC; fi; \ if test "${ac_cv_env_CFLAGS_set}" = set; then CFLAGS="${ac_cv_env_CFLAGS_value}"; export CFLAGS; fi; \ if test "${ac_cv_env_LDFLAGS_set}" = set; then LDFLAGS="${ac_cv_env_LDFLAGS_value}"; export LDFLAGS; fi; \ if test "${ac_cv_env_CLFLAGS_set}" = set; then CLFLAGS="${ac_cv_env_CLFLAGS_value}"; export CLFLAGS; fi; \ if test "${ac_cv_env_LIBS_set}" = set; then LIBS="${ac_cv_env_LIBS_value}"; export LIBS; fi; \ if test "${ac_cv_env_CPPFLAGS_set}" = set; then CPPFLAGS="${ac_cv_env_CPPFLAGS_value}"; export CPPFLAGS; fi; \ if test "${ac_cv_env_CPP_set}" = set; then CPP="${ac_cv_env_CPP_value}"; export CPP; fi; \ if test "${ac_cv_env_CXX_set}" = set; then CXX="${ac_cv_env_CXX_value}"; export CXX; fi; \ if test "${ac_cv_env_CXXFLAGS_set}" = set; then CXXFLAGS="${ac_cv_env_CXXFLAGS_value}"; export CXXFLAGS; fi; \ if test "${ac_cv_env_X_LIBS_set}" = set; then X_LIBS="${ac_cv_env_X_LIBS_value}"; export X_LIBS; fi; \ /bin/bash $m/configure --with-clisp="/home/zumbi/clisp-2.49/debian/build/clisp -K boot -E UTF-8 -Epathname 1:1 -Emisc 1:1 -norc" --cache-file=${cache} --srcdir=$m --disable-option-checking --with-readline --with-gettext;\ else \ /bin/bash $m/configure --srcdir=$m --disable-option-checking --with-readline --with-gettext; \ fi ) ;\ fi; \ test -f $m/Makefile -a $m/Makefile -nt i18n/Makefile && sed "s,srcdir = .,srcdir = $m," "$m/Makefile" > i18n/Makefile ; \ CLISP="/home/zumbi/clisp-2.49/debian/build/clisp -K boot -E UTF-8 -Epathname 1:1 -Emisc 1:1 -norc" ; \ cd i18n ; /usr/bin/make clisp-module CC="arm-linux-gnueabi-gcc" CPPFLAGS="-I/home/zumbi/clisp-2.49/debian/build/gllib -I/home/zumbi/clisp-2.49/debian/build" CFLAGS="-g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -falign-functions=4 -DENABLE_UNICODE -DDYNAMIC_MODULES -I. -fPIC" CLFLAGS=" -Wl,--export-dynamic" LIBS="/usr/lib/libreadline.so -lncurses -ldl /usr/lib/libavcall.so /usr/lib/libcallback.so -L/usr/lib -lsigsegv libgnu_cl.a" RANLIB="ranlib" CLISP="$CLISP -q" SHREXT=.so configure: loading cache ../config.cache configure: error: `build_alias' was set to `arm-linux-gnueabi' in the previous run configure: error: in `/home/zumbi/clisp-2.49/debian/build/i18n': configure: error: changes in the environment can compromise the build configure: error: run `make distclean' and/or `rm ../config.cache' and start over make[2]: Entering directory `/home/zumbi/clisp-2.49/debian/build/i18n' make[2]: *** No rule to make target `clisp-module'. Stop. make[2]: Leaving directory `/home/zumbi/clisp-2.49/debian/build/i18n' make[1]: *** [i18n] Error 2 make[1]: Leaving directory `/home/zumbi/clisp-2.49/debian/build' make: *** [build-stamp] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 Attached config.log and ../config.guess I am going to try to erase config.cache and rebuild ---------------------------------------------------------------------- Comment By: Sam Steingold (sds) Date: 2010-09-28 16:41 Message: thank you for your bug report. the bug has been fixed in the CVS tree. you can either wait for the next release (recommended) or check out the current CVS tree (see http://clisp.cons.org) and build CLISP from the sources (be advised that between releases the CVS tree is very unstable and may not even build on your platform). ---------------------------------------------------------------------- Comment By: zumbi (setrlive) Date: 2010-09-27 18:37 Message: Hello, I finally got 2.49 version provide a package from (in case you are interested): pvaneynd branch at Debian git repository. Thanks for the support ---------------------------------------------------------------------- Comment By: zumbi (setrlive) Date: 2010-09-27 18:15 Message: Here is the configuration used: ./configure debian/build --prefix=/usr --fsstnd=debian --without-dynamic-ffi \ --with-module=clx/mit-clx --with-module=berkeley-db --build=arm-linux-gnueabi executing /home/zumbi/clisp-2.49/debian/build/configure debian/build --prefix=/usr --fsstnd=debian --without-dynamic-ffi --with-module=clx/mit-clx --with-module=berkeley-db --build=arm-linux-gnueabi configure: loading cache config.cache checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes configure: ** check for host type checking build system type... arm-unknown-linux-gnueabi checking host system type... arm-unknown-linux-gnueabi checking for style of include used by make... GNU checking for gcc... arm-linux-gnueabi-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out PS. I am currently build testing a version for 2.49 provided by current Debian developer, I let you know how it goes. If it fails I'll try with your configure suggestion. ---------------------------------------------------------------------- Comment By: Sam Steingold (sds) Date: 2010-09-27 16:07 Message: it appears that clisp core is built just fine, but you are having problems with modules. 1. what configure command did you originally use? 2. could you please do this at a fresh clean clisp source tree: ./configure --cbc build --with-module=asdf --with-module=rawsock ---------------------------------------------------------------------- Comment By: zumbi (setrlive) Date: 2010-09-26 18:45 Message: config.log for later: It was created by i18n configure 1.0, which was generated by GNU Autoconf 2.65. Invocation command line was $ /home/zumbi/clisp-2.49/modules/i18n/configure --srcdir=/home/zumbi/clisp-2.49/modules/i18n --disable-option-checking --with-readline --with-gettext ## --------- ## ## Platform. ## ## --------- ## hostname = abel uname -m = armv5tel uname -r = 2.6.32 uname -s = Linux uname -v = #2 Wed Sep 22 17:47:11 UTC 2010 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/bin PATH: /usr/bin PATH: /bin PATH: /usr/games ## ----------- ## ## Core tests. ## ## ----------- ## configure:2209: ** I18N (Common) configure:2211: checking how to remove colons from paths configure:2222: result: echo $x configure:2240: checking for clisp configure:2273: result: no configure:2333: checking for CLISP configure:2340: result: no configure:2343: error: CLISP not found ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_env_CC_set=set ac_cv_env_CC_value=arm-linux-gnueabi-gcc ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -fali gn-functions=4 -DENABLE_UNICODE -DDYNAMIC_MODULES -I.' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value=-I/home/zumbi/clisp-2.49/debian/build/gllib ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= cl_cv_clisp= cl_cv_decolonize='echo $x' cl_cv_have_clisp=no ## ----------------- ## ## Output variables. ## ## ----------------- ## CC='arm-linux-gnueabi-gcc' CFLAGS='-g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -falign-functions=4 - DENABLE_UNICODE -DDYNAMIC_MODULES -I.' CLISP='' CLISP_CFLAGS='' CLISP_CPPFLAGS='' CLISP_DECOLONIZE='echo $x' CLISP_FILES='' CLISP_LIBDIR='' CLISP_LIBS='' CLISP_LINKKIT='' CPP='' CPPFLAGS='-I/home/zumbi/clisp-2.49/debian/build/gllib' [...] ---------------------------------------------------------------------- Comment By: zumbi (setrlive) Date: 2010-09-26 18:39 Message: Removing the ../config.cache file produces this new error: make[2]: Leaving directory `/home/zumbi/clisp-2.49/debian/build/gllib' test -r libgnu_cl.a || ln -s gllib/libgnu.a libgnu_cl.a test -d boot || (mkdir boot && cd boot && for f in lisp.a libnoreadline.a libgnu_cl.a modules.h modules.o lisp.run lispinit.mem; do ln -s ../$f .; done && (grep -v '^FILES=' ../makevars; fl=''; for f in lisp.a libnoreadline.a libgnu_cl.a ; do fl=$fl' '`basename $f`; done; echo 'FILES='"'"$fl"'") > makevars) || (rm -rf boot ; exit 1) mkdir -p i18n m=`cd /home/zumbi/clisp-2.49/modules/i18n; pwd`; \ if test -f $m/configure -a $m/configure -nt i18n/config.status ; then ( cd i18n ; rm -rf gllib;\ cache=`echo i18n/ | sed -e 's,[^/][^/]*//*,../,g'`config.cache; \ if test -f ${cache} ; then \ . ${cache}; \ if test "${ac_cv_env_CC_set}" = set; then CC="${ac_cv_env_CC_value}"; export CC; fi; \ if test "${ac_cv_env_CFLAGS_set}" = set; then CFLAGS="${ac_cv_env_CFLAGS_value}"; export CFLAGS; fi; \ if test "${ac_cv_env_LDFLAGS_set}" = set; then LDFLAGS="${ac_cv_env_LDFLAGS_value}"; export LDFLAGS; fi; \ if test "${ac_cv_env_CLFLAGS_set}" = set; then CLFLAGS="${ac_cv_env_CLFLAGS_value}"; export CLFLAGS; fi; \ if test "${ac_cv_env_LIBS_set}" = set; then LIBS="${ac_cv_env_LIBS_value}"; export LIBS; fi; \ if test "${ac_cv_env_CPPFLAGS_set}" = set; then CPPFLAGS="${ac_cv_env_CPPFLAGS_value}"; export CPPFLAGS; fi; \ if test "${ac_cv_env_CPP_set}" = set; then CPP="${ac_cv_env_CPP_value}"; export CPP; fi; \ if test "${ac_cv_env_CXX_set}" = set; then CXX="${ac_cv_env_CXX_value}"; export CXX; fi; \ if test "${ac_cv_env_CXXFLAGS_set}" = set; then CXXFLAGS="${ac_cv_env_CXXFLAGS_value}"; export CXXFLAGS; fi; \ if test "${ac_cv_env_X_LIBS_set}" = set; then X_LIBS="${ac_cv_env_X_LIBS_value}"; export X_LIBS; fi; \ /bin/bash $m/configure --with-clisp="/home/zumbi/clisp-2.49/debian/build/clisp -K boot -E UTF-8 -Epathname 1:1 -Emisc 1:1 -norc" --cache-file=${cache} --srcdir=$m --disable-option-checking --with-readline --with-gettext;\ else \ /bin/bash $m/configure --srcdir=$m --disable-option-checking --with-readline --with-gettext; \ fi ) ;\ fi; \ test -f $m/Makefile -a $m/Makefile -nt i18n/Makefile && sed "s,srcdir = .,srcdir = $m," "$m/Makefile" > i18n/Makefile ; \ CLISP="/home/zumbi/clisp-2.49/debian/build/clisp -K boot -E UTF-8 -Epathname 1:1 -Emisc 1:1 -norc" ; \ cd i18n ; /usr/bin/make clisp-module CC="arm-linux-gnueabi-gcc" CPPFLAGS="-I/home/zumbi/clisp-2.49/debian/build/gllib -I/home/zumbi/clisp-2.49/debian/build" CFLAGS="-g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -falign-functions=4 -DENABLE_UNICODE -DDYNAMIC_MODULES -I. -fPIC" CLFLAGS=" -Wl,--export-dynamic" LIBS="/usr/lib/libreadline.so -lncurses -ldl /usr/lib/libavcall.so /usr/lib/libcallback.so -L/usr/lib -lsigsegv libgnu_cl.a" RANLIB="ranlib" CLISP="$CLISP -q" SHREXT=.so configure: ** I18N (Common) checking how to remove colons from paths... echo $x checking for clisp... no checking for CLISP... no configure: error: CLISP not found make[2]: Entering directory `/home/zumbi/clisp-2.49/debian/build/i18n' make[2]: *** No rule to make target `clisp-module'. Stop. make[2]: Leaving directory `/home/zumbi/clisp-2.49/debian/build/i18n' make[1]: *** [i18n] Error 2 make[1]: Leaving directory `/home/zumbi/clisp-2.49/debian/build' make: *** [build-stamp] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 ---------------------------------------------------------------------- Comment By: zumbi (setrlive) Date: 2010-09-26 18:37 Message: I could not attach config.log, so I paste here: $ cat config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by i18n configure 1.0, which was generated by GNU Autoconf 2.65. Invocation command line was $ /home/zumbi/clisp-2.49/modules/i18n/configure --with-clisp=/home/zumbi/clisp-2.49/debian/build/clisp -K boot -E UTF-8 -Epathname 1:1 -Emisc 1:1 -norc --cache-file=../config.cache --srcdir=/home/zumbi/clisp-2.49/modules/i18n --disable-option-checking --with-readline --with-gettext ## --------- ## ## Platform. ## ## --------- ## hostname = abel uname -m = armv5tel uname -r = 2.6.32 uname -s = Linux uname -v = #2 Wed Sep 22 17:47:11 UTC 2010 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/bin PATH: /usr/bin PATH: /bin PATH: /usr/games ## ----------- ## ## Core tests. ## ## ----------- ## configure:2077: loading cache ../config.cache configure:2102: error: `build_alias' was set to `arm-linux-gnueabi' in the previous run configure:2143: error: in `/home/zumbi/clisp-2.49/debian/build/i18n': configure:2145: error: changes in the environment can compromise the build configure:2147: error: run `make distclean' and/or `rm ../config.cache' and start over ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=arm-unknown-linux-gnueabi ac_cv_c_bigendian=no ac_cv_c_char_unsigned=yes ac_cv_c_compiler_gnu=yes ac_cv_c_inline=inline [...] Let me know if you need more info. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=3076160&group_id=1355 |
|
From: <don...@is...> - 2010-09-28 20:16:57
|
Vladimir Tzankov writes: > When running within a signal handler you have very limited set of safe > functions to use (see at the end of > http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html). > No lisp code can be run safely from signal handler. > I see two ways to handle this: > > 1. With single thread builds: handle signals with signal handler, add > them to some queue of deferred (pending to be handled) signals and add > checkpoints in interpreter/bytecode to invoke handlers. For now let's start with case 2, which seems simpler, at least from my perspective. > 2. With MT: handle signals in main (non-lisp) thread via sigwait() and > use thread-interrupt to invoke handler in specific (or arbitrary) lisp > thread - that's the way CTRL-C and call-with-timeout are implemented. In this case I'd suggest creating a new thread to handle the signal. The general mechanism I had in mind was having a list of functions to call on each supported signal so the programmer can just push his own function onto that list. With-timeout presumably interrupts the calling thread. I suggest that if there are multiple running threads, c-c ask which one to interrupt. > Note that SIGUSR1 and SIGUSR2 are used internally for implementing > thread-interrupt and call-with-timeout - thus are not available. I gather there are several others that are used internally. > Besides SIGWINCH, what other signals would you like to be able to > handle? Some (SIGPIPE, SIGCLD) are already handled in special way by > the runtime. I don't know. I guess I should start by finding out which ones exist. |
|
From: Vladimir T. <vtz...@gm...> - 2010-09-28 20:04:21
|
On 9/28/10, Sam Steingold <sd...@gn...> wrote: > Don Cohen wrote: >> Joe...@t-... writes: >> > It would be nice if this could be made to work with MS-Windows text >> > consoles as well... >> Thanks for reminding me - I would also like to be able to handle this >> signal. I don't use screen (does anyone really use it?) but I do use >> the terminal emulation mode that comes with xterm and putty. >> >> Is there some general mechanism for clisp programs to handle the >> signals that make sense? There should be. When running within a signal handler you have very limited set of safe functions to use (see at the end of http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html). No lisp code can be run safely from signal handler. I see two ways to handle this: 1. With single thread builds: handle signals with signal handler, add them to some queue of deferred (pending to be handled) signals and add checkpoints in interpreter/bytecode to invoke handlers. 2. With MT: handle signals in main (non-lisp) thread via sigwait() and use thread-interrupt to invoke handler in specific (or arbitrary) lisp thread - that's the way CTRL-C and call-with-timeout are implemented. Note that SIGUSR1 and SIGUSR2 are used internally for implementing thread-interrupt and call-with-timeout - thus are not available. Besides SIGWINCH, what other signals would you like to be able to handle? Some (SIGPIPE, SIGCLD) are already handled in special way by the runtime. Vladimir |
|
From: <don...@is...> - 2010-09-28 19:49:37
|
Sam Steingold writes: > > Under what circumstance would curr->image be true? > this code is specific to the SCREEN package (window streams). > it is of no interest to you if you are not using that. Is this the one you said was removed in 1999 or is there some other screen package? I see screen listed in impnotes 32.1. |
|
From: <don...@is...> - 2010-09-28 19:49:36
|
Sam Steingold writes: > > Is there some general mechanism for clisp programs to handle the > > signals that make sense? There should be. > take a look at clisp/modules/bindings/glibc/wrap.lisp > I think Vladimir & Jorg will have something to warn you about ;-( I saw the warning (c. 2004?) and concluded that this was not a good way to deal with signals. But since you evidently think that there is a good way to deal with screen windows, I'd like to be able to do the same thing for my own windows. Another question now comes to mind. The code I see in stream.d suggests there can only be one screen window. Is there a good reason for that? Does WINCH give you a way to find out which window has been resized? |
|
From: <cli...@li...> - 2010-09-28 19:26:55
|
Send clisp-cvs mailing list submissions to cli...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/clisp-cvs or, via email, send a message with subject or body 'help' to cli...@li... You can reach the person managing the list at cli...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of clisp-cvs digest..." CLISP CVS commits for today Today's Topics: 1. clisp/modules/syscalls calls.c,1.314,1.315 configure.in,1.91,1.92 (Sam Steingold) 2. clisp/modules/wildcard/gllib Makefile.in,1.17,1.18 (Sam Steingold) 3. clisp/src aclocal.m4,1.98,1.99 configure,1.279,1.280 (Sam Steingold) 4. clisp/modules/syscalls/gllib Makefile.in,1.24,1.25 (Sam Steingold) 5. clisp/modules/syscalls config.h.in,1.81,1.82 configure,1.117,1.118 (Sam Steingold) 6. clisp/modules/regexp/gllib Makefile.in,1.23,1.24 (Sam Steingold) 7. clisp/src/gllib Makefile.in,1.41,1.42 (Sam Steingold) 8. clisp/src ChangeLog, 1.7530, 1.7531 configure.in, 1.189, 1.190 makemake.in, 1.947, 1.948 (Sam Steingold) ---------------------------------------------------------------------- Message: 1 Date: Tue, 28 Sep 2010 18:43:31 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls calls.c,1.314,1.315 configure.in,1.91,1.92 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv26828/modules/syscalls Modified Files: calls.c configure.in Log Message: get strerror from gnulib for POSIX:STRERROR * Makefile.devel (GNULIB_CORE): explicitly request already present errno (gnulib-imported): request strerror for syscalls * modules/syscalls/configure.in: call gl_HEADER_ERRNO_H instead of checking for <errno.h>; call gl_FUNC_STRERROR instead of checking for strerror * modules/syscalls/calls.c: include <errno.h> unconditionally (STRERROR): always define (errno.h & strerror ensured by gnulib) * modules/syscalls/gllib/errno.in.h, modules/syscalls/glm4/errno_h.m4: remove (already present in src/) * modules/syscalls/gllib/intprops.h, modules/syscalls/gllib/strerror.c: * modules/syscalls/glm4/strerror.m4: add Index: calls.c =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/calls.c,v retrieving revision 1.314 retrieving revision 1.315 diff -u -d -r1.314 -r1.315 --- calls.c 21 Sep 2010 16:15:06 -0000 1.314 +++ calls.c 28 Sep 2010 18:43:29 -0000 1.315 @@ -32,9 +32,7 @@ #if defined(HAVE_SYS_UNISTD_H) # include <sys/unistd.h> #endif -#if defined(HAVE_ERRNO_H) -# include <errno.h> -#endif +#include <errno.h> /* from gnulib */ #include <sys/types.h> #if defined(HAVE_SYS_STAT_H) # include <sys/stat.h> @@ -4749,7 +4747,6 @@ skipSTACK(1); } -#if (defined(HAVE_ERRNO_H) && defined(HAVE_STRERROR)) || defined(WIN32_NATIVE) /* http://www.opengroup.org/onlinepubs/009695399/basedefs/errno.h.html */ #if defined(WIN32_NATIVE) # include <winerror.h> @@ -5757,7 +5754,7 @@ } skipSTACK(1); } -DEFUN(OS::STRERROR, &optional error_code) { +DEFUN(POSIX::STRERROR, &optional error_code) { char *ret = NULL; # if defined(WIN32_NATIVE) DWORD error_code = missingp(STACK_0) ? (DWORD)-1 : check_errno(STACK_0); @@ -5785,7 +5782,6 @@ # endif skipSTACK(1); } -#endif /* (HAVE_ERRNO_H & HAVE_STRERROR) | WIN32_NATIVE */ #endif /* HAVE_FFI */ Index: configure.in =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/configure.in,v retrieving revision 1.91 retrieving revision 1.92 diff -u -d -r1.91 -r1.92 --- configure.in 21 Sep 2010 16:09:48 -0000 1.91 +++ configure.in 28 Sep 2010 18:43:29 -0000 1.92 @@ -16,7 +16,7 @@ sc_gl_INIT BOLD_MSG([System Calls (Headers)]) -AC_CHECK_HEADERS(errno.h fcntl.h netdb.h sys/resource.h utime.h wchar.h dnl +AC_CHECK_HEADERS(fcntl.h netdb.h sys/resource.h utime.h wchar.h dnl pwd.h sys/time.h sys/unistd.h time.h unistd.h syslog.h signal.h dnl grp.h crypt.h utmpx.h stdlib.h shlobj.h netinet/in.h arpa/inet.h dnl sys/statvfs.h sys/statfs.h sys/param.h sys/wait.h ftw.h) @@ -30,6 +30,7 @@ if test "$ac_cv_header_utmpx_h" = "yes"; then AC_CHECK_MEMBERS([struct utmpx.ut_host],,,[#include <utmpx.h>]) fi +gl_HEADER_ERRNO_H BOLD_MSG([System Calls (Functions)]) CL_RLIMIT @@ -49,7 +50,7 @@ fchmod fchown fstat link stat symlink utime mknod chmod umask fsync sync dnl ftruncate truncate getusershell endusershell dnl erf erfc lgamma tgamma fstatvfs statvfs getpriority setpriority dnl -crypt encrypt setkey GlobalMemoryStatusEx strerror dnl +crypt encrypt setkey GlobalMemoryStatusEx dnl gethostid sethostid getdomainname setdomainname nftw) AC_FUNC_CHOWN gl_FUNC_MKTIME @@ -60,6 +61,8 @@ gl_STRING_MODULE_INDICATOR([strverscmp]) gl_FUNC_UNAME gl_SYS_UTSNAME_MODULE_INDICATOR([uname]) +gl_FUNC_STRERROR +gl_STRING_MODULE_INDICATOR([strerror]) AC_CHECK_DECLS([signgam],,,[#include <math.h>]) CL_STAT if test "$ac_cv_header_sys_statvfs_h" = "yes"; then ------------------------------ Message: 2 Date: Tue, 28 Sep 2010 18:58:41 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/wildcard/gllib Makefile.in,1.17,1.18 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/wildcard/gllib In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv31580/modules/wildcard/gllib Modified Files: Makefile.in Log Message: regenerate for strerror in syscalls Index: Makefile.in =================================================================== RCS file: /cvsroot/clisp/clisp/modules/wildcard/gllib/Makefile.in,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- Makefile.in 27 Sep 2010 22:11:06 -0000 1.17 +++ Makefile.in 28 Sep 2010 18:58:39 -0000 1.18 @@ -24,7 +24,7 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=modules/wildcard/gllib --m4-base=modules/wildcard/glm4 --doc-base=doc --tests-base=tests --aux-dir=src/build-aux --avoid=no-c++ --avoid=stdint --avoid=stdbool --avoid=havelib --avoid=gettext --avoid=localcharset --avoid=uniwidth/width --avoid=streq --avoid=uniname/uniname --avoid=unitypes --avoid=link-follow --avoid=host-cpu-c-abi --avoid=socklen --avoid=sockets --avoid=close-hook --avoid=setenv --avoid=unsetenv --avoid=nocrash --avoid=libsigsegv --avoid=gnu-make --avoid=gettimeofday --avoid=getpagesize --avoid=sys_time --avoid=sys_wait --avoid=alloca-opt --avoid=alloca --avoid=extensions --avoid=include_next --avoid=verify --avoid=string --avoid=mbsinit --avoid=wchar --avoid=wctype --avoid=mbrtowc --avoid=mbsrtowcs --avoid=memchr --avoid=nl_langinfo --no-libtool --macro-prefix=wc_gl --no-vc-files fnmatch-gnu +# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=modules/wildcard/gllib --m4-base=modules/wildcard/glm4 --doc-base=doc --tests-base=tests --aux-dir=src/build-aux --avoid=no-c++ --avoid=stdint --avoid=stdbool --avoid=havelib --avoid=gettext --avoid=localcharset --avoid=uniwidth/width --avoid=streq --avoid=uniname/uniname --avoid=unitypes --avoid=link-follow --avoid=host-cpu-c-abi --avoid=socklen --avoid=sockets --avoid=close-hook --avoid=setenv --avoid=unsetenv --avoid=errno --avoid=nocrash --avoid=libsigsegv --avoid=gnu-make --avoid=gettimeofday --avoid=getpagesize --avoid=sys_time --avoid=sys_wait --avoid=alloca-opt --avoid=alloca --avoid=extensions --avoid=include_next --avoid=verify --avoid=string --avoid=mbsinit --avoid=wchar --avoid=wctype --avoid=mbrtowc --avoid=mbsrtowcs --avoid=memchr --avoid=nl_langinfo --no-libtool --macro-prefix=wc_gl --no-vc-files fnmatch-gnu ------------------------------ Message: 3 Date: Tue, 28 Sep 2010 18:58:41 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src aclocal.m4,1.98,1.99 configure,1.279,1.280 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv31580/src Modified Files: aclocal.m4 configure Log Message: regenerate for strerror in syscalls Index: aclocal.m4 =================================================================== RCS file: /cvsroot/clisp/clisp/src/aclocal.m4,v retrieving revision 1.98 retrieving revision 1.99 diff -u -d -r1.98 -r1.99 --- aclocal.m4 27 Sep 2010 22:11:07 -0000 1.98 +++ aclocal.m4 28 Sep 2010 18:58:39 -0000 1.99 @@ -1445,13 +1445,14 @@ # Code from module alignof: # Code from module arg-nonnull: # Code from module c++defs: - # Code from module errno: # Code from module gethostname: + # Code from module intprops: # Code from module mbrlen: # Code from module mktime: # Code from module multiarch: # Code from module stddef: # Code from module strcase: + # Code from module strerror: # Code from module strftime: # Code from module strings: # Code from module strptime: @@ -1484,11 +1485,10 @@ # Code from module alignof: # Code from module arg-nonnull: # Code from module c++defs: - # Code from module errno: - gl_HEADER_ERRNO_H # Code from module gethostname: gl_FUNC_GETHOSTNAME gl_UNISTD_MODULE_INDICATOR([gethostname]) + # Code from module intprops: # Code from module mbrlen: gl_FUNC_MBRLEN gl_WCHAR_MODULE_INDICATOR([mbrlen]) @@ -1501,6 +1501,9 @@ gl_STDDEF_H # Code from module strcase: gl_STRCASE + # Code from module strerror: + gl_FUNC_STRERROR + gl_STRING_MODULE_INDICATOR([strerror]) # Code from module strftime: gl_FUNC_GNU_STRFTIME # Code from module strings: @@ -1674,13 +1677,14 @@ build-aux/warn-on-use.h lib/alignof.h lib/dummy.c - lib/errno.in.h lib/gethostname.c + lib/intprops.h lib/mbrlen.c lib/mktime-internal.h lib/mktime.c lib/stddef.in.h lib/strcasecmp.c + lib/strerror.c lib/strftime.c lib/strftime.h lib/strings.in.h @@ -1695,7 +1699,6 @@ lib/unistd.in.h lib/w32sock.h m4/00gnulib.m4 - m4/errno_h.m4 m4/gethostname.m4 m4/gnulib-common.m4 m4/mbrlen.m4 @@ -1705,6 +1708,7 @@ m4/sockpfaf.m4 m4/stddef_h.m4 m4/strcase.m4 + m4/strerror.m4 m4/strftime.m4 m4/strings_h.m4 m4/strptime.m4 @@ -2198,6 +2202,75 @@ : ]) +# strerror.m4 serial 9 +dnl Copyright (C) 2002, 2007-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_STRERROR], +[ + AC_REQUIRE([gl_FUNC_STRERROR_SEPARATE]) + if test $REPLACE_STRERROR = 1; then + AC_LIBOBJ([strerror]) + AC_DEFINE_UNQUOTED([REPLACE_STRERROR], [$REPLACE_STRERROR], + [Define this to 1 if strerror is broken.]) + fi +]) + +# Like gl_FUNC_STRERROR, except prepare for separate compilation (no AC_LIBOBJ). +AC_DEFUN([gl_FUNC_STRERROR_SEPARATE], +[ + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) + AC_REQUIRE([gl_HEADER_ERRNO_H]) + if test -z "$ERRNO_H"; then + AC_CACHE_CHECK([for working strerror function], + [gl_cv_func_working_strerror], + [AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [[#include <string.h> + ]], + [[return !*strerror (-2);]])], + [gl_cv_func_working_strerror=yes], + [gl_cv_func_working_strerror=no], + [dnl Assume crossbuild works if it compiles. + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include <string.h> + ]], + [[return !*strerror (-2);]])], + [gl_cv_func_working_strerror=yes], + [gl_cv_func_working_strerror=no]) + ]) + ]) + if test $gl_cv_func_working_strerror = no; then + dnl The system's strerror() fails to return a string for out-of-range + dnl integers. Replace it. + REPLACE_STRERROR=1 + fi + else + dnl The system's strerror() cannot know about the new errno values we add + dnl to <errno.h>. Replace it. + REPLACE_STRERROR=1 + fi + if test $REPLACE_STRERROR = 1; then + gl_PREREQ_STRERROR + fi +]) + +# Prerequisites of lib/strerror.c. +AC_DEFUN([gl_PREREQ_STRERROR], [ + AC_CHECK_DECLS([strerror]) + AC_CHECK_HEADERS_ONCE([sys/socket.h]) + if test $ac_cv_header_sys_socket_h != yes; then + dnl We cannot use AC_CHECK_HEADERS_ONCE here, because that would make + dnl the check for those headers unconditional; yet cygwin reports + dnl that the headers are present but cannot be compiled (since on + dnl cygwin, all socket information should come from sys/socket.h). + AC_CHECK_HEADERS([winsock2.h]) + fi +]) + # serial 32 # Copyright (C) 1996-1997, 1999-2007, 2009-2010 Free Software Foundation, Inc. Index: configure =================================================================== RCS file: /cvsroot/clisp/clisp/src/configure,v retrieving revision 1.279 retrieving revision 1.280 diff -u -d -r1.279 -r1.280 --- configure 27 Sep 2010 22:11:07 -0000 1.279 +++ configure 28 Sep 2010 18:58:39 -0000 1.280 @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Id: configure.in,v 1.188 2010/09/27 22:07:20 sds Exp . +# From configure.in Id: configure.in,v 1.189 2010/09/28 18:24:29 sds Exp . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.65 for GNU CLISP 2.49+ (2010-07-17). # @@ -33695,6 +33695,7 @@ PACKAGE="clisp" ac_config_files="$ac_config_files po/Makefile.in gllib/Makefile" + ac_config_files="$ac_config_files makemake" cat >confcache <<\_ACEOF @@ -36178,14 +36179,7 @@ ;; esac done ;; - "makemake":F) - echo "#!$SHELL" > makemake.tmp - echo "# Generated from makemake.in by configure using:" >> makemake.tmp - echo "CONFIG_SHELL=$SHELL" >> makemake.tmp - cat makemake >> makemake.tmp - mv makemake.tmp makemake - chmod a+x makemake - ;; + "makemake":F) chmod a+x makemake ;; esac done # for ac_tag ------------------------------ Message: 4 Date: Tue, 28 Sep 2010 18:58:41 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls/gllib Makefile.in,1.24,1.25 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls/gllib In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv31580/modules/syscalls/gllib Modified Files: Makefile.in Log Message: regenerate for strerror in syscalls Index: Makefile.in =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/gllib/Makefile.in,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- Makefile.in 27 Sep 2010 22:11:06 -0000 1.24 +++ Makefile.in 28 Sep 2010 18:58:39 -0000 1.25 @@ -24,7 +24,7 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=modules/syscalls/gllib --m4-base=modules/syscalls/glm4 --doc-base=doc --tests-base=tests --aux-dir=src/build-aux --avoid=no-c++ --avoid=stdint --avoid=stdbool --avoid=havelib --avoid=gettext --avoid=localcharset --avoid=uniwidth/width --avoid=streq --avoid=uniname/uniname --avoid=unitypes --avoid=link-follow --avoid=host-cpu-c-abi --avoid=socklen --avoid=sockets --avoid=close-hook --avoid=setenv --avoid=unsetenv --avoid=nocrash --avoid=libsigsegv --avoid=gnu-make --avoid=gettimeofday --avoid=getpagesize --avoid=sys_time --avoid=sys_wait --avoid=alloca-opt --avoid=alloca --avoid=extensions --avoid=include_next --avoid=verify --avoid=string --avoid=mbsinit --avoid=wchar --avoid=wctype --avoid=mbrtowc --avoid=mbsrtowcs --avoid=memchr --avoid=nl_langinfo --no-libtool --macro-prefix=sc_gl --no-vc-files mktime strftime strptime strverscmp uname +# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=modules/syscalls/gllib --m4-base=modules/syscalls/glm4 --doc-base=doc --tests-base=tests --aux-dir=src/build-aux --avoid=no-c++ --avoid=stdint --avoid=stdbool --avoid=havelib --avoid=gettext --avoid=localcharset --avoid=uniwidth/width --avoid=streq --avoid=uniname/uniname --avoid=unitypes --avoid=link-follow --avoid=host-cpu-c-abi --avoid=socklen --avoid=sockets --avoid=close-hook --avoid=setenv --avoid=unsetenv --avoid=errno --avoid=nocrash --avoid=libsigsegv --avoid=gnu-make --avoid=gettimeofday --avoid=getpagesize --avoid=sys_time --avoid=sys_wait --avoid=alloca-opt --avoid=alloca --avoid=extensions --avoid=include_next --avoid=verify --avoid=string --avoid=mbsinit --avoid=wchar --avoid=wctype --avoid=mbrtowc --avoid=mbsrtowcs --avoid=memchr --avoid=nl_langinfo --no-libtool --macro-prefix=sc_gl --no-vc-files mktime strerror strftime strptime strverscmp uname @@ -512,11 +512,11 @@ noinst_LIBRARIES = libgnu.a noinst_LTLIBRARIES = EXTRA_DIST = alignof.h $(CLISP_LIBDIR)/build-aux/arg-nonnull.h \ - $(CLISP_LIBDIR)/build-aux/c++defs.h errno.in.h gethostname.c \ - w32sock.h mbrlen.c mktime-internal.h mktime.c stddef.in.h \ - strcasecmp.c strncasecmp.c strftime.c strftime.h strings.in.h \ - strptime.c strverscmp.c sys_socket.in.h sys_utsname.in.h \ - time.in.h time_r.c uname.c unistd.in.h \ + $(CLISP_LIBDIR)/build-aux/c++defs.h gethostname.c w32sock.h \ + intprops.h mbrlen.c mktime-internal.h mktime.c stddef.in.h \ + strcasecmp.c strncasecmp.c strerror.c strftime.c strftime.h \ + strings.in.h strptime.c strverscmp.c sys_socket.in.h \ + sys_utsname.in.h time.in.h time_r.c uname.c unistd.in.h \ $(CLISP_LIBDIR)/build-aux/warn-on-use.h # The BUILT_SOURCES created by this Makefile snippet are not used via #include @@ -528,15 +528,14 @@ # statements but through direct file reference. Therefore this snippet must be # present in all Makefile.am that need it. This is ensured by the applicability # 'all' defined above. -BUILT_SOURCES = arg-nonnull.h c++defs.h $(ERRNO_H) $(STDDEF_H) \ - strings.h sys/socket.h sys/utsname.h time.h unistd.h \ - warn-on-use.h +BUILT_SOURCES = arg-nonnull.h c++defs.h $(STDDEF_H) strings.h \ + sys/socket.h sys/utsname.h time.h unistd.h warn-on-use.h SUFFIXES = MOSTLYCLEANFILES = core *.stackdump arg-nonnull.h arg-nonnull.h-t \ - c++defs.h c++defs.h-t errno.h errno.h-t stddef.h stddef.h-t \ - strings.h strings.h-t sys/socket.h sys/socket.h-t \ - sys/utsname.h sys/utsname.h-t time.h time.h-t unistd.h \ - unistd.h-t warn-on-use.h warn-on-use.h-t + c++defs.h c++defs.h-t stddef.h stddef.h-t strings.h \ + strings.h-t sys/socket.h sys/socket.h-t sys/utsname.h \ + sys/utsname.h-t time.h time.h-t unistd.h unistd.h-t \ + warn-on-use.h warn-on-use.h-t MOSTLYCLEANDIRS = sys sys CLEANFILES = DISTCLEANFILES = @@ -547,8 +546,8 @@ libgnu_a_LIBADD = $(sc_gl_LIBOBJS) libgnu_a_DEPENDENCIES = $(sc_gl_LIBOBJS) EXTRA_libgnu_a_SOURCES = gethostname.c mbrlen.c mktime.c strcasecmp.c \ - strncasecmp.c strftime.c strptime.c strverscmp.c time_r.c \ - uname.c + strncasecmp.c strerror.c strftime.c strptime.c strverscmp.c \ + time_r.c uname.c ARG_NONNULL_H = arg-nonnull.h CXXDEFS_H = c++defs.h WARN_ON_USE_H = warn-on-use.h @@ -615,6 +614,7 @@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mbrlen.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mktime.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strcasecmp.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strerror.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strftime.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strncasecmp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strptime.Po@am__quote@ @@ -975,24 +975,6 @@ > $@-t && \ mv $@-t $@ -# We need the following in order to create <errno.h> when the system -# doesn't have one that is POSIX compliant. -errno.h: errno.in.h - $(AM_V_GEN)rm -f $@-t $@ && \ - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ - -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ - -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \ - -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \ - -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \ - -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \ - -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \ - -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \ - -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \ - < $(srcdir)/errno.in.h; \ - } > $@-t && \ - mv $@-t $@ - # We need the following in order to create <stddef.h> when the system # doesn't have one that works with the given compiler. stddef.h: stddef.in.h ------------------------------ Message: 5 Date: Tue, 28 Sep 2010 18:58:41 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls config.h.in,1.81,1.82 configure,1.117,1.118 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/syscalls In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv31580/modules/syscalls Modified Files: config.h.in configure Log Message: regenerate for strerror in syscalls Index: config.h.in =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/config.h.in,v retrieving revision 1.81 retrieving revision 1.82 diff -u -d -r1.81 -r1.82 --- config.h.in 21 Sep 2010 16:15:46 -0000 1.81 +++ config.h.in 28 Sep 2010 18:58:39 -0000 1.82 @@ -13,6 +13,9 @@ /* Define to 1 when the gnulib module mktime should be tested. */ #undef GNULIB_TEST_MKTIME +/* Define to 1 when the gnulib module strerror should be tested. */ +#undef GNULIB_TEST_STRERROR + /* Define to 1 when the gnulib module strptime should be tested. */ #undef GNULIB_TEST_STRPTIME @@ -56,6 +59,10 @@ don't. */ #undef HAVE_DECL_SIGNGAM +/* Define to 1 if you have the declaration of `strerror', and to 0 if you + don't. */ +#undef HAVE_DECL_STRERROR + /* Define to 1 if you have the declaration of `strncasecmp', and to 0 if you don't. */ #undef HAVE_DECL_STRNCASECMP @@ -564,9 +571,6 @@ /* Define to 1 if you have the `strcasecmp' function. */ #undef HAVE_STRCASECMP -/* Define to 1 if you have the `strerror' function. */ -#undef HAVE_STRERROR - /* Define to 1 if you have the <strings.h> header file. */ #undef HAVE_STRINGS_H @@ -747,6 +751,9 @@ /* Define to the version of this package. */ #undef PACKAGE_VERSION +/* Define this to 1 if strerror is broken. */ +#undef REPLACE_STRERROR + /* type of `resource' in setrlimit() declaration */ #undef RLIMIT_RESOURCE_T Index: configure =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/configure,v retrieving revision 1.117 retrieving revision 1.118 diff -u -d -r1.117 -r1.118 --- configure 21 Sep 2010 16:15:46 -0000 1.117 +++ configure 28 Sep 2010 18:58:39 -0000 1.118 @@ -642,6 +642,17 @@ GNULIB_ACCEPT GNULIB_CONNECT GNULIB_SOCKET +NEXT_AS_FIRST_DIRECTIVE_STRINGS_H +NEXT_STRINGS_H +EOVERFLOW_VALUE +EOVERFLOW_HIDDEN +ENOLINK_VALUE +ENOLINK_HIDDEN +EMULTIHOP_VALUE +EMULTIHOP_HIDDEN [...1531 lines suppressed...] +cat >>confdefs.h <<_ACEOF +#define REPLACE_STRERROR $REPLACE_STRERROR +_ACEOF + + fi + + + + + GNULIB_STRERROR=1 + + + +$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h + + + ac_fn_c_check_decl "$LINENO" "signgam" "ac_cv_have_decl_signgam" "#include <math.h> " if test "x$ac_cv_have_decl_signgam" = x""yes; then : ------------------------------ Message: 6 Date: Tue, 28 Sep 2010 18:58:41 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/regexp/gllib Makefile.in,1.23,1.24 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/regexp/gllib In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv31580/modules/regexp/gllib Modified Files: Makefile.in Log Message: regenerate for strerror in syscalls Index: Makefile.in =================================================================== RCS file: /cvsroot/clisp/clisp/modules/regexp/gllib/Makefile.in,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- Makefile.in 27 Sep 2010 22:11:06 -0000 1.23 +++ Makefile.in 28 Sep 2010 18:58:39 -0000 1.24 @@ -24,7 +24,7 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=modules/regexp/gllib --m4-base=modules/regexp/glm4 --doc-base=doc --tests-base=tests --aux-dir=src/build-aux --avoid=no-c++ --avoid=stdint --avoid=stdbool --avoid=havelib --avoid=gettext --avoid=localcharset --avoid=uniwidth/width --avoid=streq --avoid=uniname/uniname --avoid=unitypes --avoid=link-follow --avoid=host-cpu-c-abi --avoid=socklen --avoid=sockets --avoid=close-hook --avoid=setenv --avoid=unsetenv --avoid=nocrash --avoid=libsigsegv --avoid=gnu-make --avoid=gettimeofday --avoid=getpagesize --avoid=sys_time --avoid=sys_wait --avoid=alloca-opt --avoid=alloca --avoid=extensions --avoid=include_next --avoid=verify --avoid=string --avoid=mbsinit --avoid=wchar --avoid=wctype --avoid=mbrtowc --avoid=mbsrtowcs --avoid=memchr --avoid=nl_langinfo --no-libtool --macro-prefix=rx_gl --no-vc-files regex +# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=modules/regexp/gllib --m4-base=modules/regexp/glm4 --doc-base=doc --tests-base=tests --aux-dir=src/build-aux --avoid=no-c++ --avoid=stdint --avoid=stdbool --avoid=havelib --avoid=gettext --avoid=localcharset --avoid=uniwidth/width --avoid=streq --avoid=uniname/uniname --avoid=unitypes --avoid=link-follow --avoid=host-cpu-c-abi --avoid=socklen --avoid=sockets --avoid=close-hook --avoid=setenv --avoid=unsetenv --avoid=errno --avoid=nocrash --avoid=libsigsegv --avoid=gnu-make --avoid=gettimeofday --avoid=getpagesize --avoid=sys_time --avoid=sys_wait --avoid=alloca-opt --avoid=alloca --avoid=extensions --avoid=include_next --avoid=verify --avoid=string --avoid=mbsinit --avoid=wchar --avoid=wctype --avoid=mbrtowc --avoid=mbsrtowcs --avoid=memchr --avoid=nl_langinfo --no-libtool --macro-prefix=rx_gl --no-vc-files regex ------------------------------ Message: 7 Date: Tue, 28 Sep 2010 18:58:41 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src/gllib Makefile.in,1.41,1.42 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src/gllib In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv31580/src/gllib Modified Files: Makefile.in Log Message: regenerate for strerror in syscalls Index: Makefile.in =================================================================== RCS file: /cvsroot/clisp/clisp/src/gllib/Makefile.in,v retrieving revision 1.41 retrieving revision 1.42 diff -u -d -r1.41 -r1.42 --- Makefile.in 27 Sep 2010 22:11:07 -0000 1.41 +++ Makefile.in 28 Sep 2010 18:58:39 -0000 1.42 @@ -24,7 +24,7 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=src/gllib --m4-base=src/glm4 --doc-base=doc --tests-base=tests --aux-dir=src/build-aux --no-libtool --macro-prefix=gl --no-vc-files alloca alloca-opt close-hook extensions getpagesize gettext gettimeofday gnu-make havelib host-cpu-c-abi include_next libsigsegv link-follow localcharset mbrtowc mbsinit mbsrtowcs memchr nl_langinfo no-c++ nocrash setenv sockets socklen stdbool stdint streq string sys_time sys_wait uniname/uniname unitypes uniwidth/width unsetenv verify wchar wctype +# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=src/gllib --m4-base=src/glm4 --doc-base=doc --tests-base=tests --aux-dir=src/build-aux --no-libtool --macro-prefix=gl --no-vc-files alloca alloca-opt close-hook errno extensions getpagesize gettext gettimeofday gnu-make havelib host-cpu-c-abi include_next libsigsegv link-follow localcharset mbrtowc mbsinit mbsrtowcs memchr nl_langinfo no-c++ nocrash setenv sockets socklen stdbool stdint streq string sys_time sys_wait uniname/uniname unitypes uniwidth/width unsetenv verify wchar wctype ------------------------------ Message: 8 Date: Tue, 28 Sep 2010 19:26:47 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src ChangeLog, 1.7530, 1.7531 configure.in, 1.189, 1.190 makemake.in, 1.947, 1.948 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv8381/src Modified Files: ChangeLog configure.in makemake.in Log Message: * Makefile.devel ($(MAKEMAKE_TMP)): substitute --disable-option-checking for @module_configure_flags@ * src/configure.in: substitute $ac_configure_args for @module_configure_flags * src/makemake.in (module_configure_flags): use @module_configure_flags@ instead of hard-wired --disable-option-checking Index: ChangeLog =================================================================== RCS file: /cvsroot/clisp/clisp/src/ChangeLog,v retrieving revision 1.7530 retrieving revision 1.7531 diff -u -d -r1.7530 -r1.7531 --- ChangeLog 28 Sep 2010 18:43:30 -0000 1.7530 +++ ChangeLog 28 Sep 2010 19:26:42 -0000 1.7531 @@ -1,5 +1,14 @@ 2010-09-28 Sam Steingold <sd...@gn...> + * Makefile.devel ($(MAKEMAKE_TMP)): substitute + --disable-option-checking for @module_configure_flags@ + * configure.in: substitute $ac_configure_args + for @module_configure_flags + * makemake.in (module_configure_flags): use @module_configure_flags@ + instead of hard-wired --disable-option-checking + +2010-09-28 Sam Steingold <sd...@gn...> + get strerror from gnulib for POSIX:STRERROR * Makefile.devel (GNULIB_CORE): explicitly request already present errno (gnulib-imported): request strerror for syscalls Index: makemake.in =================================================================== RCS file: /cvsroot/clisp/clisp/src/makemake.in,v retrieving revision 1.947 retrieving revision 1.948 diff -u -d -r1.947 -r1.948 --- makemake.in 28 Sep 2010 18:24:29 -0000 1.947 +++ makemake.in 28 Sep 2010 19:26:44 -0000 1.948 @@ -191,8 +191,7 @@ elispdir='' vimdir='' aclocaldir='' -# http://www.gnu.org/software/autoconf/manual/html_node/Option-Checking.html -module_configure_flags='--disable-option-checking' +module_configure_flags='@module_configure_flags@' CP='cp -p' LN_S='ln -s' HLN='ln' Index: configure.in =================================================================== RCS file: /cvsroot/clisp/clisp/src/configure.in,v retrieving revision 1.189 retrieving revision 1.190 diff -u -d -r1.189 -r1.190 --- configure.in 28 Sep 2010 18:24:29 -0000 1.189 +++ configure.in 28 Sep 2010 19:26:44 -0000 1.190 @@ -182,5 +182,6 @@ dnl dnl AC_SUBST([SHELL]) +AC_SUBST([module_configure_flags], ["$ac_configure_args"]) AC_CONFIG_FILES([makemake], [chmod a+x makemake]) AC_OUTPUT ------------------------------ ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ------------------------------ _______________________________________________ clisp-cvs mailing list cli...@li... https://lists.sourceforge.net/lists/listinfo/clisp-cvs End of clisp-cvs Digest, Vol 53, Issue 31 ***************************************** |
|
From: Sam S. <sd...@gn...> - 2010-09-28 19:12:20
|
Don Cohen wrote:
> I don't understand what this is all about.
> I thought that clisp had no idea about screens and was just running a
> top level REP loop connected to a set of character streams.
>
> > +global void resize_screen (int lines, int columns) {
> > + rows = lines; cols = columns;
> > + if (curr->image) redisplay();
> > +}
>
> Under what circumstance would curr->image be true?
>
this code is specific to the SCREEN package (window streams).
it is of no interest to you if you are not using that.
|
|
From: Sam S. <sd...@gn...> - 2010-09-28 19:11:10
|
Don Cohen wrote: > Joe...@t-... writes: > > It would be nice if this could be made to work with MS-Windows text > > consoles as well... > Thanks for reminding me - I would also like to be able to handle this > signal. I don't use screen (does anyone really use it?) but I do use > the terminal emulation mode that comes with xterm and putty. > > Is there some general mechanism for clisp programs to handle the > signals that make sense? There should be. take a look at clisp/modules/bindings/glibc/wrap.lisp I think Vladimir & Jorg will have something to warn you about ;-( |
|
From: <don...@is...> - 2010-09-28 19:05:20
|
I don't understand what this is all about.
I thought that clisp had no idea about screens and was just running a
top level REP loop connected to a set of character streams.
> +global void resize_screen (int lines, int columns) {
> + rows = lines; cols = columns;
> + if (curr->image) redisplay();
> +}
Under what circumstance would curr->image be true?
|