mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
crucible: fd: remove dead reference to unlink_or_die, introduce ftruncate_or_die
This commit is contained in:
parent
dd21e6f848
commit
ea0910ee6c
@ -70,10 +70,11 @@ namespace crucible {
|
|||||||
string mmap_flags_ntoa(int flags);
|
string mmap_flags_ntoa(int flags);
|
||||||
|
|
||||||
// Unlink, rename
|
// Unlink, rename
|
||||||
void unlink_or_die(const string &file);
|
|
||||||
void rename_or_die(const string &from, const string &to);
|
void rename_or_die(const string &from, const string &to);
|
||||||
void renameat_or_die(int fromfd, const string &frompath, int tofd, const string &topath);
|
void renameat_or_die(int fromfd, const string &frompath, int tofd, const string &topath);
|
||||||
|
|
||||||
|
void ftruncate_or_die(int fd, off_t size);
|
||||||
|
|
||||||
// Read or write structs:
|
// Read or write structs:
|
||||||
// There is a template specialization to read or write strings
|
// There is a template specialization to read or write strings
|
||||||
// Three-arg version of read_or_die/write_or_die throws an error on incomplete read/writes
|
// Three-arg version of read_or_die/write_or_die throws an error on incomplete read/writes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user