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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
/* 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(8)
SERIALISE_UINT_DECL(32)

#endif /* SERIALISE_H */
debug log:

solving 4714f4c9 ...
found 4714f4c9 in https://archives.passt.top/passt-dev/20260421044217.2500314-12-david@gibson.dropbear.id.au/ ||
	https://archives.passt.top/passt-dev/20260421062516.2601204-13-david@gibson.dropbear.id.au/
found a88f3dee in https://passt.top/passt
preparing index
index prepared:
100644 a88f3deedf6c0f0a224e1575ed9f6b073ae309a3	serialise.h

applying [1/2] https://archives.passt.top/passt-dev/20260421044217.2500314-12-david@gibson.dropbear.id.au/
diff --git a/serialise.h b/serialise.h
index a88f3dee..4714f4c9 100644

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

skipping https://archives.passt.top/passt-dev/20260421062516.2601204-13-david@gibson.dropbear.id.au/ for 4714f4c9
index at:
100644 4714f4c944da0842e555b996e8aa9dd9e9778598	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).