blob: 820108c52c2d9d28e83ccc439041a17c55bc1677 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#ifndef __COMMON_H
#define __COMMON_H
int read_file_2(const char *filename, size_t *size, void **outbuf, size_t max_size);
void *read_file(const char *filename, size_t *size);
int write_file(const char *filename, const void *buf, size_t size);
int read_full(int fd, void *buf, size_t size);
int write_full(int fd, void *buf, size_t size);
#endif /* __COMMON_H */
|