public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin] Cygwin: move memory management sources into mm subdir
Date: Wed, 10 Aug 2022 16:13:41 +0000 (GMT)	[thread overview]
Message-ID: <20220810161341.72654385AC29@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=9fbfccff717521641eb52de7581a98bbae35e75f

commit 9fbfccff717521641eb52de7581a98bbae35e75f
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Wed Aug 10 16:09:39 2022 +0200

    Cygwin: move memory management sources into mm subdir
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/Makefile.am                | 22 +++++++++++-----------
 winsup/cygwin/{ => mm}/cygheap.cc        |  0
 winsup/cygwin/{ => mm}/heap.cc           |  0
 winsup/cygwin/{ => mm}/malloc.cc         |  0
 winsup/cygwin/{ => mm}/malloc_wrapper.cc |  0
 winsup/cygwin/{ => mm}/mmap.cc           |  0
 winsup/cygwin/{ => mm}/mmap_alloc.cc     |  0
 winsup/cygwin/{ => mm}/shared.cc         |  0
 8 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/winsup/cygwin/Makefile.am b/winsup/cygwin/Makefile.am
index 84e06c82a..f9c45ec14 100644
--- a/winsup/cygwin/Makefile.am
+++ b/winsup/cygwin/Makefile.am
@@ -235,6 +235,15 @@ MATH_FILES= \
 	math/tgammal.c \
 	math/truncl.c
 
+MM_FILES = \
+	mm/cygheap.cc \
+	mm/heap.cc \
+	mm/malloc.cc \
+	mm/malloc_wrapper.cc \
+	mm/mmap.cc \
+	mm/mmap_alloc.cc \
+	mm/shared.cc
+
 REGEX_FILES = \
 	regex/regcomp.c \
 	regex/regerror.c \
@@ -259,7 +268,6 @@ DLL_FILES= \
 	clock.cc \
 	ctype.cc \
 	cxx.cc \
-	cygheap.cc \
 	cygthread.cc \
 	cygtls.cc \
 	cygwait.cc \
@@ -285,7 +293,6 @@ DLL_FILES= \
 	glob_pattern_p.cc \
 	globals.cc \
 	grp.cc \
-	heap.cc \
 	hookapi.cc \
 	init.cc \
 	ioctl.cc \
@@ -295,11 +302,8 @@ DLL_FILES= \
 	libstdcxx_wrapper.cc \
 	loadavg.cc \
 	lsearch.cc \
-	malloc_wrapper.cc \
 	miscfuncs.cc \
 	mktemp.cc \
-	mmap.cc \
-	mmap_alloc.cc \
 	msg.cc \
 	mount.cc \
 	net.cc \
@@ -324,7 +328,6 @@ DLL_FILES= \
 	select.cc \
 	sem.cc \
 	setlsapwd.cc \
-	shared.cc \
 	shm.cc \
 	signal.cc \
 	sigproc.cc \
@@ -350,9 +353,6 @@ DLL_FILES= \
 	window.cc \
 	winf.cc
 
-MALLOC_FILES= \
-	malloc.cc
-
 GMON_FILES= \
 	gmon.c \
 	mcount.c \
@@ -368,10 +368,10 @@ libdll_a_SOURCES= \
 	$(TARGET_FILES) \
 	$(DLL_FILES) \
 	$(REGEX_FILES) \
-	$(MALLOC_FILES) \
 	$(FHANDLER_FILES) \
 	$(LIBC_FILES) \
 	$(MATH_FILES) \
+	$(MM_FILES) \
 	$(SEC_FILES) \
 	$(TZCODE_FILES) \
 	$(GENERATED_FILES)
@@ -408,7 +408,7 @@ BUILT_SOURCES = \
 
 # Every time we touch a source file, the version info has to be rebuilt
 # to maintain a correct build date, especially in uname release output
-dirs = $(srcdir) $(srcdir)/fhandler $(srcdir)/lib $(srcdir)/libc $(srcdir)/math $(srcdir)/regex $(srcdir)/sec $(srcdir)/tzcode
+dirs = $(srcdir) $(srcdir)/fhandler $(srcdir)/lib $(srcdir)/libc $(srcdir)/math $(srcdir)/mm $(srcdir)/regex $(srcdir)/sec $(srcdir)/tzcode
 find_src_files = $(wildcard $(dir)/*.[chS]) $(wildcard $(dir)/*.cc)
 src_files := $(foreach dir,$(dirs),$(find_src_files))
 
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/mm/cygheap.cc
similarity index 100%
rename from winsup/cygwin/cygheap.cc
rename to winsup/cygwin/mm/cygheap.cc
diff --git a/winsup/cygwin/heap.cc b/winsup/cygwin/mm/heap.cc
similarity index 100%
rename from winsup/cygwin/heap.cc
rename to winsup/cygwin/mm/heap.cc
diff --git a/winsup/cygwin/malloc.cc b/winsup/cygwin/mm/malloc.cc
similarity index 100%
rename from winsup/cygwin/malloc.cc
rename to winsup/cygwin/mm/malloc.cc
diff --git a/winsup/cygwin/malloc_wrapper.cc b/winsup/cygwin/mm/malloc_wrapper.cc
similarity index 100%
rename from winsup/cygwin/malloc_wrapper.cc
rename to winsup/cygwin/mm/malloc_wrapper.cc
diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mm/mmap.cc
similarity index 100%
rename from winsup/cygwin/mmap.cc
rename to winsup/cygwin/mm/mmap.cc
diff --git a/winsup/cygwin/mmap_alloc.cc b/winsup/cygwin/mm/mmap_alloc.cc
similarity index 100%
rename from winsup/cygwin/mmap_alloc.cc
rename to winsup/cygwin/mm/mmap_alloc.cc
diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/mm/shared.cc
similarity index 100%
rename from winsup/cygwin/shared.cc
rename to winsup/cygwin/mm/shared.cc


                 reply	other threads:[~2022-08-10 16:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220810161341.72654385AC29@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).