2 * Copyright 2019 Intel Corporation
3 * SPDX-License-Identifier: MIT
5 * File operations helpers
18 * Create a new file and opens it for writing-only.
19 * If the given filename already exists, nothing is done and NULL is returned.
20 * `errno` gets set to the failure reason; if that is not EEXIST, the caller
21 * might want to do something other than trying again.
24 os_file_create_unique(const char *filename
, int filemode
);
28 * Returns a char* that the caller must free(), or NULL and sets errno.
31 os_read_file(const char *filename
);
37 #endif /* _OS_FILE_H_ */