hyperlight-libc 0.16.0

This crate provides picolibc for Hyperlight guests. It builds the picolibc library and generates bindings to the libc types and functions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
Copyright (c) 2002 Thomas Fitzsimmons <fitzsim@redhat.com>
 */
#include <wchar.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>

size_t
mbrlen(const char * __restrict s, size_t n, mbstate_t * __restrict ps)
{
    return mbrtowc(NULL, s, n, ps);
}