diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-08-08 15:25:24 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-08-08 16:30:00 +0800 |
commit | 6557f07325409d769f414035cca05a563418e729 (patch) | |
tree | e817fabedfd85b0584089fe2f476189d7ccdc41d /discover/file.h | |
parent | a70807730ef59efc4116556ecabe1b9f70ce605b (diff) | |
download | talos-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.h | 1 |
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 */ |