summaryrefslogtreecommitdiff
path: root/include/string.h (follow)
AgeCommit message (Collapse)Author
2015-01-30Remove __restrictsin
2015-01-29Fix typosin
2015-01-29Allow dest == src in memcpy()sin
memcpy() needs to accept dest == src for gcc. struct foo a, b; a = a; might be implemented using memcpy().
2015-01-29Add compile-time checks as wellsin
2015-01-29Add license infosin
2015-01-29Trap if memcpy() pointers are overlappingsin
Maybe this should only be done if _FORTIFY_SOURCE > 1.
2015-01-28Use BSD-style func defssin
2015-01-28Use #ifdef instead of #if definedsin
2015-01-28Add mempcpy() checkssin
2015-01-28Simplify checkssin
Do not perform checks only when `n' is constant, most of the time it is not. The bos == (size_t)-1 check is redundant because n > bos with bos == -1 will always be false.
2015-01-28Remove trailing semicolonsin
2015-01-28Add stpncpy()sin
2015-01-28Add stpcpy()sin
2015-01-28Move defines to the bottomsin
This allows us to re-use the functions internally.
2015-01-28Merge __foo_chk() into __fortify_foo()sin
2015-01-28Initial commitsin