From ca72f5d6c0d515036748cef287cc0d3a277536ea Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 6 Jul 2018 08:04:00 -0400 Subject: driver: struct slbt_fd_ctx: added .fdcwd and .fddst. --- src/internal/slibtool_driver_impl.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/internal/slibtool_driver_impl.h') 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; -- cgit v1.2.3