This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/9] Add vectorized getenv for glibc use
- From: Siddhesh Poyarekar <siddhesh at redhat dot com>
- To: Andi Kleen <andi at firstfloor dot org>
- Cc: libc-alpha at sourceware dot org, Andi Kleen <ak at linux dot intel dot com>
- Date: Thu, 9 May 2013 15:18:49 +0530
- Subject: Re: [PATCH 1/9] Add vectorized getenv for glibc use
- References: <1367537252-30831-1-git-send-email-andi at firstfloor dot org> <1367537252-30831-2-git-send-email-andi at firstfloor dot org> <20130509093313 dot GE19683 at spoyarek dot pnq dot redhat dot com>
On Thu, May 09, 2013 at 03:03:13PM +0530, Siddhesh Poyarekar wrote:
>
> It might also be a good idea to typedef the enum as glibc_env_t (or
> similar) and enforce that on users of the function instead of
> accepting any int.
>
Sorry, I realized that sentence didn't make much sense. Let me try
again:
Having a typedef'd enum would be a good idea so that any future
function that accepts offsets into _dl_glibc_var can restrict values
to glibc_env_t rather than accepting any integer.
Siddhesh