aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/string/Makefile.inc
Commit message (Collapse)AuthorAgeFilesLines
* Implement strerror_l().Konstantin Belousov2020-12-161-0/+1
| | | | | | | | | | | | | | Only for the arches that provide user-mode TLS. PR: 251651 Requested by: yuri Discussed with: emaste, jilles, tijl Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D27495 MFC after: 2 weeks Notes: svn path=/head/; revision=368692
* Document memset_s(3). memset_s(3) is defined inCy Schubert2018-02-161-0/+1
| | | | | | | | | | | | | | | | | | | C11 standard (ISO/IEC 9899:2011) K.3.7.4.1 The memset_s function (p: 621-622) Fix memset(3) portion of the man page by replacing the first argument (destination) "b" with "dest", which is more descriptive than "b". This also makes it consistent with the term used in the memset_s() portion of the man page. See also http://en.cppreference.com/w/c/string/byte/memset. Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D13682 Notes: svn path=/head/; revision=329361
* Implement the memset_s(3) function as specified by the C11 ISO/IECKonstantin Belousov2017-03-301-1/+1
| | | | | | | | | | | | | | | | | 9899:2011 Appendix K 3.7.4.1. Other needed supporting types, defines and constraint_handler infrastructure is added as specified in the C11 spec. Submitted by: Tom Rix <trix@juniper.net> Sponsored by: Juniper Networks Discussed with: ed MFC after: 3 weeks Differential revision: https://reviews.freebsd.org/D9903 Differential revision: https://reviews.freebsd.org/D10161 Notes: svn path=/head/; revision=316213
* Replace dot-dot relative pathing with SRCTOP-relative paths where possibleEnji Cooper2017-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | This reduces build output, need for recalculating paths, and makes it clearer which paths are relative to what areas in the source tree. The change in performance over a locally mounted UFS filesystem was negligible in my testing, but this may more positively impact other filesystems like NFS. LIBC_SRCTOP was left alone so Juniper (and other users) can continue to manipulate lib/libc/Makefile (and other Makefile.inc's under lib/libc) as include Makefiles with custom options. Discussed with: marcel, sjg MFC after: 1 week Reviewed by: emaste Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D9207 Notes: svn path=/head/; revision=312451
* Add timingsafe_bcmp and timingsafe_memcmp.Xin LI2016-08-141-2/+8
| | | | | | | | | | Obtained from: OpenBSD Reviewed by: trasz MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D7280 Notes: svn path=/head/; revision=304106
* Remove duplicated code.Xin LI2014-10-161-0/+1
| | | | | | | Suggested by: jmg Notes: svn path=/head/; revision=273189
* Add MLINK for explicit_bzero(3) and bump .Dd date.Xin LI2014-10-071-0/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=272675
* Add explicit_bzero(3) and its kernel counterpart.Xin LI2014-10-071-1/+2
| | | | | | | | Obtained from: OpenBSD MFC after: 2 weeks Notes: svn path=/head/; revision=272673
* Merge strcspn.3 into strspn.3 and clarify the explaination of what they doAllan Jude2014-05-251-1/+2
| | | | | | | | | | Detach strcspn.3 from the build Add strcspn.3 to MLINKS do it will be symlinked to strspn.3 Approved by: eadler (mentor), bcr (mentor) Notes: svn path=/head/; revision=266671
* Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}Marcel Moolenaar2014-03-041-4/+4
| | | | | | | | | | | | | | if not already defined. This allows building libc from outside of lib/libc using a reach-over makefile. A typical use-case is to build a standard ILP32 version and a COMPAT32 version in a single iteration by building the COMPAT32 version using a reach-over makefile. Obtained from: Juniper Networks, Inc. Notes: svn path=/head/; revision=262722
* Create a symlink from strchrnul.3 to strchr.3.Niclas Zeising2013-03-061-1/+2
| | | | | | | | | This was forgotten in the initial commit of strchrnul() Approved by: theraven Notes: svn path=/head/; revision=247899
* Add strchrnul(), a GNU function similar to strchr(), except that it returnsNiclas Zeising2013-02-131-3/+3
| | | | | | | | | | a pointer to the end of the string, rather than NULL, if the character was not found. Approved by: theraven Notes: svn path=/head/; revision=246766
* Add the functions documented in the man pages in commit 237393 to theIsabell Long2012-06-211-2/+7
| | | | | | | | | | | relevant Makefile. Reminded by: gavin Approved by: gabor (mentor) MFC after: 5 days Notes: svn path=/head/; revision=237409
* Merge index() and strchr() together.Ed Schouten2012-01-031-2/+2
| | | | | | | | | | | | | | | | | | | | As I looked through the C library, I noticed the FreeBSD MIPS port has a hand-written version of index(). This is nice, if it weren't for the fact that most applications call strchr() instead. Also, on the other architectures index() and strchr() are identical, meaning we have two identical pieces of code in the C library and statically linked applications. Solve this by naming the actual file strchr.[cS] and let it use __strong_reference()/STRONG_ALIAS() to provide the index() routine. Do the same for rindex()/strrchr(). This seems to make the C libraries and static binaries slightly smaller, but this reduction in size seems negligible. Notes: svn path=/head/; revision=229368
* Powerpc is special here. powerpc and powerpc64 use different ABIs, soWarner Losh2010-08-241-4/+2
| | | | | | | | | their implementations aren't in the same files. Introduce LIBC_ARCH and use that in preference to MACHINE_CPUARCH. Tested by amd64 and powerpc64 builds (thanks nathanw@) Notes: svn path=/head/; revision=211774
* MFtbemd:Warner Losh2010-08-231-3/+3
| | | | | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform. Notes: svn path=/head/; revision=211725
* Add wcpcpy(3) and wcpncpy(3).David Schultz2009-03-041-2/+4
| | | | Notes: svn path=/head/; revision=189361
* - Add getdelim(), getline(), stpncpy(), strnlen(), wcsnlen(),David Schultz2009-02-281-6/+13
| | | | | | | | | | | | | | | wcscasecmp(), and wcsncasecmp(). - Make some previously non-standard extensions visible if POSIX_VISIBLE >= 200809. - Use restrict qualifiers in stpcpy(). - Declare off_t and size_t in stdio.h. - Bump __FreeBSD_version in case the new symbols (particularly getline()) cause issues with ports. Reviewed by: standards@ Notes: svn path=/head/; revision=189136
* Sort MLINKS.Ruslan Ermilov2009-01-091-21/+32
| | | | Notes: svn path=/head/; revision=186957
* Import the strndup(3) function.Konstantin Belousov2008-12-061-1/+2
| | | | | | | | | | | Copyright attribution is kept the same as in original NetBSD source. Submitted by: Florian Smeets <flo kasimir com> Obtained from: NetBSD MFC after: 2 weeks Notes: svn path=/head/; revision=185690
* Order the str*.c files mostly alphabetical.Konstantin Belousov2008-12-061-3/+3
| | | | | | | | Submitted by: Florian Smeets <flo kasimir com> MFC after: 2 weeks Notes: svn path=/head/; revision=185689
* Add the ffsll and flsll functions. These are ffs and fls operatingKonstantin Belousov2008-11-031-2/+4
| | | | | | | | | | | on long long arguments. Reviewed by: bde (previous version, that included asm implementation for all ffs and fls functions on i386 and amd64) MFC after: 2 weeks Notes: svn path=/head/; revision=184587
* Add memrchr(3).Xin LI2008-04-101-1/+2
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=178051
* Add each directory's symbol map file to SYM_MAPS.Daniel Eischen2006-03-131-0/+2
| | | | Notes: svn path=/head/; revision=156613
* Add the function memmem(3) as found in glibc and others.Andre Oppermann2005-08-251-5/+5
| | | | | | | | | | | | | It is the binary equivalent to strstr(3). void *memmem(const void *big, size_t big_len, const void *little, size_t little_len); Submitted by: Pascal Gloor <pascal.gloor at spale.com> MFC after: 3 days Notes: svn path=/head/; revision=149466
* Add an implementation of the semi-standard wcsdup() function, as foundTim J. Robbins2005-08-131-2/+3
| | | | | | | on Microsoft and GNU systems. Notes: svn path=/head/; revision=149011
* Add and document ffsl(), fls() and flsl().Dag-Erling Smørgrav2004-01-131-1/+5
| | | | Notes: svn path=/head/; revision=124483
* * Merge index(3) and rindex(3) to index(3) since the two functions areSimon L. B. Nielsen2003-07-281-2/+4
| | | | | | | | | | | | | | | | almost identical. * Merge strchr(3) and strrchr(3) to strchr(3) since the two functions are almost identical. * Make the wording of index(3) and strchr(3) more similar. * mdoc(7) cleanup. Submitted by: SUZUKI Koichi <metal@gc5.so-net.ne.jp>, keramida, myself PR: docs/32054 Reviewed by: ru Approved by: ceri (mentor) Notes: svn path=/head/; revision=118134
* libc_r wasn't so tied to libc for 22 months.Ruslan Ermilov2002-11-181-6/+4
| | | | Notes: svn path=/head/; revision=107052
* Add a placeholder implementation of wcscoll() and wcsxfrm() which givesTim J. Robbins2002-10-041-4/+6
| | | | | | | | locale-sensitive collation only in single-byte locales, and just does binary comparison for the others with extended character sets. Notes: svn path=/head/; revision=104443
* Add stpcpy(3).David E. O'Brien2002-10-031-2/+3
| | | | Notes: svn path=/head/; revision=104419
* Add an implementation of wcstok(), based on strtok_r().Tim J. Robbins2002-09-071-3/+4
| | | | Notes: svn path=/head/; revision=103067
* Add a manual page for wcswidth().Tim J. Robbins2002-08-201-1/+1
| | | | Notes: svn path=/head/; revision=102166
* Move just committed version of wcswidth.c here (from "locale"),Andrey A. Chernov2002-08-201-1/+1
| | | | | | | a bit optimized now. Notes: svn path=/head/; revision=102159
* Must link strerror manpage to strerror_r.Wes Peters2001-11-271-0/+1
| | | | | | | | | Thanks for the review, Mike. Submitted by: Mike Barcroft <mike@FreeBSD.org> Notes: svn path=/head/; revision=86945
* Implement strcasestr() which many others (f.e. Linux) already have.Andrey A. Chernov2001-10-101-1/+2
| | | | Notes: svn path=/head/; revision=84740
* Add a new libc function, strnstr(3), which allows one to limit theMike Barcroft2001-10-091-0/+2
| | | | | | | | | | | number of characters that are searched. This is especially useful with file operations and non-NUL terminated strings. Silence from: -audit, -hackers MFC after: 5 days Notes: svn path=/head/; revision=84699
* Only pull in the MD files if they exist. This allows for progressiveMark Peek2001-07-311-0/+2
| | | | | | | implementation and compilation when bringing up a new architecture. Notes: svn path=/head/; revision=80743
* style nitsDavid E. O'Brien2001-07-101-2/+2
| | | | Notes: svn path=/head/; revision=79554
* adapt to FreeBSD.Takuya SHIOZAKI2001-05-151-2/+16
| | | | | | | | | | | | | - enable locale-insensitive functions of wchar.h: wcscat.c wcschr.c wcscmp.c wcscpy.c wcscspn.c wcslcat.c wcslcpy.c wcslen.c wcsncat.c wcsncmp.c wcsncpy.c wcspbrk.c wcsrchr.c wcsspn.c wcsstr.c wmemchr.c wmemcmp.c wmemcpy.c wmemmove.c wmemset.c XXX: wcswidth.c is not enabled yet. - enable wmemchr(3) man page. XXX: FreeBSD lacks .St -isoC99 and .St -isoC-amd1. Notes: svn path=/head/; revision=76637
* MAN[1-9] -> MAN.Ruslan Ermilov2001-03-271-1/+1
| | | | Notes: svn path=/head/; revision=74870
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Import strl{cat,cpy} from OpenBSD.Warner Losh1999-08-101-6/+8
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=49593
* Fixed disordering and duplication of MLINKS in previous commit toBruce Evans1999-05-191-2/+1
| | | | | | | libc/string/Makefile.inc. psignal.3 doesn't live in libc/string. Notes: svn path=/head/; revision=47320
* Add a strsignal(3) (like strerror(3)) for libc compatability with otherPeter Wemm1999-05-181-2/+3
| | | | | | | systems. NetBSD, Linux, SVR4 etc all have it. Notes: svn path=/head/; revision=47289
* Install man page link for strtok_r.John Polstra1999-01-191-1/+2
| | | | Notes: svn path=/head/; revision=42870
* Change MACHINE references to MACHINE_ARCH.John Birrell1998-02-201-3/+3
| | | | Notes: svn path=/head/; revision=33668
* Sorted lists.Bruce Evans1997-10-211-4/+4
| | | | Notes: svn path=/head/; revision=30624
* Handle machine-dependent (m-d) (string) sources more automatically.Bruce Evans1997-10-161-73/+7
| | | | | | | | | | | | | | | | | | | | | | | | The names of m-d variants are now added (manually) to MDSRCS instead of to SRCS, and the names of all machine-independent (m-i) variants that can reasonably be replaced by an m-d variant are now added (manually) to MISRCS instead of to SRCS, so that a simple substitution can be used to discard the unused m-i variants. MISRCS is potentially all m-i sources, but the substitution is too simple to be fast, so MISRCS should be kept reasonably small. libc/Makefile.inc: Do the substitution. libc/i386/string/Makefile.inc: Add to MDSRCS instead of to SRCS. Add the names of all sources in this directory, but no others. libc/string/Makefile.inc Add to MISRCS instead of to SRCS. Add the names of all sources in this directory. Don't use (broken) explicit rules for special cases. Notes: svn path=/head/; revision=30481
* Removed the subdirectory paths from the definitions of MAN[1-9]. TheyBruce Evans1997-10-151-11/+6
| | | | | | | | were a workaround for limitations in bsd.man.mk that were fixed about 2 years ago. Notes: svn path=/head/; revision=30447