1. 19 Nov, 2020 2 commits
  2. 30 Oct, 2020 3 commits
    • janneke's avatar
      mingw: Define SIGHUP, SIGPIPE. · b3b5014e
      janneke authored
      This helps 8sync.
      8sync/systems/web.scm:87:2: In procedure module-lookup: Unbound variable: SIGPIPE
      * libguile/posix.c (SIGHUP, SIGPIPE)[__MINGW32__]: New define.
    • janneke's avatar
      mingw: Install mingw_take_signal. · 719388f3
      janneke authored
      After installing a signal handler, these are handled
          * C-c
          * kill -SIGINT <guile.exe-pid> (the wine process) works
      these result in a direct terminate (or kill even?)
          - kill <guile.exe-pid>
          - wine cmd /c guile -c '(kill <guile-exe.pid> SIGINT)'
          - wine cmd /c guile -c '(kill <guile-exe.pid> SIGTERM)'
      * libguile/scmsigs.c (mingw_take_signal)[__MINGW32__]: New function.
      install_mingw_take_signal)[__MINGW32__]: New function.
      (scm_init_scmsigs)[__MINGW32__]: Use it.
    • janneke's avatar
      Revert "mingw: Add `scm_sigaction_for_thread' stub." · c0307b6b
      janneke authored
      This is unnecessary, and it breaks system* (scm_sigaction_for_thread
      should return a pair).
      This reverts commit 496a081a.
  3. 13 Aug, 2020 3 commits
    • janneke's avatar
      mingw: Support for x86_64-w64-mingw32. · f0fade08
      janneke authored
      Until now, the assumption was made that POINTER and LONG are the same
      size.  This is not so on x86_64-MinGW, which uses a 4-byte LONG and an
      8-byte POINTER.  This patch introduces FIXNUM-SIZE, fixing x86_64-MinGW.
      * module/system/base/target.scm (%native-word-size): Use sizeof long
      instead of '*.  Fixes word size on x86_64-w64-mingw32
      (%native-fixnum-size, %target-fixnum-size): New variable.
      (triplet-pointer-size): Add case for mingw.
      (target-fixnum-size): New procedure.
      * libguile/bytevectors.c: Use SIZEOF_LONG > 4 instead of SIZEOF_VOID.
      * libguile/vm-engine.c (INUM_MAX,INUM_MIN,INUM_STEP): Remove.
      (BR_ARITHMETIC): Use scm_t_inum and SCM_I_INUM instead of
      scm_t_signed_bits and SCM_UNPACK.
      * module/system/vm/assembler.scm (<asm>)[ fixnum-size]: New field.
      * module/system/vm/assembler.scm (make-assembler): Add #:fixnum-size
      (immediate-bits): Use fixnum-size for immediate size.
    • janneke's avatar
      mingw: nftw: Use absolute-file-name? · 331d8689
      janneke authored
      * module/ice-9/ftw.scm (nftw): Use absolute-file-name?
    • janneke's avatar
  4. 12 Aug, 2020 8 commits
  5. 04 Mar, 2020 1 commit
  6. 26 Apr, 2018 2 commits
  7. 25 Apr, 2018 1 commit
    • Mike Gran's avatar
      Don't presume sigset_t available in <signal.h> · d5b48cb0
      Mike Gran authored
      In MinGW, sigset_t is not availab.e
      * libguile/gen-scmconfig.c (SCM_HAVE_PTHREAD_SIGMASK): new conditional
      * libguile/null-threads.h (scm_i_pthread_sigmask): now conditional on
  8. 20 Apr, 2018 2 commits
  9. 19 Apr, 2018 3 commits
  10. 18 Apr, 2018 5 commits
  11. 17 Apr, 2018 6 commits
    • Mike Gran's avatar
      Let read-line handle alternate line endings · 77b33170
      Mike Gran authored
      Adds CRLF, NEL, PS and LS as line endings. %read-line will return
      these. In the case of CRLF, %read-line will return a string "\r\n"
      as the line ending.
      * libguile/rdelim.c (scm_read_line): handle more line delimiters
      * test-suite/tests/rdelim.test ("two lines, split, CRLF"): new test
        ("two long lines, split, CRLF", "two lines, split, NEL"): new tests
        ("two lines, split, LS", "two lines, split, PS"): new tests
    • Mike Gran's avatar
      ftw test should handle missing symlink procedure · 34131e3a
      Mike Gran authored
      Throw unresolved if symlink is not defined
      * test-suite/tests/ftw.test (dangling symlink and lstat): modified
        (dangling symlink and stat): modified
        (file-system-tree test-suite): modified
        (symlink to directory): modified
    • Mike Gran's avatar
      ice-9 ftw: handle non-working inodes · 1405b76d
      Mike Gran authored
      * module/ice-9/ftw.scm (visited?-proc): accept filename for string hash
        (file-system-fold): use string hash if ino = 0
        (ftw): use new visited?-proc
      * test-suite/tests/ftw.test (visited?-proc valid inodes): add filenames to visited?-proc calls
        (visited?-proc broken inodes): new tests
        (%top-srcdir): canonicalize-path
    • Mike Gran's avatar
      ice-9 ftw: handle missing getuid and getgid · 5cad8026
      Mike Gran authored
      * module/ice-9/ftw.scm (getuid-or-false, getgid-or-false): new macros
        (stat-dir-readable?-proc): don't overwrite arguments
        (ftw, nftw): use new macros
      * test-suite/tests/ftw.test (test-EACCES): don't presume getuid exists
    • Mike Gran's avatar
      remove a re-definition of when/unless · 851c05a5
      Mike Gran authored
      They are now in core library.
      * module/scripts/snarf-check-and-output-texi.scm (when, unless): removed
    • Mike Gran's avatar
      In libpath.h, use absolute paths on MinGW · 7b6c4835
      Mike Gran authored
      * libguile/Makefile.am (libpath.h): convert msys paths to absolute paths
  12. 16 Apr, 2018 1 commit
  13. 13 Apr, 2018 1 commit
  14. 12 Apr, 2018 1 commit
  15. 10 Apr, 2018 1 commit
    • Mike Gran's avatar
      Use gnulib for getpagesize · a2b20d8f
      Mike Gran authored
      * lib/Makefile.am: updated
      * lib/getpagesize.c: new file
      * lib/getpagesize.m4: new file
      * lib/gnulib-cache.m4: updated
      * lib/gnulib-comp.m4: updated