1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| | /* SPDX-License-Identifier: GPL-2.0-or-later
* Copyright Red Hat
* Author: David Gibson <david@gibson.dropbear.id.au>
*
* Helper functions used by both passt/pasta and pesto (the configuration update
* client).
*/
#ifndef PESTO_UTIL_H
#define PESTO_UTIL_H
#include <stddef.h>
/* FPRINTF() intentionally silences cert-err33-c clang-tidy warnings */
#define FPRINTF(f, ...) (void)fprintf(f, __VA_ARGS__)
int read_all_buf(int fd, void *buf, size_t len);
#endif /* PESTO_UTIL_H */
|