From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Stancek Date: Thu, 13 Jun 2019 09:24:00 +0200 Subject: [LTP] [PATCH v3 2/3] lib: rename ltp_clone_malloc to ltp_clone_alloc In-Reply-To: References: Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it There are no users outside of lib. Signed-off-by: Jan Stancek --- include/tst_clone.h | 2 +- lib/cloner.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/tst_clone.h b/include/tst_clone.h index 786cee5d1209..fd52097e2072 100644 --- a/include/tst_clone.h +++ b/include/tst_clone.h @@ -29,7 +29,7 @@ int ltp_clone(unsigned long flags, int (*fn)(void *arg), void *arg, size_t stack_size, void *stack); int ltp_clone7(unsigned long flags, int (*fn)(void *arg), void *arg, size_t stack_size, void *stack, ...); -int ltp_clone_malloc(unsigned long clone_flags, int (*fn)(void *arg), +int ltp_clone_alloc(unsigned long clone_flags, int (*fn)(void *arg), void *arg, size_t stacksize); int ltp_clone_quick(unsigned long clone_flags, int (*fn)(void *arg), void *arg); diff --git a/lib/cloner.c b/lib/cloner.c index cf37184aa22a..8469745d004b 100644 --- a/lib/cloner.c +++ b/lib/cloner.c @@ -135,11 +135,11 @@ void *ltp_alloc_stack(size_t size) } /* - * ltp_clone_malloc: also does the memory allocation for clone with a + * ltp_clone_alloc: also does the memory allocation for clone with a * caller-specified size. */ int -ltp_clone_malloc(unsigned long clone_flags, int (*fn) (void *arg), void *arg, +ltp_clone_alloc(unsigned long clone_flags, int (*fn) (void *arg), void *arg, size_t stack_size) { void *stack; @@ -162,7 +162,7 @@ ltp_clone_malloc(unsigned long clone_flags, int (*fn) (void *arg), void *arg, } /* - * ltp_clone_quick: calls ltp_clone_malloc with predetermined stack size. + * ltp_clone_quick: calls ltp_clone_alloc with predetermined stack size. * Experience thus far suggests that one page is often insufficient, * while 6*getpagesize() seems adequate. */ @@ -170,5 +170,5 @@ int ltp_clone_quick(unsigned long clone_flags, int (*fn) (void *arg), void *arg) { size_t stack_size = getpagesize() * 6; - return ltp_clone_malloc(clone_flags, fn, arg, stack_size); + return ltp_clone_alloc(clone_flags, fn, arg, stack_size); } -- 1.8.3.1