| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
Obtained from: OpenBSD
Reviewed by: trasz
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D7280
Notes:
svn path=/head/; revision=304106
|
| |
|
|
|
|
|
| |
Suggested by: jmg
Notes:
svn path=/head/; revision=273189
|
| |
|
|
|
|
|
| |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=272675
|
| |
|
|
|
|
|
|
| |
Obtained from: OpenBSD
MFC after: 2 weeks
Notes:
svn path=/head/; revision=272673
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
This was forgotten in the initial commit of strchrnul()
Approved by: theraven
Notes:
svn path=/head/; revision=247899
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
| |
relevant Makefile.
Reminded by: gavin
Approved by: gabor (mentor)
MFC after: 5 days
Notes:
svn path=/head/; revision=237409
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Notes:
svn path=/head/; revision=189361
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Notes:
svn path=/head/; revision=186957
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
Submitted by: Florian Smeets <flo kasimir com>
MFC after: 2 weeks
Notes:
svn path=/head/; revision=185689
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=178051
|
| |
|
|
| |
Notes:
svn path=/head/; revision=156613
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
on Microsoft and GNU systems.
Notes:
svn path=/head/; revision=149011
|
| |
|
|
| |
Notes:
svn path=/head/; revision=124483
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Notes:
svn path=/head/; revision=107052
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Notes:
svn path=/head/; revision=104419
|
| |
|
|
| |
Notes:
svn path=/head/; revision=103067
|
| |
|
|
| |
Notes:
svn path=/head/; revision=102166
|
| |
|
|
|
|
|
| |
a bit optimized now.
Notes:
svn path=/head/; revision=102159
|
| |
|
|
|
|
|
|
|
| |
Thanks for the review, Mike.
Submitted by: Mike Barcroft <mike@FreeBSD.org>
Notes:
svn path=/head/; revision=86945
|
| |
|
|
| |
Notes:
svn path=/head/; revision=84740
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
implementation and compilation when bringing up a new architecture.
Notes:
svn path=/head/; revision=80743
|
| |
|
|
| |
Notes:
svn path=/head/; revision=79554
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
|
| |
Notes:
svn path=/head/; revision=74870
|
| |
|
|
| |
Notes:
svn path=/head/; revision=50476
|
| |
|
|
|
|
|
| |
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=49593
|
| |
|
|
|
|
|
| |
libc/string/Makefile.inc. psignal.3 doesn't live in libc/string.
Notes:
svn path=/head/; revision=47320
|
| |
|
|
|
|
|
| |
systems. NetBSD, Linux, SVR4 etc all have it.
Notes:
svn path=/head/; revision=47289
|
| |
|
|
| |
Notes:
svn path=/head/; revision=42870
|
| |
|
|
| |
Notes:
svn path=/head/; revision=33668
|
| |
|
|
| |
Notes:
svn path=/head/; revision=30624
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
were a workaround for limitations in bsd.man.mk that were fixed about
2 years ago.
Notes:
svn path=/head/; revision=30447
|