summaryrefslogtreecommitdiff
path: root/src/internal/slibtool_driver_impl.h
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-07-06 08:04:00 -0400
committermidipix <writeonce@midipix.org>2018-07-06 08:04:00 -0400
commitca72f5d6c0d515036748cef287cc0d3a277536ea (patch)
tree28d84e21cba2c30539aa31a013f5f93ef9767601 /src/internal/slibtool_driver_impl.h
parent47b7add270aceb7865908e1ce0b4b4f09be118fa (diff)
downloadslibtool-ca72f5d6c0d515036748cef287cc0d3a277536ea.tar.bz2
slibtool-ca72f5d6c0d515036748cef287cc0d3a277536ea.tar.xz
driver: struct slbt_fd_ctx: added .fdcwd and .fddst.
Diffstat (limited to 'src/internal/slibtool_driver_impl.h')
-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;