mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +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
|
@ -517,7 +517,7 @@ AC_CHECK_HEADERS([crt_externs.h])
|
|||
#
|
||||
AC_CHECK_FUNCS([DINFINITY DQNAN cexp chsize clog clog10 ctermid \
|
||||
fesetround ftime ftruncate fchown fchmod fchdir readlinkat \
|
||||
symlinkat mkdirat getcwd geteuid getsid \
|
||||
symlinkat mkdirat renameat getcwd geteuid getsid \
|
||||
gettimeofday getuid getgid gmtime_r ioctl lstat mkdir mkdtemp mknod \
|
||||
nice readlink rmdir setegid seteuid \
|
||||
setuid setgid setpgid setsid sigaction siginterrupt stat64 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue