History log of /dflybsd-src/include/string.h (Results 1 – 25 of 35)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v6.4.0, v6.4.0rc1, v6.5.0, v6.2.2
# 0f674440 20-Apr-2022 Sascha Wildner <saw@online.de>

<string.h>: Don't declare timingsafe_bcmp() twice when libkern.h is included.

This unbreaks the vkernel build.


Revision tags: v6.2.1, v6.3.0, v6.0.1, v6.0.0, v6.0.0rc1, v6.1.0, v5.8.3, v5.8.2, v5.8.1, v5.8.0, v5.9.0, v5.8.0rc1, v5.6.3
# b80b4d43 16-Nov-2019 Sascha Wildner <saw@online.de>

<string.h>: Clean up the namespace.

* Stop including <sys/types.h> which was needed only for mode_t for
the BSD specific strmode(). Define mode_t locally in __BSD_VISIBLE.

* Increase visibility o

<string.h>: Clean up the namespace.

* Stop including <sys/types.h> which was needed only for mode_t for
the BSD specific strmode(). Define mode_t locally in __BSD_VISIBLE.

* Increase visibility of the memccpy() prototype. It is older than
SUSv3.

show more ...


# 185dfddd 07-Oct-2019 Sascha Wildner <saw@online.de>

<string.h>: Put memset_s() prototype inside __{BEGIN,END}_DECLS().

Reported-by: zrj


# 6fbc243f 14-Sep-2019 Sascha Wildner <saw@online.de>

libc/string: Add memset_s(3).

Taken-from: FreeBSD


Revision tags: v5.6.2, v5.6.1, v5.6.0, v5.6.0rc1, v5.7.0, v5.4.3, v5.4.2
# 5db26a4b 10-Apr-2019 zrj <rimvydas.jasinskas@gmail.com>

<string.h>: Remove legacy declaration of swab().

It has prototype in <unistd.h> like in other BSDs and GNU implementations
as per OpenGroups XSI.


# 641ead6d 09-Apr-2019 zrj <rimvydas.jasinskas@gmail.com>

libc/string: Add timing_safe functions from OpenBSD.

Good and small functions for crypto retlated things.
Add manpage and set __pure attributes.

Taken-from: OpenBSD


Revision tags: v5.4.1, v5.4.0, v5.5.0, v5.4.0rc1, v5.2.2, v5.2.1, v5.2.0, v5.3.0, v5.2.0rc
# d33005aa 15-Feb-2018 Sascha Wildner <saw@online.de>

Add missing restrict qualifiers in POSIX function definitions/declarations.

This creates no further -Wrestrict warnings with gcc80 in buildworld.


Revision tags: v5.0.2, v5.0.1, v5.0.0, v5.0.0rc2, v5.1.0, v5.0.0rc1, v4.8.1, v4.8.0, v4.6.2, v4.9.0, v4.8.0rc, v4.6.1
# 3d258b72 22-Sep-2016 zrj <rimvydas.jasinskas@gmail.com>

Use recently added attributes in few standard headers.

There attributes are to assits compiler making better analysis
doring compilation time. Like branch prediction and hinting.

While there, for n

Use recently added attributes in few standard headers.

There attributes are to assits compiler making better analysis
doring compilation time. Like branch prediction and hinting.

While there, for now prefer to use __attribute__((__noreturn__)) to
_Noreturn, since neither OpenBSD or NetBSD has it at all and in our
variant we don't handle it in c++ case ([[noreturn]]) anyway.
Looks to be only a workaround for some old clang++ version.

show more ...


Revision tags: v4.6.0, v4.6.0rc2, v4.6.0rc, v4.7.0, v4.4.3, v4.4.2, v4.4.1, v4.4.0
# d4e457a5 24-Nov-2015 Sascha Wildner <saw@online.de>

<string.h>: Fix vkernel build.


Revision tags: v4.5.0, v4.4.0rc
# 8eb95a56 21-Oct-2015 Sascha Wildner <saw@online.de>

Fix visibility of various functions in a number of headers.

The following functions were moved from XSI into the base with
POSIX 200809:

catclose(), catgets(), catopen(), dlclose(), dlerror(), dlop

Fix visibility of various functions in a number of headers.

The following functions were moved from XSI into the base with
POSIX 200809:

catclose(), catgets(), catopen(), dlclose(), dlerror(), dlopen(),
dlsym(), fchdir(), getpgid(), getsid(), getsubopt(), iconv(),
iconv_close(), iconv_open(), lchown(), mkstemp(), nl_langinfo(),
poll(), pread(), pwrite(), strdup(), strfmon(), tcgetsid(),
truncate(), and waitid().

This commit adjusts our headers to reflect that, i.e. specifying
_POSIX_C_SOURCE=200809 is now enough to expose their prototypes.

The checking of __XSI_VISIBLE's value (ranges) for XSI functions
could certainly be better (generally in our headers).

Also, we don't yet have waitid().

This change was build tested with around 8000 ports (until the
bulk build choked on a jdk7 memory leak (I suppose) while building
textproc/fop). The glibc conformance test suite thinks this
commit is correct, too.

show more ...


# 8a9b35db 08-Sep-2015 Sascha Wildner <saw@online.de>

<dirent.h>/<string.h>: Remove redundant __XSI_VISIBLE checks.

__XSI_VISIBLE implies __POSIX_VISIBLE, and none of these functions is
XSI.

No functional changes (expected).


# a5235c48 08-Sep-2015 Sascha Wildner <saw@online.de>

<string.h>: memccpy() is XSI.


Revision tags: v4.2.4, v4.3.1, v4.2.3, v4.2.1, v4.2.0, v4.0.6, v4.3.0, v4.2.0rc, v4.0.5, v4.0.4, v4.0.3
# 05eaf8a2 03-Jan-2015 Sascha Wildner <saw@online.de>

Remove redundant __BSD_VISIBLE checks in various header files.

When __BSD_VISIBLE is set to 1, we also set (in <sys/cdefs.h>):

#define __POSIX_VISIBLE 200809
#define __XSI_VISIBLE 700
#define __I

Remove redundant __BSD_VISIBLE checks in various header files.

When __BSD_VISIBLE is set to 1, we also set (in <sys/cdefs.h>):

#define __POSIX_VISIBLE 200809
#define __XSI_VISIBLE 700
#define __ISO_C_VISIBLE 2011

show more ...


Revision tags: v4.0.2, v4.0.1, v4.0.0, v4.0.0rc3, v4.0.0rc2, v4.0.0rc, v4.1.0, v3.8.2, v3.8.1, v3.6.3, v3.8.0, v3.8.0rc2, v3.9.0, v3.8.0rc
# 993dad29 10-Apr-2014 Sascha Wildner <saw@online.de>

kernel/acpi: Move strstr() to libkern.

While here, clean up unneeded includes from acdragonfly.h too.


Revision tags: v3.6.2, v3.6.1, v3.6.0, v3.7.1, v3.6.0rc
# 0d5acd74 21-Sep-2013 John Marino <draco@marino.st>

locales, libconv: Sync with FreeBSD (extensive reach)

What started out as a relatively simply upgrade to libiconv finally
resulted in a simultaneous overhaul to locales, strings, and stdio.
All of t

locales, libconv: Sync with FreeBSD (extensive reach)

What started out as a relatively simply upgrade to libiconv finally
resulted in a simultaneous overhaul to locales, strings, and stdio.
All of these are interdependent and there is no way to upgrade them
individually or in steps.

These cases are similar to what happened with libm where significant
syncing came from NetBSD previously, rendering contributions from
FreeBSD difficult. Libiconv and locales (both ancient) are now in
sync with FreeBSD HEAD.

As several headers were signficantly updated and the mtree was updated
to accommodate the new include/xlocale directory, this commit will
require a full world build. It also may cause some dports to no longer
build due to prototype differences, but the dports will be adjusted.

The regexp library was not being used. It was removed from FreeBSD four
years ago. Since it required collate updates, I took the opportunity to
remove it completely by adding re_comp functionality to 4.3 compat
library like FreeBSD did.

__DragonFly_version has been bumped to 500300.

show more ...


Revision tags: v3.4.3, v3.4.2, v3.4.1, v3.4.0, v3.4.0rc, v3.5.0
# 2267fd78 05-Mar-2013 Johannes Hofmann <johannes.hofmann@gmx.de>

Merge branch 'master' of git://git.dragonflybsd.org/dragonfly into wlan_serialize


# 8fd2f243 03-Mar-2013 François Tigeot <ftigeot@wolfpond.org>

libc: Add strchrnul(), a glibc extension

* This function behaves like strchr() but returns a pointer to the
terminating \0 byte of the string instead of NULL if the character
was not found

* It

libc: Add strchrnul(), a glibc extension

* This function behaves like strchr() but returns a pointer to the
terminating \0 byte of the string instead of NULL if the character
was not found

* It was first implemented in glibc-2.1.1

Obtained-from: FreeBSD

show more ...


Revision tags: v3.2.2, v3.2.1, v3.2.0, v3.3.0, v3.0.3, v3.0.2, v3.0.1, v3.1.0, v3.0.0
# d8ee3b5d 20-Jan-2012 Samuel J. Greear <sjg@thesjg.com>

crypt(3) - Switch SHA256/512 to the Linux implementation

* The existing SHA backends have been shown to be more susceptible to brute-
force attacks than we would prefer --
http://www.openwall.co

crypt(3) - Switch SHA256/512 to the Linux implementation

* The existing SHA backends have been shown to be more susceptible to brute-
force attacks than we would prefer --
http://www.openwall.com/lists/oss-security/2012/01/16/2

* Bring in the reference implementation used in Linux, code is in the public
domain.

* Add required (standard) functions mempcpy and stpcpy.

* Change default for future installs to SHA512, this is the default on at
least archlinux and fedora.

* Add some minor hacks to libcrypt/crypt.c to ensure that
a) All existing passwords continue to work
b) All future passwords will be more secure with no changes required

* To update passwords to the new format use passwd(1) for each user, and to
change your default password type to SHA512 (default for new installations)
change the passwd_format setting under default to "sha512".

show more ...


# 86d7f5d3 26-Nov-2011 John Marino <draco@marino.st>

Initial import of binutils 2.22 on the new vendor branch

Future versions of binutils will also reside on this branch rather
than continuing to create new binutils branches for each new version.


Revision tags: v2.12.0, v2.13.0, v2.10.1, v2.11.0, v2.10.0, v2.9.1, v2.8.2, v2.8.1, v2.8.0, v2.9.0, v2.6.3, v2.7.3, v2.6.2, v2.7.2, v2.7.1, v2.6.1, v2.7.0, v2.6.0, v2.5.1, v2.4.1, v2.5.0, v2.4.0, v2.3.2, v2.3.1, v2.2.1
# bdec481f 22-Apr-2009 Matthew Dillon <dillon@apollo.backplane.com>

Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly


# 16b81a67 19-Apr-2009 Peter Avalos <pavalos@dragonflybsd.org>

Add the strnlen() function.

Obtained-from: FreeBSD


# e28f12ac 07-Apr-2009 Matthew Dillon <dillon@apollo.backplane.com>

Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly


Revision tags: v2.2.0, v2.3.0
# 716024cd 14-Jan-2009 Peter Avalos <pavalos@theshell.com>

Sync lib/libc/string with FreeBSD:

-Move legacy functions to strings.h.

-A few WARNS and style cleanup.

-Add ffsl(), fls(), flsl(), ffsll(), flsll().

-Merge index.3 and rindex.3 since they are so

Sync lib/libc/string with FreeBSD:

-Move legacy functions to strings.h.

-A few WARNS and style cleanup.

-Add ffsl(), fls(), flsl(), ffsll(), flsll().

-Merge index.3 and rindex.3 since they are so similar. Do the same for
strrchr().

-Add memrchr().

-Remove advertising clause from copyrights.

-Add memmem() which is basically the same as strstr().

-Add stpcpy().

-Add a SECURITY CONSIDERATIONS section to remind people about buffer
overflows, etc.

-Add restrict keyword where required.

-Add strndup().

-Correctly document the return value of strerror() and strerror_r() and
the contents of the returned buffer for unknown error codes.

-Add NLS catalogs support to strerror(), strerror_r() and strsignal().
Controlled by NLS define.

-For strl* files, use a less restrictive copyright (original author
changed it).

-strmode.3: strmode does not return 0.

-Move swab()'s prototype to unistd.h IAW SUS.

-Simplify by removing unneeded local variables and explicit
null termination is wcs* functions.

-Move wcscoll() and wcsxfrm() to string/ and do locale-sensitive
collation for single-byte locales.

-Add wcsdup().

-Remove unneeded includes.

-Reimplement wcsrchr(3) more efficiently, using a single forward scan
(like strrchr(3)) instead of scanning forwards to find the end of the
string then scanning backwards to find the character.

-Slightly optimize wcswidth().

-Tell contrib srcs that we have strndup now since some of them provide
their own static definition which will blow up a buildworld.

show more ...


Revision tags: v2.1.1, v2.0.1
# e4dcda4d 05-Jun-2008 Sascha Wildner <swildner@dragonflybsd.org>

Include <sys/_null.h> for the definition of NULL.


# 44a09dd6 05-Dec-2006 Matthew Dillon <dillon@dragonflybsd.org>

For the moment conditionally remove the declaration of certain libc
functions when compiling with _KERNEL_VIRTUAL to avoid conflicts with
replicas in the kernel code. This allows the virtual kernel

For the moment conditionally remove the declaration of certain libc
functions when compiling with _KERNEL_VIRTUAL to avoid conflicts with
replicas in the kernel code. This allows the virtual kernel source to
include standard libc header files.

Define _KERNEL_VIRTUAL in machine/vkernel/conf/kern.mk.

Begin fleshing out the virtual kernel init sequence.

show more ...


12