# # ChangeLog for common in mainline # # Generated by Trac 1.6 # 2025-08-23T11:06:17Z Thu, 17 Apr 2025 15:10:08 GMT Jiří Zárevúcky [1db4e2ae] * common/include/str.h (modified) * common/str.c (modified) * kernel/generic/src/console/console.c (modified) Have str_sanitize also remove C0 and C1 control codes and use it to ... Thu, 17 Apr 2025 15:04:17 GMT Jiří Zárevúcky [45adeeb] * common/include/str.h (modified) * common/str.c (modified) Expose restartable version of str_decode() as str_decode_r() Thu, 17 Apr 2025 14:29:23 GMT Jiří Zárevúcky [b31323f] * common/include/str.h (modified) * common/str.c (modified) * uspace/lib/c/test/str.c (modified) Test, fix and extend string sanitization Tue, 15 Apr 2025 18:53:31 GMT Jiří Zárevúcky [65bf084] * common/stdc/uchar.c (modified) * common/str.c (modified) Implement both str_decode() and mbrtoc32() using one function Tue, 15 Apr 2025 18:38:48 GMT Jiří Zárevúcky [f94a11f] * abi/include/_bits/mbstate_t.h (modified) * common/stdc/uchar.c (modified) * common/stdc/wchar.c (modified) Rename mbstate_t field to prevent confusion with continuation bytes Mon, 14 Apr 2025 11:23:38 GMT Jiří Zárevúcky [0600976] * common/stdc/uchar.c (modified) * common/str.c (modified) * uspace/lib/c/test/str.c (modified) Reject invalid non-shortest UTF-8 forms and fix some other issues in str Mon, 14 Apr 2025 08:37:32 GMT Jiří Zárevúcky [6120b7b] * common/str.c (modified) Fix an oversight in str_decode() Mon, 14 Apr 2025 08:30:07 GMT Jiří Zárevúcky [6d0e133] * common/str.c (modified) Improve handling of invalid data in str_decode() Sun, 13 Apr 2025 19:33:48 GMT Jiří Zárevúcky [163e34c] * common/include/printf_core.h (modified) * common/printf/printf_core.c (modified) * common/stdc/snprintf.c (moved) * common/stdc/vsnprintf.c (moved) * kernel/generic/meson.build (modified) * kernel/generic/src/log/log.c (modified) * kernel/generic/src/printf/snprintf.c (deleted) * kernel/generic/src/printf/vprintf.c (modified) * kernel/generic/src/printf/vsnprintf.c (deleted) * uspace/lib/c/generic/io/asprintf.c (modified) * uspace/lib/c/generic/io/kio.c (modified) * uspace/lib/c/generic/io/vprintf.c (modified) * uspace/lib/c/generic/io/vsnprintf.c (deleted) * uspace/lib/c/include/stdio.h (modified) * uspace/lib/c/meson.build (modified) * uspace/lib/posix/src/stdio.c (modified) Actually convert the printf outputs everywhere Sun, 13 Apr 2025 18:21:02 GMT Jiří Zárevúcky [97f6b71] * common/printf/printf_core.c (modified) Clean up printf_core() and make it obey the standard The original ... Sun, 13 Apr 2025 16:56:27 GMT Jiří Zárevúcky [28c39f3] * common/str.c (modified) Improve performance of some str functions Some string functions are ... Sun, 13 Apr 2025 12:54:10 GMT Jiří Zárevúcky [696b405] * abi/include/_bits/mbstate_t.h (moved) * abi/include/_bits/uchar.h (modified) * common/include/uchar.h (moved) * common/include/wchar.h (added) * common/stdc/uchar.c (added) * common/stdc/wchar.c (moved) * uspace/lib/c/meson.build (modified) * uspace/lib/c/test/main.c (modified) * uspace/lib/c/test/uchar.c (added) Implement standard character conversion functions from and ... Wed, 09 Apr 2025 15:59:26 GMT Jiří Zárevúcky [3e7948c] * common/include/types/adt/odict.h (moved) * uspace/lib/c/include/types/adt/odict.h (deleted) Deduplicate forgotten adt header Wed, 09 Apr 2025 14:19:50 GMT Jiří Zárevúcky [45226285] * common/include/adt/hash_table.h (modified) Clarify the purpose and use of hash_table_foreach() Mon, 07 Apr 2025 17:53:53 GMT Jiří Zárevúcky [0db0df2] * common/adt/hash_table.c (modified) * common/include/adt/hash.h (modified) * common/include/adt/hash_table.h (modified) * kernel/genarch/src/mm/page_ht.c (modified) * kernel/generic/src/cap/cap.c (modified) * kernel/generic/src/ddi/irq.c (modified) * kernel/generic/src/lib/ra.c (modified) * uspace/app/hbench/env.c (modified) * uspace/app/trace/ipcp.c (modified) * uspace/app/trace/proto.c (modified) * uspace/lib/block/block.c (modified) * uspace/lib/c/generic/async/ports.c (modified) * uspace/lib/c/generic/async/server.c (modified) * uspace/lib/ext4/src/ops.c (modified) * uspace/lib/nic/src/nic_addr_db.c (modified) * uspace/lib/nic/src/nic_wol_virtues.c (modified) * uspace/srv/devman/devtree.c (modified) * uspace/srv/fs/cdfs/cdfs_ops.c (modified) * uspace/srv/fs/exfat/exfat_idx.c (modified) * uspace/srv/fs/fat/fat_idx.c (modified) * uspace/srv/fs/locfs/locfs_ops.c (modified) * uspace/srv/fs/mfs/mfs_ops.c (modified) * uspace/srv/fs/tmpfs/tmpfs_ops.c (modified) * uspace/srv/fs/udf/udf_idx.c (modified) * uspace/srv/hid/input/gsp.c (modified) * uspace/srv/ns/service.c (modified) * uspace/srv/ns/task.c (modified) * uspace/srv/vfs/vfs_node.c (modified) Hash table improvements Implement hash_table_foreach macro, ... Mon, 07 Apr 2025 16:56:16 GMT Jiří Zárevúcky [8f8818ac] * common/include/adt/list.h (modified) Use offsetof for calculation in list_pop() Sun, 22 Dec 2024 22:02:35 GMT Miroslav Cimerman [64c8132] * common/adt/bitmap.c (modified) * common/include/adt/bitmap.h (modified) * uspace/lib/c/meson.build (modified) Allow bitmap to be used in userspace Thu, 12 Sep 2024 12:35:23 GMT Jiří Zárevúcky [dd50aa19] * common/include/stdlib.h (modified) * kernel/generic/src/mm/malloc.c (modified) * uspace/lib/c/generic/malloc.c (modified) Allocation function tweaks - Add reallocarray() from POSIX 2024 ... Thu, 22 Aug 2024 12:58:55 GMT Jiří Zárevúcky [b889a64] * common/printf/printf_core.c (modified) Fix typo in comment Mon, 13 Nov 2023 14:18:39 GMT Jiří Zárevúcky [d76862d0] * uspace/lib/c/generic/adt/prodcons.c (moved) * uspace/lib/c/include/adt/prodcons.h (moved) * uspace/lib/c/meson.build (modified) Move prodcons back to libc Fri, 27 Oct 2023 18:56:50 GMT Jiří Zárevúcky [694ca3d6] * common/include/printf_core.h (moved) * common/printf/printf_core.c (moved) * kernel/generic/meson.build (modified) * kernel/generic/src/printf/printf_core.c (deleted) * uspace/lib/c/generic/io/asprintf.c (modified) * uspace/lib/c/generic/io/kio.c (modified) * uspace/lib/c/generic/io/printf.c (modified) * uspace/lib/c/generic/io/vprintf.c (modified) * uspace/lib/c/generic/io/vsnprintf.c (modified) * uspace/lib/c/meson.build (modified) * uspace/lib/posix/src/stdio.c (modified) Deduplicate printf_core() Fri, 27 Oct 2023 18:20:03 GMT Jiří Zárevúcky [ad9178bf] * common/adt/bitmap.c (moved) * common/adt/checksum.c (moved) * common/adt/circ_buf.c (moved) * common/adt/hash_table.c (moved) * common/adt/list.c (moved) * common/adt/odict.c (moved) * common/adt/prodcons.c (moved) * common/include/adt/bitmap.h (moved) * common/include/adt/checksum.h (moved) * common/include/adt/circ_buf.h (moved) * common/include/adt/fifo.h (moved) * common/include/adt/gcdlcm.h (moved) * common/include/adt/hash.h (moved) * common/include/adt/hash_table.h (moved) * common/include/adt/list.h (moved) * common/include/adt/odict.h (moved) * common/include/adt/prodcons.h (moved) * kernel/generic/include/adt/fifo.h (deleted) * kernel/generic/include/adt/hash.h (deleted) * kernel/generic/include/adt/hash_table.h (deleted) * kernel/generic/include/adt/list.h (deleted) * kernel/generic/meson.build (modified) * kernel/generic/src/adt/hash_table.c (deleted) * kernel/generic/src/adt/list.c (deleted) * uspace/lib/c/generic/adt/odict.c (deleted) * uspace/lib/c/include/adt/odict.h (deleted) * uspace/lib/c/meson.build (modified) Deduplicate ADT Fri, 27 Oct 2023 17:58:59 GMT Jiří Zárevúcky [55c5cb05] * common/gsort.c (moved) * common/include/gsort.h (moved) * kernel/generic/include/gsort.h (deleted) * kernel/generic/meson.build (modified) * kernel/generic/src/lib/gsort.c (deleted) * uspace/lib/c/meson.build (modified) Deduplicate gsort() Fri, 27 Oct 2023 17:53:21 GMT Jiří Zárevúcky [fdfb24e] * boot/arch/arm32/meson.build (modified) * boot/arch/arm64/meson.build (modified) * boot/arch/ia64/meson.build (modified) * boot/arch/mips32/meson.build (modified) * boot/arch/ppc32/meson.build (modified) * boot/arch/riscv64/meson.build (modified) * boot/arch/sparc64/meson.build (modified) * boot/generic/include/assert.h (moved) * boot/generic/include/errno.h (modified) * boot/generic/src/str.c (deleted) * common/include/ctype.h (moved) * common/include/str.h (moved) * common/include/str_error.h (moved) * common/stdc/ctype.c (moved) * common/str.c (moved) * common/str_error.c (moved) * common/strtol.c (moved) * kernel/generic/include/str.h (deleted) * kernel/generic/meson.build (modified) * kernel/generic/src/console/kconsole.c (modified) * kernel/generic/src/lib/str.c (deleted) * kernel/generic/src/lib/strtol.c (deleted) * kernel/generic/src/main/kinit.c (modified) * kernel/generic/src/mm/backend_user.c (modified) * kernel/generic/src/proc/program.c (modified) * uspace/lib/c/generic/str_error.c (deleted) * uspace/lib/c/meson.build (modified) * uspace/lib/posix/include/posix/ctype.h (modified) Deduplicate string related functions Fri, 27 Oct 2023 17:38:32 GMT Jiří Zárevúcky [44e8541] * boot/generic/include/stdlib.h (deleted) * common/include/bsearch.h (moved) * common/include/qsort.h (moved) * common/include/stdlib.h (moved) * common/stdc/bsearch.c (moved) * common/stdc/calloc.c (moved) * common/stdc/qsort.c (moved) * uspace/app/tester/mm/common.c (modified) * uspace/lib/c/generic/malloc.c (modified) * uspace/lib/c/include/malloc.h (modified) * uspace/lib/c/meson.build (modified) * uspace/lib/posix/include/posix/stdlib.h (modified) * uspace/lib/posix/src/stdio.c (modified) * uspace/lib/posix/src/time.c (modified) * uspace/lib/posix/src/unistd.c (modified) Move stdlib.h and some of its function into /common Fri, 27 Oct 2023 17:38:32 GMT Jiří Zárevúcky [b169619] * boot/arch/arm32/meson.build (modified) * boot/arch/arm32/src/main.c (modified) * boot/arch/arm64/meson.build (modified) * boot/arch/arm64/src/main.c (modified) * boot/arch/ia64/meson.build (modified) * boot/arch/ia64/src/main.c (modified) * boot/arch/mips32/meson.build (modified) * boot/arch/mips32/src/main.c (modified) * boot/arch/ppc32/meson.build (modified) * boot/arch/ppc32/src/main.c (modified) * boot/arch/riscv64/meson.build (modified) * boot/arch/sparc64/meson.build (modified) * boot/arch/sparc64/src/main.c (modified) * boot/genarch/src/ofw_tree.c (modified) * boot/generic/include/stdlib.h (added) * boot/generic/src/gzip.c (modified) * boot/generic/src/inflate.c (modified) * boot/generic/src/memstr.c (deleted) * boot/generic/src/payload.c (modified) * boot/meson.build (modified) * common/include/mem.h (moved) * common/stdc/cc.h (moved) * common/stdc/mem.c (moved) * kernel/arch/amd64/src/amd64.c (modified) * kernel/arch/amd64/src/pm.c (modified) * kernel/arch/arm32/src/ras.c (modified) * kernel/arch/ia32/src/ia32.c (modified) * kernel/arch/ia32/src/pm.c (modified) * kernel/arch/ia32/src/smp/smp.c (modified) * kernel/arch/ia64/src/cpu/cpu.c (modified) * kernel/arch/ia64/src/mm/vhpt.c (modified) * kernel/arch/mips32/src/mips32.c (modified) * kernel/arch/riscv64/src/riscv64.c (modified) * kernel/arch/sparc64/src/mm/sun4u/as.c (modified) * kernel/arch/sparc64/src/mm/sun4v/as.c (modified) * kernel/genarch/src/acpi/acpi.c (modified) * kernel/genarch/src/drivers/ega/ega.c (modified) * kernel/genarch/src/drivers/via-cuda/cuda.c (modified) * kernel/genarch/src/fb/fb.c (modified) * kernel/genarch/src/mm/as_pt.c (modified) * kernel/genarch/src/mm/page_pt.c (modified) * kernel/genarch/src/ofw/ofw_tree.c (modified) * kernel/generic/common (added) * kernel/generic/include/cc.h (modified) * kernel/generic/include/cpu/cpu_mask.h (modified) * kernel/generic/include/lib/memfnc.h (deleted) * kernel/generic/include/memw.h (moved) * kernel/generic/meson.build (modified) * kernel/generic/src/cpu/cpu.c (modified) * kernel/generic/src/ddi/ddi.c (modified) * kernel/generic/src/ddi/irq.c (modified) * kernel/generic/src/ipc/ipc.c (modified) * kernel/generic/src/ipc/sysipc.c (modified) * kernel/generic/src/lib/gsort.c (modified) * kernel/generic/src/lib/mem.c (modified) * kernel/generic/src/lib/memfnc.c (deleted) * kernel/generic/src/lib/ubsan.c (modified) * kernel/generic/src/main/kinit.c (modified) * kernel/generic/src/mm/as.c (modified) * kernel/generic/src/mm/backend_anon.c (modified) * kernel/generic/src/mm/backend_elf.c (modified) * kernel/generic/src/mm/malloc.c (modified) * kernel/generic/src/mm/slab.c (modified) * kernel/generic/src/printf/vsnprintf.c (modified) * kernel/generic/src/proc/thread.c (modified) * kernel/generic/src/synch/waitq.c (modified) * kernel/generic/src/udebug/udebug_ops.c (modified) * kernel/meson.build (modified) * kernel/test/mm/falloc2.c (modified) * kernel/test/mm/slab1.c (modified) * kernel/test/mm/slab2.c (modified) * uspace/lib/c/common (added) * uspace/lib/c/meson.build (modified) * uspace/lib/posix/include/common (added) * uspace/lib/posix/include/posix/string.h (modified) Deduplicate mem functions There are a number of functions which are ...