This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 2/6] Add fmemopen compatibility version.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Ondrej Bilka <neleai at seznam dot cz>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 11 Jun 2013 16:28:46 -0700 (PDT)
- Subject: Re: [PATCH 2/6] Add fmemopen compatibility version.
- References: <1370099488-13916-1-git-send-email-neleai at seznam dot cz> <1370099488-13916-3-git-send-email-neleai at seznam dot cz>
Why do you want to copy the entire implementation? So far it's only the
seek function that needs to differ. Other fixes you've proposed are not
ones we want to keep out of the implementation of the old symbol version.
I'd do it in fmemopen.c, splitting fmemopen into a local subroutine that
takes the seek function as an argument.