]> sourceware.org Git - glibc.git/commit
Clean up redundancies between string.h and strings.h.
authorZack Weinberg <zackw@panix.com>
Wed, 16 Nov 2016 21:20:26 +0000 (16:20 -0500)
committerZack Weinberg <zackw@panix.com>
Thu, 16 Feb 2017 22:02:50 +0000 (17:02 -0500)
commit7b037c095e31c2396d0a9b0e6356bc566ee4812f
treed4fbf2b276d12f90883eb805fb4e59c696952ec6
parentab9536a75d3f2e0158cc91a0ae0096032c9d57b4
Clean up redundancies between string.h and strings.h.

* string/string.h [__USE_MISC]: Include strings.h.
(__bzero, bcmp, bcopy, bzero, index, rindex)
(strcasecmp, strncasecmp, strcasecmp_l, strncasecmp_l)
(ffs, ffsl, ffsll): Don't declare.

* string/strings.h: Do not suppress the file if string.h has
already been included.
(bcmp, bcopy, bzero, strcasecmp, strncasecmp): Add __nonnull
annotations.
(index, rindex): Define inline forwarders even if
__CORRECT_ISO_CPP_STRING_H_PROTO is defined.
(ffs): Use __attribute_const__.
(ffsl, ffsll): Declare here.
(strcasecmp_l, strncasecmp_l): Correct comments; these functions
have now been standardized.

* include/string.h (__bzero): Declare here.
include/string.h
string/string.h
string/strings.h
This page took 0.036761 seconds and 5 git commands to generate.