mailing list of musl libc
 help / color / mirror / code / Atom feed
5c160639a4c65b5e2b9b858594d6382c8e3f76e1 blob 243 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 
#define _GNU_SOURCE
#include <stdlib.h>
#include "libc.h"

static void dummy(char *p, char *r) {}
weak_alias(dummy, __env_change);

int clearenv()
{
	char **e = __environ;
	__environ = 0;
	if (e) while (*e) __env_change(*e++, 0);
	return 0;
}
debug log:

solving 5c16063 ...
found 5c16063 in https://inbox.vuxu.org/musl/1457895230-13602-4-git-send-email-amonakov@ispras.ru/
found 62d5095 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 62d50952dabffc7a8931266cc3fb56f6e4b25cfd	src/env/clearenv.c

applying [1/1] https://inbox.vuxu.org/musl/1457895230-13602-4-git-send-email-amonakov@ispras.ru/
diff --git a/src/env/clearenv.c b/src/env/clearenv.c
index 62d5095..5c16063 100644

Checking patch src/env/clearenv.c...
Applied patch src/env/clearenv.c cleanly.

index at:
100644 5c160639a4c65b5e2b9b858594d6382c8e3f76e1	src/env/clearenv.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).