Move {read,write}_all functions to a dedicated header
authorFrédéric Bérat <fberat@redhat.com>
Fri, 2 Jun 2023 15:28:12 +0000 (17:28 +0200)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 6 Jun 2023 12:23:53 +0000 (08:23 -0400)
commit200ae471b65354eed6f1bc7658f898f2f380951a
tree42062d5eac3fadcf42caf83a9d8b8f3505996f5b
parentf6a532fbd0f430dc4ded254d713d89fcbafc1b7e
Move {read,write}_all functions to a dedicated header

Since these functions are used in both catgets/gencat.c and
malloc/memusage{,stat}.c, it make sense to move them into a dedicated
header where they can be inlined.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
catgets/gencat.c
include/unistd_ext.h [new file with mode: 0644]
malloc/memusage.c
malloc/memusagestat.c