mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-18 01:30:27 +02:00
Define a Scheme binding to ‘renameat’ when it exists.
* configure.ac: Detect if ‘renameat’ is defined. * libguile/filesys.c (scm_renameat): Define a Scheme binding to the ‘renameat’ system call. * doc/ref/posix.texi (File System): Document it. * libguile/filesys.h (scm_renameat): Make it part of the C API. * test-suite/tests/filesys.test ("rename-file-at"): New tests. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
24028e75ca
commit
3a0554c60f
5 changed files with 149 additions and 1 deletions
|
@ -48,6 +48,7 @@ SCM_API SCM scm_close_fdes (SCM fd);
|
|||
SCM_API SCM scm_stat (SCM object, SCM exception_on_error);
|
||||
SCM_API SCM scm_link (SCM oldpath, SCM newpath);
|
||||
SCM_API SCM scm_rename (SCM oldname, SCM newname);
|
||||
SCM_API SCM scm_renameat (SCM olddir, SCM oldname, SCM newdir, SCM newname);
|
||||
SCM_API SCM scm_delete_file (SCM str);
|
||||
SCM_API SCM scm_mkdir (SCM path, SCM mode);
|
||||
SCM_API SCM scm_mkdirat (SCM dir, SCM path, SCM mode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue