fileio.h 362 B

1234567891011121314
  1. /*
  2. * Copyright (C) 2025 Midokura Japan KK. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. /*
  6. * modified copy-and-paste from:
  7. * https://github.com/yamt/toywasm/blob/0eaad8cacd0cc7692946ff19b25994f106113be8/lib/fileio.h
  8. */
  9. int
  10. map_file(const char *filename, void **pp, size_t *szp);
  11. void
  12. unmap_file(void *p, size_t sz);