From 35ffd20dbd76d3cb6b478c7a69bb40d8c827ed81 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 28 Aug 2019 12:01:48 +0200 Subject: misc: Use allocate_once in getmntent Both the buffer and struct mntent are now allocated on the heap. This results in a slight reduction of RSS usage. Reviewed-by: Adhemerval Zanella --- ChangeLog | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index a0c6a0e1f1..37c2ff3280 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2019-08-28 Florian Weimer + + * misc/mntent.c (struct mntent_buffer): Define. + (mntent_buffer): Adjust type to void *. + (allocate): Adjust for allocate_once. + (deallocate): New function. + (getmntent): Call allocate_once. + 2019-08-28 Florian Weimer nptl: Move pthread_attr_setdetachstate implementation into libc. -- cgit v1.2.3