[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 07/14] Define AT_REMOVEDIR and others when available.
From: |
Maxime Devos |
Subject: |
[PATCH v2 07/14] Define AT_REMOVEDIR and others when available. |
Date: |
Tue, 16 Nov 2021 11:06:30 +0000 |
* libguile/posix.c (scm_init_posix): Define (in Scheme)
AT_REMOVEDIR and AT_EACCESS when defined (in C).
---
libguile/posix.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libguile/posix.c b/libguile/posix.c
index bd7f40ca8..a6f7c9a0d 100644
--- a/libguile/posix.c
+++ b/libguile/posix.c
@@ -2503,6 +2503,12 @@ scm_init_posix ()
#ifdef AT_EMPTY_PATH
scm_c_define ("AT_EMPTY_PATH", scm_from_int (AT_EMPTY_PATH));
#endif
+#ifdef AT_REMOVEDIR
+ scm_c_define ("AT_REMOVEDIR", scm_from_int (AT_REMOVEDIR));
+#endif
+#ifdef AT_EACCESS
+ scm_c_define ("AT_EACCESS", scm_from_int (AT_EACCESS));
+#endif
#include "cpp-SIG.c"
#include "posix.x"
--
2.30.2
- [PATCH v2 00/14] Bindings to *at functions, Maxime Devos, 2021/11/16
- [PATCH v2 02/14] Allow file ports in ‘readlink’., Maxime Devos, 2021/11/16
- [PATCH v2 09/14] Define a Scheme binding to ‘fchmodat’ when it exists., Maxime Devos, 2021/11/16
- [PATCH v2 11/14] Define a Scheme binding to ‘fchownat’ when it exists., Maxime Devos, 2021/11/16
- [PATCH v2 04/14] Define ‘symlinkat’ wrapper when supported., Maxime Devos, 2021/11/16
- [PATCH v2 10/14] Define a Scheme binding to ‘unlinkat’ when it exists., Maxime Devos, 2021/11/16
- [PATCH v2 06/14] Correct documentation of ‘mkdir’ w.r.t. the umask., Maxime Devos, 2021/11/16
- [PATCH v2 07/14] Define AT_REMOVEDIR and others when available.,
Maxime Devos <=
- [PATCH v2 05/14] Define bindings to ‘mkdirat’ when the C function exists., Maxime Devos, 2021/11/16
- [PATCH v2 03/14] Allow file ports in ‘utime’., Maxime Devos, 2021/11/16
- [PATCH v2 08/14] Define a Scheme binding to ‘renameat’ when it exists., Maxime Devos, 2021/11/16
- [PATCH v2 14/14] Update NEWS., Maxime Devos, 2021/11/16
- [PATCH v2 13/14] Define Scheme bindings to ‘openat’ when available., Maxime Devos, 2021/11/16
- [PATCH v2 12/14] Define a Scheme binding to ‘fstatat’ when available., Maxime Devos, 2021/11/16
- [PATCH v2 01/14] Allow file ports in ‘chdir’ when supported., Maxime Devos, 2021/11/16