summaryrefslogtreecommitdiffstats
path: root/discover/file.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-08-08 15:25:24 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-08-08 16:30:00 +0800
commit6557f07325409d769f414035cca05a563418e729 (patch)
treee817fabedfd85b0584089fe2f476189d7ccdc41d /discover/file.h
parenta70807730ef59efc4116556ecabe1b9f70ce605b (diff)
downloadtalos-petitboot-6557f07325409d769f414035cca05a563418e729.tar.gz
talos-petitboot-6557f07325409d769f414035cca05a563418e729.zip
discover/file: Add replace_file()
Add a function to atomically replace a file. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/file.h')
-rw-r--r--discover/file.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/discover/file.h b/discover/file.h
index 1997eca..8aa7d3c 100644
--- a/discover/file.h
+++ b/discover/file.h
@@ -18,6 +18,7 @@
#define FILE_H
int read_file(void *ctx, const char *filename, char **bufp, int *lenp);
+int replace_file(const char *filename, char *buf, int len);
#endif /* FILE_H */
OpenPOWER on IntegriCloud