public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
0a4ed0868f5a4c5ac8f1c2d44d3e9715d577d73a blob 505 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 0a4ed086 ...
found 0a4ed086 in https://archives.passt.top/passt-dev/20260323073732.3158468-5-david@gibson.dropbear.id.au/
found 92a63e6b in https://archives.passt.top/passt-dev/20260323073732.3158468-4-david@gibson.dropbear.id.au/

applying [1/2] https://archives.passt.top/passt-dev/20260323073732.3158468-4-david@gibson.dropbear.id.au/
diff --git a/serialise.h b/serialise.h
new file mode 100644
index 00000000..92a63e6b


applying [2/2] https://archives.passt.top/passt-dev/20260323073732.3158468-5-david@gibson.dropbear.id.au/
diff --git a/serialise.h b/serialise.h
index 92a63e6b..0a4ed086 100644

Checking patch serialise.h...
Applied patch serialise.h cleanly.
Checking patch serialise.h...
Applied patch serialise.h cleanly.

index at:
100644 0a4ed0868f5a4c5ac8f1c2d44d3e9715d577d73a	serialise.h

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).