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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 
/* 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>

int seread_buf(int fd, void *buf, size_t len);
int sewrite_buf(int fd, const void *buf, size_t len);

#define seread_var(fd_, var_)	(seread_buf((fd_), (var_), sizeof(*(var_))))
#define sewrite_var(fd_, var_)	(sewrite_buf((fd_), (var_), sizeof(*(var_))))

#endif /* _SERIALISE_H */
debug log:

solving ec95287f ...
found ec95287f in https://archives.passt.top/passt-dev/20260319061157.1983818-3-david@gibson.dropbear.id.au/

applying [1/1] https://archives.passt.top/passt-dev/20260319061157.1983818-3-david@gibson.dropbear.id.au/
diff --git a/serialise.h b/serialise.h
new file mode 100644
index 00000000..ec95287f

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

index at:
100644 ec95287fe3294d0b3b0a367fbfc4b193ececb6b5	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).