1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-02 04:40:29 +02:00
guile/module
Ludovic Courtès 073167ef7b Allow compilation with `--disable-posix'.
Reported by Dmitry Dzhus <dima@dzhus.org>.

* configure.ac: Remove `AC_LIBOBJ([filesys])'.  Document
  `--disable-posix' as omitting non-essential POSIX interfaces.

* libguile/Makefile.am (libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES):
  Add `filesys.c'.
  (DOT_DOC_FILES): Add `filesys.doc'.
  (EXTRA_libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES): Remove
  `filesys.c'.

* libguile/posix.c (scm_mkstemp, scm_access): Move to `filesys.c'.
  (scm_init_posix): Move `R_OK' etc. to `filesys.c'.

* libguile/filesys.c (scm_chown, scm_chmod, scm_umask, scm_open_fdes,
  scm_open, scm_close, scm_close_fdes, scm_link, scm_tc16_dir,
  scm_directory_stream_p, scm_opendir, scm_readdir, scm_rewinddir,
  scm_closedir, scm_dir_print, scm_dir_free, scm_chdir, scm_getcwd,
  set_element, fill_select_type, get_element, retrieve_select_type,
  scm_select, scm_fcntl, scm_fsync, scm_symlink, scm_readlink,
  scm_lstat, scm_copy_file): Conditionalize on HAVE_POSIX.
  (scm_mkstemp, scm_access): New functions.
  (scm_init_filesys): Conditionalize `scm_tc16_dir', `O_RDONLY', etc. on
  HAVE_POSIX.  Define `R_OK', `W_OK', etc.

* libguile/fports.c (fport_print): Use `scm_ttyname' only when
  HAVE_POSIX.

* libguile/i18n.c (lock_locale_mutex, unlock_locale_mutex): New
  functions.  Update users of `scm_i_locale_mutex' to use them.

* libguile/init.c (scm_i_init_guile): Always call `scm_init_filesys'.

* meta/guile-tools.in (main): Use `setlocale' only when it is defined.

* module/ice-9/boot-9.scm: Always load `ice-9/posix'.
2011-04-15 00:09:16 +02:00
..
ice-9 Allow compilation with `--disable-posix'. 2011-04-15 00:09:16 +02:00
language fix analyze.scm literal string warnings 2011-04-14 16:53:18 +02:00
oop Allow GOOPS getters to add methods to primitive generics 2011-02-14 20:33:11 +01:00
rnrs (rnrs arithmetic fixnums) fixnum? export a procedure again 2011-04-13 12:50:41 +02:00
scripts Remove statements about scripts/* that are no longer true 2011-03-25 19:45:14 +00:00
srfi Move `define-inlinable' into the default namespace 2011-04-07 01:12:26 +02:00
sxml sxml->xml fix 2010-12-02 22:24:26 +01:00
system ignore SIGPIPE in (system repl server) 2011-04-11 10:13:48 +02:00
texinfo fix stexi->html double translation 2011-03-26 13:33:40 +01:00
web web server more assiduous about closing ports 2011-02-24 11:10:49 +01:00
Makefile.am add (ice-9 command-line) 2011-04-14 16:06:07 +02:00
rnrs.scm Enhance transcoder-related functionality of `(rnrs io ports)' 2011-03-13 23:14:43 +01:00
statprof.scm remove a number of debug options 2010-09-24 20:57:01 +02:00
texinfo.scm Remove unused top-level variables. 2010-01-11 01:21:14 +01:00