Commit f5116ca1 authored by Erick's avatar Erick

Added documentention for MAKE-DIRECTORIES and ENSURE-DIRECTORIES-EXIST

parent 71a99614
2010-08-09 Erick Gallesio <eg@unice.fr>
* lib/boot.stk, src/boot.c, src/boot.img:
suppressed the http package autoload, since it is not used by the
distribution or ScmPkg packages
[1fec07f22ae9] [tip]
* src/sport.c, src/stklos.h, src/vport.c:
Bug fix: NULL for fileport names was a bad idea for virtual port,
use a constant C string instead
[e5c669381366]
2010-08-08 Erick Gallesio <eg@unice.fr>
* doc/stklos-pkg.1.in, doc/stklos.1.in, lib/bonus.stk, lib/boot.stk,
pkgman/main.stk, pkgman/params.stk, pkgman/repository.stk,
src/boot.c, src/boot.img:
Added conf-dir option to stklos-pkg
[bf2b517bc0a4]
2010-08-07 Erick Gallesio <eg@unice.fr>
* doc/stklos.1.in, lib/boot.stk, lib/repl-readline.stk, src/boot.c,
src/boot.img, src/stklos.c:
Fix of the -D option
[4184904a2606]
2010-08-06 Erick Gallesio <eg@unice.fr>
* Makefile.in, configure, configure.ac, doc/Makefile.in,
examples/Makefile.in, lib/Lalr.d/Makefile.in, lib/Makefile.in,
lib/Match.d/Makefile.in, lib/SILex.d/Makefile.in,
lib/ScmPkg.d/Makefile.in, pkgman/Makefile.in, src/Makefile.in,
src/extraconf.h.in, src/system.c, tests/Makefile.in,
utils/Makefile.in, utils/shlib-options:
added %shared-suffix for MacOs which distinguishes libraries and
modules
[f2e7c60f0846]
2010-08-05 Erick Gallesio <eg@unice.fr>
* lib/readline.stk, lib/repl-readline.stk, lib/repl.stk, src/boot.c,
src/boot.img, src/ffi.c:
Added readline support for libedit compatibility layer
[c7f25778e7a8]
* src/ffi.c:
Added support for accessing C variables from Scheme
[c8395068e215]
2010-08-04 Erick Gallesio <eg@unice.fr>
* .hgignore, lib/boot.stk, lib/readline.stk, lib/repl.stk,
lib/runtime.stk, src/boot.c, src/boot.img:
Added an information telling if readline support is available
[06c7a6646c8b]
2010-08-02 Erick Gallesio <eg@unice.fr>
* SUPPORTED-SRFIS, doc/skb/srfi.skb, doc/skb/srfi.stk,
lib/Makefile.am, lib/Makefile.in, lib/srfi-100.stk:
Added SRFI-100 support
[fd12b6f6b31b]
* examples/threads.stk, lib/bonus.stk, src/boot.c, src/boot.img:
Changed the thread demo
[23bf87bec3a1]
2010-07-25 Erick Gallesio <eg@unice.fr>
* lib/readline.stk, lib/repl-readline.stk, src/boot.c, src/boot.img,
src/extraconf.h.in, src/system.c:
Bug fix: EOF on a recursive repl was incorrect
[d58d841e976e]
2010-06-30 Erick Gallesio <eg@unice.fr>
* doc/stklos-pkg.1.in, doc/stklos.1.in, lib/Makefile.am,
lib/Makefile.in, lib/STklos.init, lib/boot.stk, lib/load.stk,
lib/repl-readline.stk, lib/srfi-59.stk, src/boot.c, src/boot.img:
Use the STKLOS_CONFDIR shell variable to set the configuration dir.
If unset the configuration directory is ~/.stklos
[f12856073c61]
2010-06-23 Erick Gallesio <eg@unice.fr>
* .hgignore, PACKAGES-USED, ffi/TODO, ffi/ltcf-c.sh, ffi/ltcf-cxx.sh,
ffi/ltcf-gcj.sh, ffi/ltconfig, ffi/mkinstalldirs, lib/Makefile.am,
lib/Makefile.in, lib/boot.stk, lib/ffi.stk, lib/readline.stk,
lib/repl-readline.stk, src/boot.c, src/boot.img:
Added GNU readline support in REPL if the readline lib can be loaded
dynamically
[5d1f0797e3d4]
2010-05-16 Erick Gallesio <eg@unice.fr>
* ffi/*:
FFI is now part of the bootstrap. libffi is now at version 3.0.9
[68fd2520b97e]
2010-05-15 Erick Gallesio <eg@unice.fr>
* lib/bonus.stk, lib/repl.stk, src/boot.c, src/boot.img,
src/cpointer.c:
REPL customization: numerous parameters added to allow the
integration of readline or editline
[567be7a9f13a]
2010-05-14 Erick Gallesio <eg@unice.fr>
* src/cpointer.c:
Added fucntions allocate-bytes and free-bytes
[720165de720a]
* utils/stklos-install:
Permit old stklos-install command to use curl or fetch when wget is
not present in path
[0f755ef27230]
* lib/compiler.stk, src/boot.c, src/boot.img:
Forms like (let () (define a 0)) have now a decent error message
[a473a7eee615]
2010-05-08 Erick Gallesio <eg@unice.fr>
* Makefile.in, aclocal.m4, configure, configure.ac, doc/Makefile.in,
examples/Makefile.in, lib/Lalr.d/Makefile.in, lib/Makefile.in,
lib/Match.d/Makefile.in, lib/SILex.d/Makefile.in,
lib/ScmPkg.d/Makefile.in, pkgman/Makefile.in, src/Makefile.in,
src/stklosconf.h.in, tests/Makefile.in, utils/Makefile.in:
Preparing version stklos-1.00-beta4
[f93aef72ca60]
2010-04-27 Erick Gallesio <eg@unice.fr>
* lib/compiler.stk, lib/runtime.stk, src/boot.c, src/boot.img:
Fixed a bug in internal defines rewriting. Internal define rewriting
was done before macro-expanding conducting to issuing incorrect "bad
internal definition" when a macro expansion intoduce a DEFINE
symbol. Thanks to Emmanuel Medernach for signaling this bug
[2938e306dcf7]
2010-04-05 Erick Gallesio <eg@unice.fr>
* SUPPORTED-SRFIS, doc/skb/srfi.skb, lib/Makefile.am, lib/Makefile.in,
lib/srfi-0.stk, lib/srfi-74.stk, src/boot.c, src/boot.img,
src/system.c, tests/test-srfi.stk:
Added SRFI-74 support
[137638f06a9a]
2010-04-04 Erick Gallesio <eg@unice.fr>
* Makefile.am, Makefile.in:
Preparing version stklos-1.00-beta3
[43a557589eee]
* Makefile.in, aclocal.m4, configure, configure.ac, doc/Makefile.in,
examples/Makefile.in, lib/Lalr.d/Makefile.in, lib/Makefile.in,
lib/Match.d/Makefile.in, lib/SILex.d/Makefile.in,
lib/ScmPkg.d/Makefile.in, pkgman/Makefile.in, src/Makefile.in,
src/extraconf.h.in, src/regexp.c, tests/Makefile.in,
utils/Makefile.in:
Fixed compilation problem on Ubuntu with regexp
[2add3d63ef03]
2010-03-16 Erick Gallesio <eg@unice.fr>
* lib/Makefile.am, lib/Makefile.in, lib/bonus.stk, lib/repl.stk,
src/boot.c, src/boot.img:
Added cons25 as a terminal with color capabilities for FreeBSD
[69913357b935]
2010-01-03 Erick Gallesio <eg@unice.fr>
* NEWS, SUPPORTED-SRFIS:
Preparing version stklos-1.00-beta17
[e028f339c7a8]
* ChangeLog, Makefile.in, configure, configure.ac, doc/Makefile.in,
examples/Makefile.in, lib/Lalr.d/Makefile.in, lib/Makefile.in,
lib/Match.d/Makefile.in, lib/SILex.d/Makefile.in,
lib/ScmPkg.d/Makefile.in, lib/boot-callcc.stk.in, lib/boot.stk,
lib/repl.stk, pkgman/Makefile.in, src/Makefile.in, src/boot.c,
src/boot.img, tests/Makefile.in, utils/Makefile.in:
Code cleaning and bumping version to 1.00
[8728d12527ab]
2010-01-02 Erick Gallesio <eg@unice.fr>
......
......@@ -21,7 +21,7 @@
;;;;
;;;; Author: Erick Gallesio [eg@essi.fr]
;;;; Creation date: 18-Aug-2004 12:43 (eg)
;;;; Last file update: 2-Aug-2010 19:13 (eg)
;;;; Last file update: 9-Aug-2010 18:32 (eg)
;;;;
(define srfi-address "http://srfi.schemers.org/srfi-~A/srfi-~A.html")
......@@ -63,6 +63,7 @@
(66 . "Octet Vectors")
(69 . "Basic Hash Tables")
(70 . "Numbers")
(74 . "Octet-Addressed Binary Blocks")
(88 . "Keyword Objects")
(89 . "Optional Positional and Named Parameters")
(96 . "SLIB Prerequisites ")
......
......@@ -18,7 +18,7 @@
;; USA.
;; Author: Erick Gallesio [eg@unice.fr]
;; Creation date: 26-Nov-2000 18:19 (eg)
;; Last file update: 2-Jan-2010 16:57 (eg)
;; Last file update: 9-Aug-2010 18:40 (eg)
;;
;; ======================================================================
......@@ -718,6 +718,8 @@ applications.])
(insertdoc 'chmod)
(insertdoc 'chdir)
(insertdoc 'make-directory)
(insertdoc 'make-directories)
(insertdoc 'ensure-directories-exist)
(insertdoc 'remove-directory)
(insertdoc 'directory-files)
(index "tilde expansion")
......
......@@ -21,7 +21,7 @@
;;;;
;;;; Author: Erick Gallesio [eg@unice.fr]
;;;; Creation date: 14-Jun-2000 17:24 (eg)
;;;; Last file update: 8-Aug-2010 09:06 (eg)
;;;; Last file update: 9-Aug-2010 18:39 (eg)
;;;;
......@@ -327,7 +327,8 @@ doc>
<doc EXT make-directories
* (make-directories str)
*
* .....
* Create a directory with name |dir|. No error is signaled if |dir| already exists,
* Parent directories of |dir| are created as needed.
doc>
|#
(define (make-directories path)
......@@ -341,7 +342,8 @@ doc>
<doc EXT ensure-directories-exist
* (ensure-directories-exist path)
*
* ...
* Create a directory with name |dir| (and its parent directories if needed), if it
* does not exist yet.
doc>
|#
(define (ensure-directories-exist path)
......
/*
* mutex-pthreads.c -- Pthread Mutexes in Scheme
*
* Copyright 2006-2007 Erick Gallesio - I3S-CNRS/ESSI <eg@essi.fr>
* Copyright 2006-2010 Erick Gallesio - I3S-CNRS/ESSI <eg@essi.fr>
*
*
* This program is free software; you can redistribute it and/or modify
......@@ -21,7 +21,7 @@
*
* Author: Erick Gallesio [eg@essi.fr]
* Creation date: 2-Feb-2006 21:58 (eg)
* Last file update: 19-Nov-2007 11:10 (eg)
* Last file update: 9-Aug-2010 17:51 (eg)
*/
#include <unistd.h>
......@@ -43,12 +43,15 @@ static void mutex_finalizer(SCM mtx)
pthread_cond_destroy(&MUTEX_MYCONDV(mtx));
}
void STk_make_sys_mutex(SCM z)
{
pthread_mutex_init(&MUTEX_MYMUTEX(z), NULL);
pthread_cond_init(&MUTEX_MYCONDV(z), NULL);
// STk_register_finalizer(z, mutex_finalizer);
#ifdef THREAD_FINALIZER_ISSUE
STk_register_finalizer(z, mutex_finalizer);
#endif
}
/*
......@@ -253,16 +256,20 @@ DEFINE_PRIMITIVE("%mutex-unlock!", mutex_unlock, subr3, (SCM mtx, SCM cv, SCM tm
*
\* ====================================================================== */
#ifdef THREAD_FINALIZER_ISSUE
static void condv_finalizer(SCM cv)
{
pthread_cond_destroy(&CONDV_MYCONDV(cv));
}
#endif
void STk_make_sys_condv(SCM z)
{
pthread_cond_init(&CONDV_MYCONDV(z), NULL);
// STk_register_finalizer(z, condv_finalizer);
#ifdef THREAD_FINALIZER_ISSUE
STk_register_finalizer(z, condv_finalizer);
#endif
}
......
/*
* p a t h . c -- Path names management
*
* Copyright 2000-2005 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
* Copyright 2000-2010 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
*
*
* This program is free software; you can redistribute it and/or modify
......@@ -21,7 +21,7 @@
*
* Author: Erick Gallesio [eg@unice.fr]
* Creation date: 9-Jan-2000 14:25 (eg)
* Last file update: 8-Nov-2005 20:20 (eg)
* Last file update: 9-Aug-2010 17:04 (eg)
*/
#include "stklos.h"
......@@ -93,7 +93,9 @@ static void absolute(char *s, char *pathname)
char *t;
if (!ISABSOLUTE(s)) {
getcwd(pathname, MAX_PATH_LENGTH);
if (! getcwd(pathname, MAX_PATH_LENGTH))
STk_panic("absolute: cannot compute cwd (MAX_PATH_LENGTH = %d)\n",
MAX_PATH_LENGTH);
p = &pathname[strlen(pathname)]; /* place p at end of pathname */
}
......
......@@ -21,7 +21,7 @@
*
* Author: Erick Gallesio [eg@essi.fr]
* Creation date: 23-Jan-2006 12:14 (eg)
* Last file update: 3-Jan-2009 22:28 (eg)
* Last file update: 9-Aug-2010 17:48 (eg)
*/
......@@ -62,11 +62,13 @@ vm_thread_t *STk_get_current_vm(void)
/* ====================================================================== */
#ifdef THREAD_FINALIZER_ISSUE
static void thread_finalizer(SCM thr)
{
pthread_mutex_destroy(&THREAD_MYMUTEX(thr));
pthread_cond_destroy(&THREAD_MYCONDV(thr));
}
#endif
static void terminate_scheme_thread(void *arg)
{
......@@ -111,8 +113,10 @@ void STk_do_make_sys_thread(SCM thr)
pthread_mutex_init(&THREAD_MYMUTEX(thr), NULL);
pthread_cond_init(&THREAD_MYCONDV(thr), NULL);
// now the finalizer
// STk_register_finalizer(thr, thread_finalizer);
#ifdef THREAD_FINALIZER_ISSUE
/* now the finalizer */
STk_register_finalizer(thr, thread_gfinalizer);
#endif
}
void STk_sys_thread_start(SCM thr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment