mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 09:10:22 +02:00
* 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.
This commit is contained in:
parent
db75135d74
commit
6afcd3b2b6
12 changed files with 469 additions and 169 deletions
|
@ -50,8 +50,8 @@
|
|||
|
||||
extern SCM scm_read_delimited_x SCM_P ((SCM delims, SCM buf, SCM gobble, SCM port, SCM offset, SCM length));
|
||||
extern SCM scm_write_line SCM_P ((SCM obj, SCM port));
|
||||
extern SCM scm_ftell SCM_P ((SCM port));
|
||||
extern SCM scm_fseek SCM_P ((SCM port, SCM offset, SCM whence));
|
||||
extern SCM scm_ftell SCM_P ((SCM object));
|
||||
extern SCM scm_fseek SCM_P ((SCM object, SCM offset, SCM whence));
|
||||
extern SCM scm_freopen SCM_P ((SCM filename, SCM modes, SCM port));
|
||||
extern SCM scm_redirect_port SCM_P ((SCM into_pt, SCM from_pt));
|
||||
extern SCM scm_dup_to_fdes (SCM fd_or_port, SCM newfd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue