History log of /kvm-unit-tests/lib/string.h (Results 1 – 12 of 12)
Revision Date Author Comments
# 48d59524 02-Feb-2024 Andrew Jones <andrew.jones@linux.dev>

Merge branch 'riscv/initial-port-v3' into 'master'

riscv: Initial port

See merge request kvm-unit-tests/kvm-unit-tests!50


# 24aec76a 03-Oct-2023 Andrew Jones <andrew.jones@linux.dev>

lib: Add strcasecmp and strncasecmp

We'll soon want a case insensitive string comparison. Add toupper()
and tolower() too (the latter gets used by the new string functions).

Signed-off-by: Andrew J

lib: Add strcasecmp and strncasecmp

We'll soon want a case insensitive string comparison. Add toupper()
and tolower() too (the latter gets used by the new string functions).

Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>

show more ...


# 39bc401a 27-Jan-2023 Joey Gouly <joey.gouly@arm.com>

lib/string: include stddef.h for size_t

Don't implicitly rely on this header being included.

Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Message-Id: <20230127114108.10025-2-joey.gouly@arm.com>
S

lib/string: include stddef.h for size_t

Don't implicitly rely on this header being included.

Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Message-Id: <20230127114108.10025-2-joey.gouly@arm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>

show more ...


# 9f0ae301 09-Jun-2021 Cornelia Huck <cohuck@redhat.com>

lib: unify header guards

Standardize header guards to _LIB_HEADER_H_.

Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210609143712.

lib: unify header guards

Standardize header guards to _LIB_HEADER_H_.

Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210609143712.60933-3-cohuck@redhat.com>

show more ...


# f583d924 30-Mar-2021 Paolo Bonzini <bonzini@gnu.org>

Merge branch 'arm/queue' into 'master'

arm/arm64: Fixes, improvements, and prep for target-efi

See merge request kvm-unit-tests/kvm-unit-tests!6


# 546914b4 18-Mar-2021 Nikos Nikoleris <nikos.nikoleris@arm.com>

devicetree: Parse correctly the stdout-path

The stdout-path property in the device tree is a string of the form

"UART_NODE:OPTS"

Where UART_NODE is a compatible serial port and OPTS specify
parame

devicetree: Parse correctly the stdout-path

The stdout-path property in the device tree is a string of the form

"UART_NODE:OPTS"

Where UART_NODE is a compatible serial port and OPTS specify
parameters such as the baud. Fix the way we parse the node and, at
least for now, ignore options as we don't act on them.

Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Signed-off-by: Andrew Jones <drjones@redhat.com>

show more ...


# b5501ed0 18-Mar-2021 Nikos Nikoleris <nikos.nikoleris@arm.com>

lib/string: Add strnlen, strrchr and strtoul

This change adds two functions from <string.h> and one from <stdlib.h>
in preparation for an update in libfdt.

Signed-off-by: Nikos Nikoleris <nikos.nik

lib/string: Add strnlen, strrchr and strtoul

This change adds two functions from <string.h> and one from <stdlib.h>
in preparation for an update in libfdt.

Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
[ Added strtol, overflow checks, and assert on errors. ]
Signed-off-by: Andrew Jones <drjones@redhat.com>

show more ...


# 4b6da826 07-Apr-2017 Thomas Huth <thuth@redhat.com>

lib: Add headers to generic library files

Many files in the lib folder do not have proper statements about
their license. Add such a header there so that it is clear under
which conditions the code

lib: Add headers to generic library files

Many files in the lib folder do not have proper statements about
their license. Add such a header there so that it is clear under
which conditions the code can be used.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>

show more ...


# 4fd53297 11-May-2016 Radim Krčmář <rkrcmar@redhat.com>

lib/string: add strncmp

Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Message-Id: <1462983171-4208-5-git-send-email-rkrcmar@redhat.com>
Signed-off-b

lib/string: add strncmp

Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Message-Id: <1462983171-4208-5-git-send-email-rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...


# cc80e7ce 06-Nov-2015 Andrew Jones <drjones@redhat.com>

trivial: lib: missing extern in string.h

Signed-off-by: Andrew Jones <drjones@redhat.com>
Message-Id: <1446769483-21586-5-git-send-email-drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@re

trivial: lib: missing extern in string.h

Signed-off-by: Andrew Jones <drjones@redhat.com>
Message-Id: <1446769483-21586-5-git-send-email-drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...


# 53da5cc0 12-Dec-2014 Andrew Jones <drjones@redhat.com>

report: add prefix support

Add some methods to report in order to manage output prefixes.
Also add strstr to string, as it was useful for implementing
report_prefix_pop. Prefixes can be useful, as t

report: add prefix support

Add some methods to report in order to manage output prefixes.
Also add strstr to string, as it was useful for implementing
report_prefix_pop. Prefixes can be useful, as test code
frequently has the following pattern

main()
{
foreach(subtest)
run(subtest)
}

But, if we want output lines to include 'subtest: ', then we
need

report("%s: ...", cond, subtest, ...)

for each report line. With push/pop we can now just do

subtest()
{
report_prefix_push(subtest);

report(...);
...
report(...);

report_prefix_pop();
}

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...


# 782ebe33 11-Jul-2014 Andrew Jones <drjones@redhat.com>

libcflat: add more string functions

More string functions will be needed for libfdt, add them and
also strcpy which was missing.

Split string function declarations out to own string.h.

Signed-off-

libcflat: add more string functions

More string functions will be needed for libfdt, add them and
also strcpy which was missing.

Split string function declarations out to own string.h.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

show more ...