This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [patch] Don't duplicate declarations between string.h and strings.h
- From: Zack Weinberg <zackw at panix dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 21 Nov 2016 12:17:40 -0500
- Subject: Re: [patch] Don't duplicate declarations between string.h and strings.h
- Authentication-results: sourceware.org; auth=none
- References: <1820d936-621b-1ca5-669c-68d8ab967ba3@panix.com>
On Wed, Nov 16, 2016 at 3:55 PM, Zack Weinberg <zackw@panix.com> wrote:
> I was looking into something else and noticed that all of the
> declarations in strings.h are duplicated in string.h, but not quite
> consistently. This patch cleans that all up; strings.h is given
> consistent declarations of everything, and then string.h just does
>
> #ifdef __USE_MISC
> # include <strings.h>
> #endif
>
> The prototype of __bzero is moved to include/string.h instead of
> strings.h, since it is an internal name.
>
> Tested on x86-64/linux. OK?
Ping?