History log of /freebsd-12.1/include/string.h (Results 1 – 25 of 44)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0
# 2321c474 20-Nov-2017 Pedro F. Giffuni <[email protected]>

include: further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 3-Clause license.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier

include: further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 3-Clause license.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.

show more ...


Revision tags: release/10.4.0, release/11.1.0
# 9851b340 30-Mar-2017 Konstantin Belousov <[email protected]>

Implement the memset_s(3) function as specified by the C11 ISO/IEC
9899:2011 Appendix K 3.7.4.1.

Other needed supporting types, defines and constraint_handler
infrastructure is added as specified in

Implement the memset_s(3) function as specified by the C11 ISO/IEC
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 <[email protected]>
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

show more ...


Revision tags: release/11.0.1, release/11.0.0
# 854023f0 14-Aug-2016 Xin LI <[email protected]>

Add timingsafe_bcmp and timingsafe_memcmp.

Obtained from: OpenBSD
Reviewed by: trasz
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D7280


# 51072bd6 23-Jul-2016 Dimitry Andric <[email protected]>

Vendor import of libc++ release_39 branch r276489:
https://llvm.org/svn/llvm-project/libcxx/branches/release_39@276489


Revision tags: release/10.3.0, release/10.2.0, release/10.1.0, release/9.3.0
# 448f5f73 11-May-2014 Jilles Tjoelker <[email protected]>

include: Remove checks for __BSD_VISIBLE where redundant with __XSI_VISIBLE
or __POSIX_VISIBLE.

Whenever <sys/cdefs.h> sets __BSD_VISIBLE to non-zero, it also sets
__POSIX_VISIBLE and __XSI_VISIBLE

include: Remove checks for __BSD_VISIBLE where redundant with __XSI_VISIBLE
or __POSIX_VISIBLE.

Whenever <sys/cdefs.h> sets __BSD_VISIBLE to non-zero, it also sets
__POSIX_VISIBLE and __XSI_VISIBLE to the newest version supported.

No functional change is intended.

show more ...


Revision tags: release/10.0.0, release/9.2.0, release/8.4.0
# 4e95969e 14-Feb-2013 Niclas Zeising <[email protected]>

FreeBSD uses #if __BSD_VISIBLE to hide non-standard functions, fix this.

Noticed by: kib
Approved by: kib


# d902844b 13-Feb-2013 Niclas Zeising <[email protected]>

Add strchrnul(), a GNU function similar to strchr(), except that it returns
a pointer to the end of the string, rather than NULL, if the character was
not found.

Approved by: theraven


Revision tags: release/9.1.0, release/8.3.0
# 3ac9d659 28-Mar-2012 David Chisnall <[email protected]>

Correctly expose xlocale functions if people include the headers in the wrong
order (as some ports apparently do).

Approved by: dim (mentor)


# a8ed63bb 04-Mar-2012 David Chisnall <[email protected]>

Reapply 227753 (xlocale cleanup), plus some fixes so that it passes build
universe with gcc.

Approved by: dim (mentor)


# b74cf6dc 14-Feb-2012 Dimitry Andric <[email protected]>

Revert r231673 and r231682 for now, until we can run a full make
universe with them. Sorry for the breakage.

Pointy hat to: me and brooks


# 82dd5016 14-Feb-2012 David Chisnall <[email protected]>

Cleanup of xlocale:

- Address performance regressions encountered by das@ by caching per-thread
data in TLS where available.
- Add a __NO_TLS flag to cdefs.h to indicate where not available.
- Reo

Cleanup of xlocale:

- Address performance regressions encountered by das@ by caching per-thread
data in TLS where available.
- Add a __NO_TLS flag to cdefs.h to indicate where not available.
- Reorganise the xlocale.h definitions into xlocale/*.h so that they can be
included from multiple places.
- Export the POSIX2008 subset of xlocale when POSIX2008 says it should be
exported, independently of whether xlocale.h is included.
- Fix the bug where programs using ctype functions always assumed ASCII unless
recompiled.
- Fix some style(9) violations.

Reviewed by: brooks (mentor)
Approved by: dim (mentor)

show more ...


Revision tags: release/7.4.0, release/8.2.0, release/8.1.0, release/7.3.0
# f2556687 16-Feb-2010 Warner Losh <[email protected]>

Remove the Berkeley clause 3's.
Add a few $FreeBSD$


Revision tags: release/8.0.0, release/7.2.0
# dd5185d1 14-Mar-2009 David Schultz <[email protected]>

Namespace: memccpy() and memchr() are XSI, and memrchr() is a BSD extension.


# 69099ba2 28-Feb-2009 David Schultz <[email protected]>

- Add getdelim(), getline(), stpncpy(), strnlen(), wcsnlen(),
wcscasecmp(), and wcsncasecmp().
- Make some previously non-standard extensions visible
if POSIX_VISIBLE >= 200809.
- Use restrict qu

- Add getdelim(), getline(), stpncpy(), strnlen(), wcsnlen(),
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@

show more ...


# e00a6d21 28-Feb-2009 David Schultz <[email protected]>

Add restrict qualifiers to the parameters to strlcpy() and strlcat().
The annotation mainly just serves as a hint that they're not intended
for use with overlapping strings.


# dce7ffd6 28-Feb-2009 David Schultz <[email protected]>

Mark memmem() __pure.


# 544048ec 31-Jan-2009 David Schultz <[email protected]>

Add a function attribute called `__malloc_like', which informs gcc
that the annotated function returns a pointer that doesn't alias any
extant pointer. This results in a 50%+ speedup in microbenchmar

Add a function attribute called `__malloc_like', which informs gcc
that the annotated function returns a pointer that doesn't alias any
extant pointer. This results in a 50%+ speedup in microbenchmarks such
as the following:

char *cp = malloc(1), *buf = malloc(BUF);
for (i = 0; i < BUF; i++) buf[i] = *cp;

In real programs, your mileage will vary. Note that gcc already
performs this optimization automatically for any function called
`malloc', `calloc', `strdup', or `strndup' unless -fno-builtins is
used.

show more ...


Revision tags: release/7.1.0
# 20e76cb3 08-Dec-2008 Konstantin Belousov <[email protected]>

Add strndup(3) prototype to string.h.

This change was erronously ommitted from the r185690, and attempt
to simply add the prototype to string.h has revealed that several
contributed programs defined

Add strndup(3) prototype to string.h.

This change was erronously ommitted from the r185690, and attempt
to simply add the prototype to string.h has revealed that several
contributed programs defined local prototypes for strndup(), controlled
by autoconfed config.h. So, manually change #undef HAVE_STRNDUP to
#define HAVE_STRNDUP 1. Next import of the corresponding program would
regenerate config.h, overriding the changes in this commit.

No objections from: kan

show more ...


Revision tags: release/6.4.0
# 82e45205 10-Apr-2008 Xin LI <[email protected]>

Add memrchr(3).

Obtained from: OpenBSD


Revision tags: release/7.0.0, release/6.3.0, release/6.2.0, release/5.5.0, release/6.1.0
# 52fbcc15 24-Nov-2005 Ruslan Ermilov <[email protected]>

Revert last revision, strmode() should be moved to <unistd.h> to be
properly fixed.


# fee45c0c 24-Nov-2005 Ruslan Ermilov <[email protected]>

Fix prototype of strmode() to match the code and documentation.


Revision tags: release/6.0.0
# da506dca 25-Aug-2005 Andre Oppermann <[email protected]>

Appropriate namespace protection for memmem(3).

Submitted by: wollman
MFC after: 3 days


# 6050c8fe 25-Aug-2005 Andre Oppermann <[email protected]>

Add the function memmem(3) as found in glibc and others.
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

Add the function memmem(3) as found in glibc and others.
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

show more ...


Revision tags: release/5.4.0, release/4.11.0
# 2f5cde3c 10-Dec-2004 Tom Rhodes <[email protected]>

According to the information on:
http://www.opengroup.org/onlinepubs/009695399/functions/swab.html
the prototype for swab() should be in <unistd.h> and not in <string.h>.
Move it, and update to match

According to the information on:
http://www.opengroup.org/onlinepubs/009695399/functions/swab.html
the prototype for swab() should be in <unistd.h> and not in <string.h>.
Move it, and update to match SUS. Leave the prototype in string.h for
now, for backwards compat.

PR: 74751
Submitted by: Craig Rodrigues <[email protected]>
Discussed with: das

show more ...


Revision tags: release/5.3.0
# 779f8b0d 23-Jul-2004 Tim J. Robbins <[email protected]>

Mark functions pure where applicable. A notable exclusion is strcoll(),
which is not strictly pure because it calls malloc()/free() in some cases.


12