From: <cli...@li...> - 2010-09-28 18:43:40
|
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.7529,1.7530 (Sam Steingold) 2. clisp/modules/wildcard/gllib Makefile.am,1.10,1.11 (Sam Steingold) 3. clisp/modules/wildcard/glm4 gnulib-cache.m4,1.9,1.10 (Sam Steingold) 4. clisp/src/gllib Makefile.am,1.34,1.35 (Sam Steingold) 5. clisp/modules/syscalls/gllib intprops.h, NONE, 1.1 strerror.c, NONE, 1.1 Makefile.am, 1.18, 1.19 errno.in.h, 1.3, NONE (Sam Steingold) 6. clisp/src/glm4 gnulib-cache.m4,1.24,1.25 (Sam Steingold) ---------------------------------------------------------------------- Message: 1 Date: Tue, 28 Sep 2010 18:43:32 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src ChangeLog,1.7529,1.7530 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv26828/src Modified Files: ChangeLog 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: ChangeLog =================================================================== RCS file: /cvsroot/clisp/clisp/src/ChangeLog,v retrieving revision 1.7529 retrieving revision 1.7530 diff -u -d -r1.7529 -r1.7530 --- ChangeLog 28 Sep 2010 18:24:29 -0000 1.7529 +++ ChangeLog 28 Sep 2010 18:43:30 -0000 1.7530 @@ -1,5 +1,20 @@ 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 + * 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 + +2010-09-28 Sam Steingold <sd...@gn...> + * configure.in: simplify makemake generation, substitute SHELL * makemake.in: use @SHELL@ * Makefile.devel ($(MAKEMAKE_TMP)): substitute @SHELL@ ------------------------------ Message: 2 Date: Tue, 28 Sep 2010 18:43:31 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/wildcard/gllib Makefile.am,1.10,1.11 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-serv26828/modules/wildcard/gllib Modified Files: Makefile.am 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: Makefile.am =================================================================== RCS file: /cvsroot/clisp/clisp/modules/wildcard/gllib/Makefile.am,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- Makefile.am 27 Sep 2010 22:07:20 -0000 1.10 +++ Makefile.am 28 Sep 2010 18:43:29 -0000 1.11 @@ -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/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 AUTOMAKE_OPTIONS = 1.5 gnits ------------------------------ Message: 3 Date: Tue, 28 Sep 2010 18:43:32 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/wildcard/glm4 gnulib-cache.m4,1.9,1.10 To: cli...@li... Message-ID: <E1P...@sf...> Update of /cvsroot/clisp/clisp/modules/wildcard/glm4 In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv26828/modules/wildcard/glm4 Modified Files: gnulib-cache.m4 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: gnulib-cache.m4 =================================================================== RCS file: /cvsroot/clisp/clisp/modules/wildcard/glm4/gnulib-cache.m4,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- gnulib-cache.m4 27 Sep 2010 22:07:20 -0000 1.9 +++ gnulib-cache.m4 28 Sep 2010 18:43:29 -0000 1.10 @@ -15,14 +15,14 @@ # Specification in the form of a command-line invocation: -# 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 +# 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 # Specification in the form of a few gnulib-tool.m4 macro invocations: gl_LOCAL_DIR([]) gl_MODULES([ fnmatch-gnu ]) -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 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]) gl_SOURCE_BASE([modules/wildcard/gllib]) gl_M4_BASE([modules/wildcard/glm4]) gl_PO_BASE([]) ------------------------------ Message: 4 Date: Tue, 28 Sep 2010 18:43:32 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src/gllib Makefile.am,1.34,1.35 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-serv26828/src/gllib Modified Files: Makefile.am 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: Makefile.am =================================================================== RCS file: /cvsroot/clisp/clisp/src/gllib/Makefile.am,v retrieving revision 1.34 retrieving revision 1.35 diff -u -d -r1.34 -r1.35 --- Makefile.am 27 Sep 2010 22:07:20 -0000 1.34 +++ Makefile.am 28 Sep 2010 18:43:30 -0000 1.35 @@ -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=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 AUTOMAKE_OPTIONS = 1.5 gnits subdir-objects ------------------------------ Message: 5 Date: Tue, 28 Sep 2010 18:43:31 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/modules/syscalls/gllib intprops.h, NONE, 1.1 strerror.c, NONE, 1.1 Makefile.am, 1.18, 1.19 errno.in.h, 1.3, 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-serv26828/modules/syscalls/gllib Modified Files: Makefile.am Added Files: intprops.h strerror.c Removed Files: errno.in.h 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 --- NEW FILE: strerror.c --- /* strerror.c --- POSIX compatible system error routine Copyright (C) 2007-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> #include <string.h> #if REPLACE_STRERROR # include <errno.h> # include <stdio.h> # if GNULIB_defined_ESOCK /* native Windows platforms */ # if HAVE_WINSOCK2_H # include <winsock2.h> # endif # endif # include "intprops.h" /* Use the system functions, not the gnulib overrides in this file. */ # undef sprintf # undef strerror # if ! HAVE_DECL_STRERROR # define strerror(n) NULL # endif char * rpl_strerror (int n) { char const *msg = NULL; /* These error messages are taken from glibc/sysdeps/gnu/errlist.c. */ switch (n) { # if GNULIB_defined_ETXTBSY case ETXTBSY: msg = "Text file busy"; break; # endif # if GNULIB_defined_ESOCK /* native Windows platforms */ /* EWOULDBLOCK is the same as EAGAIN. */ case EINPROGRESS: msg = "Operation now in progress"; break; case EALREADY: msg = "Operation already in progress"; break; case ENOTSOCK: msg = "Socket operation on non-socket"; break; case EDESTADDRREQ: msg = "Destination address required"; break; case EMSGSIZE: msg = "Message too long"; break; case EPROTOTYPE: msg = "Protocol wrong type for socket"; break; case ENOPROTOOPT: msg = "Protocol not available"; break; case EPROTONOSUPPORT: msg = "Protocol not supported"; break; case ESOCKTNOSUPPORT: msg = "Socket type not supported"; break; case EOPNOTSUPP: msg = "Operation not supported"; break; case EPFNOSUPPORT: msg = "Protocol family not supported"; break; case EAFNOSUPPORT: msg = "Address family not supported by protocol"; break; case EADDRINUSE: msg = "Address already in use"; break; case EADDRNOTAVAIL: msg = "Cannot assign requested address"; break; case ENETDOWN: msg = "Network is down"; break; case ENETUNREACH: msg = "Network is unreachable"; break; case ENETRESET: msg = "Network dropped connection on reset"; break; case ECONNABORTED: msg = "Software caused connection abort"; break; case ECONNRESET: msg = "Connection reset by peer"; break; case ENOBUFS: msg = "No buffer space available"; break; case EISCONN: msg = "Transport endpoint is already connected"; break; case ENOTCONN: msg = "Transport endpoint is not connected"; break; case ESHUTDOWN: msg = "Cannot send after transport endpoint shutdown"; break; case ETOOMANYREFS: msg = "Too many references: cannot splice"; break; case ETIMEDOUT: msg = "Connection timed out"; break; case ECONNREFUSED: msg = "Connection refused"; break; case ELOOP: msg = "Too many levels of symbolic links"; break; case EHOSTDOWN: msg = "Host is down"; break; case EHOSTUNREACH: msg = "No route to host"; break; case EPROCLIM: msg = "Too many processes"; break; case EUSERS: msg = "Too many users"; break; case EDQUOT: msg = "Disk quota exceeded"; break; case ESTALE: msg = "Stale NFS file handle"; break; case EREMOTE: msg = "Object is remote"; break; # if HAVE_WINSOCK2_H /* WSA_INVALID_HANDLE maps to EBADF */ /* WSA_NOT_ENOUGH_MEMORY maps to ENOMEM */ /* WSA_INVALID_PARAMETER maps to EINVAL */ case WSA_OPERATION_ABORTED: msg = "Overlapped operation aborted"; break; case WSA_IO_INCOMPLETE: msg = "Overlapped I/O event object not in signaled state"; break; case WSA_IO_PENDING: msg = "Overlapped operations will complete later"; break; /* WSAEINTR maps to EINTR */ /* WSAEBADF maps to EBADF */ /* WSAEACCES maps to EACCES */ /* WSAEFAULT maps to EFAULT */ /* WSAEINVAL maps to EINVAL */ /* WSAEMFILE maps to EMFILE */ /* WSAEWOULDBLOCK maps to EWOULDBLOCK */ /* WSAEINPROGRESS is EINPROGRESS */ /* WSAEALREADY is EALREADY */ /* WSAENOTSOCK is ENOTSOCK */ /* WSAEDESTADDRREQ is EDESTADDRREQ */ /* WSAEMSGSIZE is EMSGSIZE */ /* WSAEPROTOTYPE is EPROTOTYPE */ /* WSAENOPROTOOPT is ENOPROTOOPT */ /* WSAEPROTONOSUPPORT is EPROTONOSUPPORT */ /* WSAESOCKTNOSUPPORT is ESOCKTNOSUPPORT */ /* WSAEOPNOTSUPP is EOPNOTSUPP */ /* WSAEPFNOSUPPORT is EPFNOSUPPORT */ /* WSAEAFNOSUPPORT is EAFNOSUPPORT */ /* WSAEADDRINUSE is EADDRINUSE */ /* WSAEADDRNOTAVAIL is EADDRNOTAVAIL */ /* WSAENETDOWN is ENETDOWN */ /* WSAENETUNREACH is ENETUNREACH */ /* WSAENETRESET is ENETRESET */ /* WSAECONNABORTED is ECONNABORTED */ /* WSAECONNRESET is ECONNRESET */ /* WSAENOBUFS is ENOBUFS */ /* WSAEISCONN is EISCONN */ /* WSAENOTCONN is ENOTCONN */ /* WSAESHUTDOWN is ESHUTDOWN */ /* WSAETOOMANYREFS is ETOOMANYREFS */ /* WSAETIMEDOUT is ETIMEDOUT */ /* WSAECONNREFUSED is ECONNREFUSED */ /* WSAELOOP is ELOOP */ /* WSAENAMETOOLONG maps to ENAMETOOLONG */ /* WSAEHOSTDOWN is EHOSTDOWN */ /* WSAEHOSTUNREACH is EHOSTUNREACH */ /* WSAENOTEMPTY maps to ENOTEMPTY */ /* WSAEPROCLIM is EPROCLIM */ /* WSAEUSERS is EUSERS */ /* WSAEDQUOT is EDQUOT */ /* WSAESTALE is ESTALE */ /* WSAEREMOTE is EREMOTE */ case WSASYSNOTREADY: msg = "Network subsystem is unavailable"; break; case WSAVERNOTSUPPORTED: msg = "Winsock.dll version out of range"; break; case WSANOTINITIALISED: msg = "Successful WSAStartup not yet performed"; break; case WSAEDISCON: msg = "Graceful shutdown in progress"; break; case WSAENOMORE: case WSA_E_NO_MORE: msg = "No more results"; break; case WSAECANCELLED: case WSA_E_CANCELLED: msg = "Call was canceled"; break; case WSAEINVALIDPROCTABLE: msg = "Procedure call table is invalid"; break; case WSAEINVALIDPROVIDER: msg = "Service provider is invalid"; break; case WSAEPROVIDERFAILEDINIT: msg = "Service provider failed to initialize"; break; case WSASYSCALLFAILURE: msg = "System call failure"; break; case WSASERVICE_NOT_FOUND: msg = "Service not found"; break; case WSATYPE_NOT_FOUND: msg = "Class type not found"; break; case WSAEREFUSED: msg = "Database query was refused"; break; case WSAHOST_NOT_FOUND: msg = "Host not found"; break; case WSATRY_AGAIN: msg = "Nonauthoritative host not found"; break; case WSANO_RECOVERY: msg = "Nonrecoverable error"; break; case WSANO_DATA: msg = "Valid name, no data record of requested type"; break; /* WSA_QOS_* omitted */ # endif # endif # if GNULIB_defined_ENOMSG case ENOMSG: msg = "No message of desired type"; break; # endif # if GNULIB_defined_EIDRM case EIDRM: msg = "Identifier removed"; break; # endif # if GNULIB_defined_ENOLINK case ENOLINK: msg = "Link has been severed"; break; # endif # if GNULIB_defined_EPROTO case EPROTO: msg = "Protocol error"; break; # endif # if GNULIB_defined_EMULTIHOP case EMULTIHOP: msg = "Multihop attempted"; break; # endif # if GNULIB_defined_EBADMSG case EBADMSG: msg = "Bad message"; break; # endif # if GNULIB_defined_EOVERFLOW case EOVERFLOW: msg = "Value too large for defined data type"; break; # endif # if GNULIB_defined_ENOTSUP case ENOTSUP: msg = "Not supported"; break; # endif # if GNULIB_defined_ESTALE case ESTALE: msg = "Stale NFS file handle"; break; # endif # if GNULIB_defined_ECANCELED case ECANCELED: msg = "Operation canceled"; break; # endif } if (msg) return (char *) msg; { char *result = strerror (n); if (result == NULL || result[0] == '\0') { static char const fmt[] = "Unknown error (%d)"; static char msg_buf[sizeof fmt + INT_STRLEN_BOUND (n)]; sprintf (msg_buf, fmt, n); return msg_buf; } return result; } } #endif --- NEW FILE: intprops.h --- /* intprops.h -- properties of integer types Copyright (C) 2001, 2002, 2003, 2004, 2005, 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. */ #ifndef GL_INTPROPS_H # define GL_INTPROPS_H # include <limits.h> /* The extra casts in the following macros work around compiler bugs, e.g., in Cray C 5.0.3.0. */ /* True if the arithmetic type T is an integer type. bool counts as an integer. */ # define TYPE_IS_INTEGER(t) ((t) 1.5 == 1) /* True if negative values of the signed integer type T use two's complement, ones' complement, or signed magnitude representation, respectively. Much GNU code assumes two's complement, but some people like to be portable to all possible C hosts. */ # define TYPE_TWOS_COMPLEMENT(t) ((t) ~ (t) 0 == (t) -1) # define TYPE_ONES_COMPLEMENT(t) ((t) ~ (t) 0 == 0) # define TYPE_SIGNED_MAGNITUDE(t) ((t) ~ (t) 0 < (t) -1) /* True if the arithmetic type T is signed. */ # define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) /* The maximum and minimum values for the integer type T. These macros have undefined behavior if T is signed and has padding bits. If this is a problem for you, please let us know how to fix it for your host. */ # define TYPE_MINIMUM(t) \ ((t) (! TYPE_SIGNED (t) \ ? (t) 0 \ : TYPE_SIGNED_MAGNITUDE (t) \ ? ~ (t) 0 \ : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) # define TYPE_MAXIMUM(t) \ ((t) (! TYPE_SIGNED (t) \ ? (t) -1 \ : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) /* Return zero if T can be determined to be an unsigned type. Otherwise, return 1. When compiling with GCC, INT_STRLEN_BOUND uses this macro to obtain a tighter bound. Otherwise, it overestimates the true bound by one byte when applied to unsigned types of size 2, 4, 16, ... bytes. The symbol signed_type_or_expr__ is private to this header file. */ # if __GNUC__ >= 2 # define signed_type_or_expr__(t) TYPE_SIGNED (__typeof__ (t)) # else # define signed_type_or_expr__(t) 1 # endif /* Bound on length of the string representing an integer type or expression T. Subtract 1 for the sign bit if T is signed; log10 (2.0) < 146/485; add 1 for integer division truncation; add 1 more for a minus sign if needed. */ # define INT_STRLEN_BOUND(t) \ ((sizeof (t) * CHAR_BIT - signed_type_or_expr__ (t)) * 146 / 485 \ + signed_type_or_expr__ (t) + 1) /* Bound on buffer size needed to represent an integer type or expression T, including the terminating null. */ # define INT_BUFSIZE_BOUND(t) (INT_STRLEN_BOUND (t) + 1) #endif /* GL_INTPROPS_H */ Index: Makefile.am =================================================================== RCS file: /cvsroot/clisp/clisp/modules/syscalls/gllib/Makefile.am,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- Makefile.am 27 Sep 2010 22:07:20 -0000 1.18 +++ Makefile.am 28 Sep 2010 18:43:29 -0000 1.19 @@ -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=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 AUTOMAKE_OPTIONS = 1.5 gnits @@ -91,33 +91,6 @@ ## end gnulib module c++defs -## begin gnulib module errno - -BUILT_SOURCES += $(ERRNO_H) - -# 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 $@ -MOSTLYCLEANFILES += errno.h errno.h-t - -EXTRA_DIST += errno.in.h - -## end gnulib module errno - ## begin gnulib module gethostname @@ -127,6 +100,13 @@ ## end gnulib module gethostname +## begin gnulib module intprops + + +EXTRA_DIST += intprops.h + +## end gnulib module intprops + ## begin gnulib module mbrlen @@ -177,6 +157,15 @@ ## end gnulib module strcase +## begin gnulib module strerror + + +EXTRA_DIST += strerror.c + +EXTRA_libgnu_a_SOURCES += strerror.c + +## end gnulib module strerror + ## begin gnulib module strftime --- errno.in.h DELETED --- ------------------------------ Message: 6 Date: Tue, 28 Sep 2010 18:43:32 +0000 From: Sam Steingold <sd...@us...> Subject: clisp/src/glm4 gnulib-cache.m4,1.24,1.25 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-serv26828/src/glm4 Modified Files: gnulib-cache.m4 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: gnulib-cache.m4 =================================================================== RCS file: /cvsroot/clisp/clisp/src/glm4/gnulib-cache.m4,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- gnulib-cache.m4 27 Sep 2010 22:07:20 -0000 1.24 +++ gnulib-cache.m4 28 Sep 2010 18:43:30 -0000 1.25 @@ -15,7 +15,7 @@ # Specification in the form of a command-line invocation: -# 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 +# 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 # Specification in the form of a few gnulib-tool.m4 macro invocations: gl_LOCAL_DIR([]) @@ -23,6 +23,7 @@ alloca alloca-opt close-hook + errno extensions getpagesize gettext ------------------------------ ------------------------------------------------------------------------------ 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 30 ***************************************** |