mailing list of musl libc
 help / color / mirror / code / Atom feed
54e24dd2163bc85a250b2efc7a36fa0f0aa446e8 blob 242 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 
#define _BSD_SOURCE
#include <nl_types.h>
#include <stdint.h>
#include <endian.h>
#include <sys/mman.h>

#define V(p) be32toh(*(uint32_t *)(p))

int catclose (nl_catd catd)
{
	char *map = (char *)catd;
	munmap(map, V(map+8)+20);
	return 0;
}
debug log:

solving 54e24dd2163b ...
found 54e24dd2163b in https://git.vuxu.org/mirror/musl/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).