History log of /freebsd/include/string.h (Results 51 – 75 of 110)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0
# 52fbcc15 24-Nov-2005 Ruslan Ermilov <ru@FreeBSD.org>

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


# fee45c0c 24-Nov-2005 Ruslan Ermilov <ru@FreeBSD.org>

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


Revision tags: release/6.0.0_cvs, release/6.0.0
# da506dca 25-Aug-2005 Andre Oppermann <andre@FreeBSD.org>

Appropriate namespace protection for memmem(3).

Submitted by: wollman
MFC after: 3 days


# 6050c8fe 25-Aug-2005 Andre Oppermann <andre@FreeBSD.org>

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_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0
# 2f5cde3c 10-Dec-2004 Tom Rhodes <trhodes@FreeBSD.org>

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 <rodrigc@crodrigues.org>
Discussed with: das

show more ...


Revision tags: release/5.3.0_cvs, release/5.3.0
# 779f8b0d 23-Jul-2004 Tim J. Robbins <tjr@FreeBSD.org>

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


Revision tags: release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0
# 12eb46c8 07-Dec-2003 Marcel Moolenaar <marcel@FreeBSD.org>

Change the definition of NULL on ia64 (for LP64 compilations) from
an int constant to a long constant. This change improves consistency
in the following two ways:
1. The first 8 arguments are always

Change the definition of NULL on ia64 (for LP64 compilations) from
an int constant to a long constant. This change improves consistency
in the following two ways:
1. The first 8 arguments are always passed in registers on ia64, which
by virtue of the generated code implicitly widens ints to longs and
allows the use of an 32-bit integral type for 64-bit arguments.
Subsequent arguments are passed onto the memory stack, which does
not exhibit the same behaviour and consequently do not allow this.
In practice this means that variadic functions taking pointers
and given NULL (without cast) work as long as the NULL is passed
in one of the first 8 arguments. A SIGSEGV is more likely the
result if such would be done for stack-based arguments. This is
due to the fact that the upper 4 bytes remain undefined.
2. All 64-bit platforms that FreeBSD supports, with the obvious
exception of ia64, allow 32-bit integral types (specifically NULL)
when 64-bit pointers are expected in variadic functions by way of
how the compiler generates code. As such, code that works correctly
(whether rightfully so or not) on any platform other than ia64, may
fail on ia64.

To more easily allow tweaking of the definition of NULL, this commit
removes the 12 definitions in the various headers and puts it in a
new header that can be included whenever NULL is to be made visible.

This commit fixes GNOME, emacs, xemacs and a whole bunch of ports
that I don't particularly care about at this time...

show more ...


Revision tags: release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0
# 32484af1 14-Oct-2002 Mike Barcroft <mike@FreeBSD.org>

Correct visibility conditionals for memccpy(), strdup(), and
strtok_r(). Merge conditional prototypes into the regular block.


Revision tags: release/4.7.0_cvs
# 103f8a93 06-Oct-2002 David E. O'Brien <obrien@FreeBSD.org>

Make stpcpy() only visiable w/in __BSD_VISIBLE.


# 1d6bd7d7 03-Oct-2002 David E. O'Brien <obrien@FreeBSD.org>

Add stpcpy(3).


# abbd8902 21-Aug-2002 Mike Barcroft <mike@FreeBSD.org>

o Merge <machine/ansi.h> and <machine/types.h> into a new header
called <machine/_types.h>.
o <machine/ansi.h> will continue to live so it can define MD clock
macros, which are only MD because of

o Merge <machine/ansi.h> and <machine/types.h> into a new header
called <machine/_types.h>.
o <machine/ansi.h> will continue to live so it can define MD clock
macros, which are only MD because of gratuitous differences between
architectures.
o Change all headers to make use of this. This mainly involves
changing:
#ifdef _BSD_FOO_T_
typedef _BSD_FOO_T_ foo_t;
#undef _BSD_FOO_T_
#endif
to:
#ifndef _FOO_T_DECLARED
typedef __foo_t foo_t;
#define _FOO_T_DECLARED
#endif

Concept by: bde
Reviewed by: jake, obrien

show more ...


Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs
# 6e070759 15-Apr-2002 Mike Barcroft <mike@FreeBSD.org>

Add support for X/Open.

PR: 37078


# 61b60edf 04-Apr-2002 Mike Barcroft <mike@FreeBSD.org>

o Move some function prototypes from <string.h> to the newly rewritten
<strings.h>, based on POSIX.1-2001's requirements.
o Add 'restrict' qualifier (spelled '__restrict') to functions in
<string

o Move some function prototypes from <string.h> to the newly rewritten
<strings.h>, based on POSIX.1-2001's requirements.
o Add 'restrict' qualifier (spelled '__restrict') to functions in
<string.h>, as per C99 and POSIX.1-2001.
o Properly expose new POSIX.1-2001 functions in <string.h>.

show more ...


# bb28f3c2 23-Mar-2002 Warner Losh <imp@FreeBSD.org>

Breath deep and take __P out of the system include files.

# This appears to not break X11, but I'm having problems compiling the
# glide part of the server with or without this patch, so I can't tel

Breath deep and take __P out of the system include files.

# This appears to not break X11, but I'm having problems compiling the
# glide part of the server with or without this patch, so I can't tell
# for sure.

show more ...


Revision tags: release/4.5.0_cvs, release/4.4.0_cvs
# d23c1cd5 28-Nov-2001 Bruce Evans <bde@FreeBSD.org>

Fixed namespace pollution in previous commit. The C99 function
sterror_r() must not be declared in the C90/POSIX.1-1990 section.
Put it in the nonstandard section for now.


# 9c324dc0 27-Nov-2001 Wes Peters <wes@FreeBSD.org>

Add strerror_r function per Posix prototype.

Reviewed by: Mike Barcroft <mike@FreeBSD.org>
MFC after: 2 weeks


# 4546f902 10-Oct-2001 Bruce Evans <bde@FreeBSD.org>

Fixed some style bugs:
- rev.1.6: corrupt tab before strlcpy.
- rev.1.7: "From: " in vendor id.
- rev.1.8: unsorted prototype for strccasestr.


# a7ad1cac 10-Oct-2001 Andrey A. Chernov <ache@FreeBSD.org>

Implement strcasestr() which many others (f.e. Linux) already have


# 41036d78 09-Oct-2001 Mike Barcroft <mike@FreeBSD.org>

Add a new libc function, strnstr(3), which allows one to limit the
number of characters that are searched. This is especially useful
with file operations and non-NUL terminated strings.

Silence fro

Add a new libc function, strnstr(3), which allows one to limit the
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

show more ...


Revision tags: release/4.3.0_cvs, release/4.3.0, release/4.2.0, release/4.1.1_cvs, release/4.1.0, release/3.5.0_cvs, release/4.0.0_cvs, release/3.4.0_cvs, release/3.3.0_cvs
# c0344bf0 16-Aug-1999 Warner Losh <imp@FreeBSD.org>

Add prototypes for strl* functions

Forgotten by: imp
Reported by: bde


Revision tags: release/3.2.0
# 78121e79 18-May-1999 Peter Wemm <peter@FreeBSD.org>

Add a strsignal(3) (like strerror(3)) for libc compatability with other
systems. NetBSD, Linux, SVR4 etc all have it.


Revision tags: release/3.1.0, release/3.0.0, release/2.2.8
# 5d00b6cc 20-Jan-1999 John Polstra <jdp@FreeBSD.org>

Add a prototype for strtok_r().


Revision tags: release/2.2.7, release/2.2.6, release/2.2.5_cvs, release/2.2.2_cvs, release/2.2.1_cvs, release/2.2.0, release/2.1.7_cvs, release/2.1.6_cvs, release/2.1.6.1
# 2ad334cd 17-Dec-1996 Warner Losh <imp@FreeBSD.org>

string.h defines nonstandard routines when _POSIX_SOURCE is
defined. It has been fixed to not do that.

Submitted by: Jake Hamby <jehamby@lightside.com>
Closes PR: 1954


Revision tags: release/2.1.5_cvs, release/2.1.0_cvs, release/2.0.5_cvs
# 4399be3c 30-May-1995 Rodney W. Grimes <rgrimes@FreeBSD.org>

Remove trailing whitespace.


Revision tags: release/2.0, release/1.1.5.1_cvs
# 59deaec5 24-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite Include Sources


12345