From 8ec1588722809a35a7d149bff10de56424e2658a Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 25 Nov 2020 17:58:50 -0800 Subject: src: initial commit of jio WIP source This is a very quick and dirty experimental hack written in some sort of bastard continuation-passing style in C w/io_uring using journal-file introspection and manipulation duty as an excuse for its existence. Consider this unfinished prototype quality code. --- src/humane.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/humane.h (limited to 'src/humane.h') diff --git a/src/humane.h b/src/humane.h new file mode 100644 index 0000000..959589e --- /dev/null +++ b/src/humane.h @@ -0,0 +1,12 @@ +#ifndef _JIO_HUMANE_H +#define _JIO_HUMANE_H + +#include + +typedef struct humane_t { + char buf[sizeof("1023.99 EiB")]; +} humane_t; + +char * humane_bytes(humane_t *humane, uint64_t bytes); + +#endif -- cgit v1.2.3