summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/slibtool_driver_impl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/internal/slibtool_driver_impl.h b/src/internal/slibtool_driver_impl.h
index 2eb7a14..02345f8 100644
--- a/src/internal/slibtool_driver_impl.h
+++ b/src/internal/slibtool_driver_impl.h
@@ -150,6 +150,20 @@ static inline int slbt_driver_fdlog(const struct slbt_driver_ctx * dctx)
return fdctx.fdlog;
}
+static inline int slbt_driver_fdcwd(const struct slbt_driver_ctx * dctx)
+{
+ struct slbt_fd_ctx fdctx;
+ slbt_get_driver_fdctx(dctx,&fdctx);
+ return fdctx.fdcwd;
+}
+
+static inline int slbt_driver_fddst(const struct slbt_driver_ctx * dctx)
+{
+ struct slbt_fd_ctx fdctx;
+ slbt_get_driver_fdctx(dctx,&fdctx);
+ return fdctx.fddst;
+}
+
static inline struct slbt_exec_ctx_impl * slbt_get_exec_ictx(const struct slbt_exec_ctx * ectx)
{
uintptr_t addr;