mailing list of musl libc
 help / color / mirror / code / Atom feed
af959a58dfb5d610de6215d3ab169548dd39f77c blob 281 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 
#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)
{
	if (catd == (nl_catd)-1)
		return -1;
	char *map = (char *)catd;
	munmap(map, V(map+8)+20);
	return 0;
}
debug log:

solving af959a58dfb5 ...
found af959a58dfb5 in https://inbox.vuxu.org/musl/20240125070950.28673-1-ismael@iodev.co.uk/
found 54e24dd2163b in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 54e24dd2163bc85a250b2efc7a36fa0f0aa446e8	src/locale/catclose.c

applying [1/1] https://inbox.vuxu.org/musl/20240125070950.28673-1-ismael@iodev.co.uk/
diff --git a/src/locale/catclose.c b/src/locale/catclose.c
index 54e24dd2163b..af959a58dfb5 100644

Checking patch src/locale/catclose.c...
Applied patch src/locale/catclose.c cleanly.

index at:
100644 af959a58dfb5d610de6215d3ab169548dd39f77c	src/locale/catclose.c

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).