diff options
author | Gary Houston <ghouston@arglist.com> | 1997-08-16 18:48:44 +0000 |
---|---|---|
committer | Gary Houston <ghouston@arglist.com> | 1997-08-16 18:48:44 +0000 |
commit | 6afcd3b2b6b46ccbfd5f84bfd9dedb458dea894f (patch) | |
tree | c04f61db122ef10184ac0f9e97195d941d1c5aba /libguile/filesys.h | |
parent | db75135d74e48a19aa91083dc50b15a06a1bcda0 (diff) | |
download | guile-6afcd3b2b6b46ccbfd5f84bfd9dedb458dea894f.tar.gz |
* stime.h: prototype for scm_times.
* stime.c (scm_times): new procedure.
* ioext.c (scm_fseek): if the first argument is a file descriptor
call lseek.
(scm_ftell): if the first argument is a file descriptor call lseek
(sic).
* filesys.h: prototypes for scm_open_fdes, scm_fsync.
* filesys.c (scm_chmod): if the first argument is a file descriptor,
call fchmod.
(scm_chown): if the first argument is a port or file descriptor,
call fchown.
(scm_truncate_file): new procedure.
Add DEFER/ALLOW INTS to a few other procedures.
(scm_fsync): new procedure.
(scm_open_fdes): new procedure.
(scm_open): use scm_open_fdes. If mode isn't specified, 666 will
now be used.
(scm_fcntl): the first argument can now be a file descriptor. The
third argument is now optional.
* posix.c (scm_execl, scm_execlp): make the filename argument
compulsory, since omitting it causes SEGV.
(scm_sync): return unspecified instead of #f.
(scm_execle): new procedure.
(environ_list_to_c): new procedure.
(scm_environ): use environ_list_to_c. disable interrupts.
(scm_convert_exec_args): take pos and subr arguments and
improve error checking.
* boot-9.scm: define tms accessors: clock, utime, stime, cutime,
cstime.
Diffstat (limited to 'libguile/filesys.h')
-rw-r--r-- | libguile/filesys.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libguile/filesys.h b/libguile/filesys.h index 3c251919b..f6f6fba61 100644 --- a/libguile/filesys.h +++ b/libguile/filesys.h @@ -54,15 +54,17 @@ extern long scm_tc16_dir; #define SCM_OPDIRP(x) (SCM_CAR(x)==(scm_tc16_dir | SCM_OPN)) -extern SCM scm_chown SCM_P ((SCM path, SCM owner, SCM group)); -extern SCM scm_chmod SCM_P ((SCM port_or_path, SCM mode)); +extern SCM scm_chown SCM_P ((SCM object, SCM owner, SCM group)); +extern SCM scm_chmod SCM_P ((SCM object, SCM mode)); extern SCM scm_umask SCM_P ((SCM mode)); -extern SCM scm_open SCM_P ((SCM path, SCM flags, SCM mode)); +extern SCM scm_open_fdes (SCM path, SCM flags, SCM mode); +extern SCM scm_open (SCM path, SCM flags, SCM mode); extern SCM scm_close (SCM fd_or_port); -extern SCM scm_stat SCM_P ((SCM fd_or_path)); +extern SCM scm_stat SCM_P ((SCM object)); extern SCM scm_link SCM_P ((SCM oldpath, SCM newpath)); extern SCM scm_rename SCM_P ((SCM oldname, SCM newname)); extern SCM scm_delete_file SCM_P ((SCM str)); +extern SCM scm_truncate_file (SCM object, SCM size); extern SCM scm_mkdir SCM_P ((SCM path, SCM mode)); extern SCM scm_rmdir SCM_P ((SCM path)); extern SCM scm_opendir SCM_P ((SCM dirname)); @@ -73,7 +75,8 @@ extern SCM scm_chdir SCM_P ((SCM str)); extern SCM scm_getcwd SCM_P ((void)); extern SCM scm_select SCM_P ((SCM reads, SCM writes, SCM excepts, SCM secs, SCM msecs)); extern int scm_input_waiting_p SCM_P ((FILE *file, char *caller)); -extern SCM scm_fcntl SCM_P ((SCM port, SCM cmd, SCM value)); +extern SCM scm_fcntl (SCM object, SCM cmd, SCM value); +extern SCM scm_fsync (SCM object); extern SCM scm_symlink SCM_P ((SCM oldpath, SCM newpath)); extern SCM scm_readlink SCM_P ((SCM path)); extern SCM scm_lstat SCM_P ((SCM str)); |