1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/unittests/tests-vfs
Marian Buschsieweke 45c473d721
sys/vfs: use atomic_utils rather C11 atomics
This has the following advantages:

- faster and leaner when C11 atomics are not efficient (e.g. on LLVM
  this is almost always the case, as LLVM will only use efficient
  atomics if it doesn't has to bail out to library calls even for
  exotic things)
    - Even for GCC e.g. on the nucleo-f429zi this safes 72 B of .text
      for examples/filesystem despite runtime checks added for
      over- and underflow
- less pain in the ass for C++ and rust users, as both C++ and
  c2rust are incompatible with C11 atomics
- adds test for overflow of the open file counter for more robust
  operation
- adds `assumes()` so that underflows are detected in non-production
  code
2024-03-27 11:26:15 +01:00
..
Makefile sys/vfs: A virtual file system (VFS) layer for RIOT 2017-03-07 17:59:57 +01:00
Makefile.include sys/vfs: A virtual file system (VFS) layer for RIOT 2017-03-07 17:59:57 +01:00
tests-vfs-bind.c unittests/vfs: Add test case for #8309 2018-02-13 18:14:58 +01:00
tests-vfs-dir-ops.c tests: adapt to vfs_umount() API change 2023-02-28 17:24:03 +01:00
tests-vfs-file-ops.c tests: adapt to vfs_umount() API change 2023-02-28 17:24:03 +01:00
tests-vfs-file-system-ops.c sys/vfs: use atomic_utils rather C11 atomics 2024-03-27 11:26:15 +01:00
tests-vfs-mount-constfs.c examples, tests: Changes for the native64 board 2024-02-05 22:02:14 +01:00
tests-vfs-normalize_path.c sys/vfs: A virtual file system (VFS) layer for RIOT 2017-03-07 17:59:57 +01:00
tests-vfs-open-close.c sys/vfs: A virtual file system (VFS) layer for RIOT 2017-03-07 17:59:57 +01:00
tests-vfs.c sys/vfs: A virtual file system (VFS) layer for RIOT 2017-03-07 17:59:57 +01:00
tests-vfs.h sys/vfs: A virtual file system (VFS) layer for RIOT 2017-03-07 17:59:57 +01:00