From c4676b38309bba5d24efeb22f52fbeaace7dcbe2 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 13 Mar 2022 14:35:43 -0400 Subject: ctx: Factor out exec flushing behaviour into bfs_ctx_flush() --- ctx.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ctx.h') diff --git a/ctx.h b/ctx.h index 02d296f..8f8101d 100644 --- a/ctx.h +++ b/ctx.h @@ -1,6 +1,6 @@ /**************************************************************************** * bfs * - * Copyright (C) 2015-2021 Tavian Barnes * + * Copyright (C) 2015-2022 Tavian Barnes * * * * Permission to use, copy, modify, and/or distribute this software for any * * purpose with or without fee is hereby granted. * @@ -178,6 +178,14 @@ const struct bfs_mtab *bfs_ctx_mtab(const struct bfs_ctx *ctx); */ struct CFILE *bfs_ctx_dedup(struct bfs_ctx *ctx, struct CFILE *cfile, const char *path); +/** + * Flush any caches for consistency with external processes. + * + * @param ctx + * The bfs context. + */ +void bfs_ctx_flush(const struct bfs_ctx *ctx); + /** * Dump the parsed command line. * -- cgit v1.2.3