tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[PATCH v2 0/8] PR standards/44921: Add errno consts for robust mutexes + related cleanup



Hi,

Here's a reiteration of errno.h update along with all the requested
changes and some extra work to prevent things from going out of sync
in the future.  Notably:

1. I've synced messages between libc catalogs and generated descriptions
   and added an ATF test for them running out of sync.  This will
   trigger when new errno constants are added without updating catalogs.

2. I've added the new codes to the manpage.  Kamil has requested a test
   for manpage running out of the date as well but I will look into it
   later.

3. I've enabled the new errno constants in libstdc++.

4. I've written a script to generate errno.d for dtrace, and regenerated
   it (the current version was using FreeBSD values).

5. I've updated NFS errno mapping (it was missing a lot of new codes)
   and added a compile-time assert to check for it.

I've also tried regenerating rump data but it caused weird build
failures, so I've skipped it for now.


Michał Górny (7):
  Sync errno messages between catalog and errno.h
  Sync signal messages between catalog and sys_siglist
  Add tests for missing libc catalog entries
  PR standards/44921: Add errno consts for robust mutexes
  Enable EOWNERDEAD & ENOTRECOVERABLE in libstdc++
  Update dtrace errno.d mapping and add a script for it
  Update NFS errno mapping and add assert for correctness

 distrib/sets/lists/debug/mi                   |  1 +
 distrib/sets/lists/tests/mi                   |  5 +
 etc/mtree/NetBSD.dist.tests                   |  2 +
 external/cddl/osnet/lib/libdtrace/errno.d     | 60 ++++++++----
 .../cddl/osnet/lib/libdtrace/make-errno-d.awk | 45 +++++++++
 .../lib/libstdc++-v3/arch/aarch64/c++config.h |  4 +-
 .../lib/libstdc++-v3/arch/alpha/c++config.h   |  4 +-
 .../lib/libstdc++-v3/arch/arm/c++config.h     |  4 +-
 .../lib/libstdc++-v3/arch/armeb/c++config.h   |  4 +-
 .../libstdc++-v3/arch/coldfire/c++config.h    |  4 +-
 .../lib/libstdc++-v3/arch/earm/c++config.h    |  4 +-
 .../lib/libstdc++-v3/arch/earmeb/c++config.h  |  4 +-
 .../lib/libstdc++-v3/arch/earmhf/c++config.h  |  4 +-
 .../libstdc++-v3/arch/earmhfeb/c++config.h    |  4 +-
 .../lib/libstdc++-v3/arch/earmv4/c++config.h  |  4 +-
 .../libstdc++-v3/arch/earmv4eb/c++config.h    |  4 +-
 .../lib/libstdc++-v3/arch/earmv6/c++config.h  |  4 +-
 .../libstdc++-v3/arch/earmv6eb/c++config.h    |  4 +-
 .../libstdc++-v3/arch/earmv6hf/c++config.h    |  4 +-
 .../libstdc++-v3/arch/earmv6hfeb/c++config.h  |  4 +-
 .../lib/libstdc++-v3/arch/earmv7/c++config.h  |  4 +-
 .../libstdc++-v3/arch/earmv7eb/c++config.h    |  4 +-
 .../libstdc++-v3/arch/earmv7hf/c++config.h    |  4 +-
 .../libstdc++-v3/arch/earmv7hfeb/c++config.h  |  4 +-
 .../lib/libstdc++-v3/arch/hppa/c++config.h    |  4 +-
 .../lib/libstdc++-v3/arch/i386/c++config.h    |  4 +-
 .../lib/libstdc++-v3/arch/ia64/c++config.h    |  4 +-
 .../lib/libstdc++-v3/arch/m68000/c++config.h  |  4 +-
 .../lib/libstdc++-v3/arch/m68k/c++config.h    |  4 +-
 .../libstdc++-v3/arch/mips64eb/c++config.h    |  4 +-
 .../libstdc++-v3/arch/mips64el/c++config.h    |  4 +-
 .../lib/libstdc++-v3/arch/mipseb/c++config.h  |  4 +-
 .../lib/libstdc++-v3/arch/mipsel/c++config.h  |  4 +-
 .../lib/libstdc++-v3/arch/or1k/c++config.h    |  4 +-
 .../lib/libstdc++-v3/arch/powerpc/c++config.h |  4 +-
 .../libstdc++-v3/arch/powerpc64/c++config.h   |  4 +-
 .../lib/libstdc++-v3/arch/riscv32/c++config.h |  4 +-
 .../lib/libstdc++-v3/arch/riscv64/c++config.h |  4 +-
 .../lib/libstdc++-v3/arch/sh3eb/c++config.h   |  4 +-
 .../lib/libstdc++-v3/arch/sh3el/c++config.h   |  4 +-
 .../lib/libstdc++-v3/arch/sparc/c++config.h   |  4 +-
 .../lib/libstdc++-v3/arch/sparc64/c++config.h |  4 +-
 .../lib/libstdc++-v3/arch/vax/c++config.h     |  4 +-
 .../lib/libstdc++-v3/arch/x86_64/c++config.h  |  4 +-
 .../lib/libstdc++-v3/arch/aarch64/c++config.h |  4 +-
 .../lib/libstdc++-v3/arch/alpha/c++config.h   |  4 +-
 .../gcc/lib/libstdc++-v3/arch/arm/c++config.h |  4 +-
 .../lib/libstdc++-v3/arch/armeb/c++config.h   |  4 +-
 .../libstdc++-v3/arch/coldfire/c++config.h    |  4 +-
 .../lib/libstdc++-v3/arch/earm/c++config.h    |  4 +-
 .../lib/libstdc++-v3/arch/earmeb/c++config.h  |  4 +-
 .../lib/libstdc++-v3/arch/earmhf/c++config.h  |  4 +-
 .../libstdc++-v3/arch/earmhfeb/c++config.h    |  4 +-
 .../lib/libstdc++-v3/arch/earmv4/c++config.h  |  4 +-
 .../libstdc++-v3/arch/earmv4eb/c++config.h    |  4 +-
 .../lib/libstdc++-v3/arch/earmv6/c++config.h  |  4 +-
 .../libstdc++-v3/arch/earmv6eb/c++config.h    |  4 +-
 .../libstdc++-v3/arch/earmv6hf/c++config.h    |  4 +-
 .../libstdc++-v3/arch/earmv6hfeb/c++config.h  |  4 +-
 .../lib/libstdc++-v3/arch/earmv7/c++config.h  |  4 +-
 .../libstdc++-v3/arch/earmv7eb/c++config.h    |  4 +-
 .../libstdc++-v3/arch/earmv7hf/c++config.h    |  4 +-
 .../libstdc++-v3/arch/earmv7hfeb/c++config.h  |  4 +-
 .../lib/libstdc++-v3/arch/hppa/c++config.h    |  4 +-
 .../lib/libstdc++-v3/arch/i386/c++config.h    |  4 +-
 .../lib/libstdc++-v3/arch/ia64/c++config.h    |  4 +-
 .../lib/libstdc++-v3/arch/m68000/c++config.h  |  4 +-
 .../lib/libstdc++-v3/arch/m68k/c++config.h    |  4 +-
 .../libstdc++-v3/arch/mips64eb/c++config.h    |  4 +-
 .../libstdc++-v3/arch/mips64el/c++config.h    |  4 +-
 .../lib/libstdc++-v3/arch/mipseb/c++config.h  |  4 +-
 .../lib/libstdc++-v3/arch/mipsel/c++config.h  |  4 +-
 .../lib/libstdc++-v3/arch/or1k/c++config.h    |  4 +-
 .../lib/libstdc++-v3/arch/powerpc/c++config.h |  4 +-
 .../libstdc++-v3/arch/powerpc64/c++config.h   |  4 +-
 .../lib/libstdc++-v3/arch/riscv32/c++config.h |  4 +-
 .../lib/libstdc++-v3/arch/riscv64/c++config.h |  4 +-
 .../lib/libstdc++-v3/arch/sh3eb/c++config.h   |  4 +-
 .../lib/libstdc++-v3/arch/sh3el/c++config.h   |  4 +-
 .../lib/libstdc++-v3/arch/sparc/c++config.h   |  4 +-
 .../lib/libstdc++-v3/arch/sparc64/c++config.h |  4 +-
 .../gcc/lib/libstdc++-v3/arch/vax/c++config.h |  4 +-
 .../lib/libstdc++-v3/arch/x86_64/c++config.h  |  4 +-
 lib/libc/nls/C.msg                            | 18 ++--
 lib/libc/sys/intro.2                          |  5 +
 sys/compat/linux/common/linux_errno.c         |  2 +
 sys/nfs/nfs_subs.c                            |  8 +-
 sys/sys/errno.h                               |  8 +-
 tests/include/t_errno.c                       |  1 -
 tests/lib/libc/Makefile                       |  4 +-
 tests/lib/libc/nls/Makefile                   |  9 ++
 tests/lib/libc/nls/t_catalog.c                | 97 +++++++++++++++++++
 92 files changed, 386 insertions(+), 191 deletions(-)
 create mode 100644 external/cddl/osnet/lib/libdtrace/make-errno-d.awk
 create mode 100644 tests/lib/libc/nls/Makefile
 create mode 100644 tests/lib/libc/nls/t_catalog.c

-- 
2.25.1



Home | Main Index | Thread Index | Old Index