public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
a88f3deedf6c0f0a224e1575ed9f6b073ae309a3 blob 504 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
 
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright Red Hat
 * Author: David Gibson <david@gibson.dropbear.id.au>
 */

#ifndef SERIALISE_H
#define SERIALISE_H

#include <stddef.h>
#include <stdint.h>

int read_all_buf(int fd, void *buf, size_t len);
int write_all_buf(int fd, const void *buf, size_t len);

#define SERIALISE_UINT_DECL(bits)					\
	int read_u##bits(int fd, uint##bits##_t *val);			\
	int write_u##bits(int fd, uint##bits##_t val);

SERIALISE_UINT_DECL(32)

#endif /* SERIALISE_H */
debug log:

solving a88f3dee ...
found a88f3dee in https://passt.top/passt

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).