summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/i386/string (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Instead of trying to handle ffs() with the normal rename-mark-hidden-and-aliasguenther2018-01-181-2/+3
| | | | | | | dance, mark it protected. This works better for both gcc and clang: gcc blocks overriding of internal calls, while clang permits inlining again. ok otto@
* clang doesn't propagate attributes like "asm labels" and "visibility(hidden)"guenther2017-11-2911-25/+31
| | | | | | | | | to builtins like mem{set,cpy,move} and __stack_smash_handler. So, when building with clang, instead mark those as protected visibility to get rid of the PLT relocations. We can't take the address of them then, but that's ok: it's a build-time error not a run-time error. ok kettenis@
* GNU ld has prefixed the contents of .gnu.warning.SYMBOL sectionstb2017-11-282-4/+4
| | | | | | | | with "warning: " since 2003, so the messages themselves need not contain the prefix anymore. From Scott Cheloha ok jca, deraadt
* Use 0xcc trapsleds instead of default/nop/0xcc in BTC alignmentsderaadt2017-08-193-6/+6
|
* Add framework for resolving (pun intended) libc namespace issues, usingguenther2015-08-3113-26/+38
| | | | | | | | | | | | wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here. tests clean on i386, amd64, sparc64, powerpc, and mips64 naming feedback from kettenis@ and millert@ ok kettenis@
* Make index/rindex weak aliases of strchr/strrchr since they are notmillert2015-05-152-4/+4
| | | | | part of the ISO C standard and have also been dropped from POSIX. OK guenther@ kettenis@
* Use STRONG_ALIAS instead of ALTENTRY.kettenis2015-05-142-4/+6
| | | | ok millert@
* we do not need the complexity of an assembly swab function here.tedu2014-12-112-69/+2
| | | | ok deraadt
* Noone cares what castle the princess is inderaadt2014-12-023-5/+3
|
* sync bcopy/memmove/memcpy implementation with the kernel. ok deraadttedu2014-12-023-161/+46
|
* restructure libc/string + libc/arch/*/string coperation regardingderaadt2014-11-308-91/+207
| | | | | | | | | | | | | | | | (potentially) MD versions (function dependent, not filename dependent) split out memcpy/memmove/bcopy and strchr/index/strrchr/rindex Bring back amd64 .S versions And the final touch: switch all architectures temporarily to MI memcpy.c, which contains syslog + abort for overlapping copies. A nice harsh undefined behaviour. We will clean the entire userland of the remaining issues in this catagory, then switch to the optimised memcpy which skips the memmove check. I tried to cut this change into pieces, but testing each sub-step on every architecture is too time consuming and mindnumbing. ok miod
* remove lint leftovers; ok guenther@okan2012-09-041-3/+1
|
* Remove assembly version of strlen from i386 and amd64, where it'smikeb2012-01-172-23/+3
| | | | | | | up to 3 times slower than the C code most of the time. This was brought up by DragonflyBSD guys initially. ok deraadt, guenther. miod will not miss it.
* "boundries" -> "boundaries" in various comments. Started by Diego Casati.krw2007-05-252-4/+4
|
* zap rcsid, tested there. okay deraadt@espie2005-08-0719-96/+19
|
* Change wording of APIWARNs to match arch-independent code.kettenis2005-03-252-4/+4
| | | | ok deraadt@
* Fix APIWARNs.kettenis2005-03-252-6/+6
| | | | ok deraadt@
* warn about unsafe APIs at link time. Conditional on libc/Makefile definingderaadt2003-07-242-2/+16
| | | | | APIWARN; disabled by default. In use by many developers for quite some time, now they have a common knob to enable/disable this
* oopsderaadt2003-06-112-12/+2
|
* ansification; checked by pvalderaadt2003-06-112-2/+12
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* offload the arguments from the stack before performingmickey2002-07-081-9/+7
| | | | | | the copying, initial idea is from freebsd (not fully implemented there, apparently). this also makes bcopy/memcpy a tiny little bit faster.
* don't use %ebx, that's what %edx is for; Andy Doran <ad@netbsd.org>mickey2000-12-291-8/+6
|
* missing parts from last commitmillert1999-04-251-2/+2
|
* tabifykstailey1997-07-231-3/+3
|
* Fix RCS idstholo1996-08-1920-16/+51
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* Add support for building lint(1) librarytholo1996-03-251-0/+2
|
* initial import of NetBSD treederaadt1995-10-1820-0/+836