History log of /src/tests/include/sys |
Revision | Date | Author | Comments |
1.17 | 01-Nov-2024 |
riastradh | strings.h: Spruce up for POSIX 2024.
1. Add ffsl, ffsll. 2. Hide bcmp, bcopy, bzero, index, rindex for POSIX>=2024. 3. Expose ffs only for NetBSD or POSIX>=2008 with XSI option. 4. Hide popcount* NetBSD extensions for any POSIX. 5. Sprinkle __constfunc on ffs*.
Add tests for ffs/ffsl/ffsll in tests/include/sys/t_bitops next to ffs32/ffs64 for convenience.
XXX Still missing strcasecmp_l, strncasecmp_l, and locale_t.
PR lib/58802: missing ffsl(), ffsll() functions from POSIX 2024
|
1.16 | 31-May-2020 |
kamil | branches: 1.16.8; Mask NULL + 0 LLVM UBSan reports in the ATF test: t_pslist.c
Pass -fno-delete-null-pointer-checks for Clang for the MKSANITIZER/MKLIBCSANITIZER build
|
1.15 | 01-Mar-2020 |
christos | Centralize the base rump libraries into a variable used by all the other Makefiles so that we can make changes to it centrally as needed and have less mess. Fixes the sun2 build that needs rumpvfs after librump after the latest changes.
|
1.14 | 13-May-2019 |
bad | Get rid of all the -lrumpdev and -lrumpvfs that are no longer needed after moving rump's mainbus from rumpdev to rumpkern.
Produces the same atf-run results as before.
|
1.13 | 02-Oct-2017 |
pgoyette | branches: 1.13.4; Add a new minimalistic test for LIST_MOVE to verify that the list's first entry's prev pointer correctly points to the listhead.
This test will fail until a fix for LIST_MOVE is checked in (soon).
|
1.12 | 08-Aug-2016 |
pgoyette | branches: 1.12.6; We now need librumpdev to resolve rumpns_config_cfdriver_attach which is now used in a bunch of network modules/components
|
1.11 | 09-Apr-2016 |
riastradh | Introduce pserialize-safe linked lists.
These are like LIST_* from queue(3), but issue the appropriate memory barriers for pserialize readers and writers.
Discussed on tech-kern:
https://mail-index.netbsd.org/tech-kern/2016/04/03/msg020365.html
|
1.10 | 08-Apr-2016 |
riastradh | Make this list diff- and sort-friendlier.
No functional change.
|
1.9 | 23-Jan-2016 |
christos | Define _KERNTYPES for things that need it.
|
1.8 | 22-Jun-2015 |
matt | Don't build tests that depend on RUMP if BSD_MK_COMPAT_FILE is defined.
|
1.7 | 08-Aug-2012 |
christos | Exclude tests that use rump
|
1.6 | 18-Mar-2012 |
christos | test the __type macros
|
1.5 | 07-Jul-2011 |
jruoho | branches: 1.5.2; Move the 'syscall/t_cmsg' test to 'include/sys/t_socket'.
|
1.4 | 05-May-2011 |
jruoho | Try to mirror the real source with the test directory structure (otherwise the latter carries a risk of becoming a difficult mess to manage.)
|
1.3 | 05-May-2011 |
jruoho | Follow the real tree with the test directory structure.
|
1.2 | 19-Mar-2011 |
jruoho | Add a simple test file for <sys/bitops.h>. For now, only ilog2(3) is tested.
|
1.1 | 17-Jul-2010 |
jmmv | Convert the include tests to atf. Initial work from the GSoC 2008 project by Lukasz Strzygowski.
|
1.5.2.2 | 30-Oct-2012 |
yamt | sync with head
|
1.5.2.1 | 17-Apr-2012 |
yamt | sync with head
|
1.12.6.1 | 02-Oct-2017 |
martin | Pull up following revision(s) (requested by pgoyette in ticket #296): tests/include/sys/t_list.c: revision 1.1 tests/include/sys/t_list.c: revision 1.2 tests/include/sys/Makefile: revision 1.13 share/man/man3/queue.3: revision 1.59 distrib/sets/lists/debug/mi: revision 1.226 sys/sys/queue.h: revision 1.71 distrib/sets/lists/tests/mi: revision 1.764 Fix the LIST_MOVE macro to properly update the back-pointer of the first entry in the list.
Note that the signature of LIST_MOVE() macro also changes (it grew an additional argument). This should not require a kernel version bump since nothing appears to use LIST_MOVE() other than the recently added atf test.
Update for new signature for LIST_MOVE()
Add a new minimalistic test for LIST_MOVE to verify that the list's first entry's prev pointer correctly points to the listhead. This test will fail until a fix for LIST_MOVE is checked in (soon).
Add new LIST_MOVE test to sets list.
Update recently-added test to adapt to new signature of LIST_MOVE()
add t_list test.
|
1.13.4.2 | 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.13.4.1 | 10-Jun-2019 |
christos | Sync with HEAD
|
1.16.8.1 | 02-Aug-2025 |
perseant | Sync with HEAD
|
1.22 | 01-Nov-2024 |
riastradh | strings.h: Spruce up for POSIX 2024.
1. Add ffsl, ffsll. 2. Hide bcmp, bcopy, bzero, index, rindex for POSIX>=2024. 3. Expose ffs only for NetBSD or POSIX>=2008 with XSI option. 4. Hide popcount* NetBSD extensions for any POSIX. 5. Sprinkle __constfunc on ffs*.
Add tests for ffs/ffsl/ffsll in tests/include/sys/t_bitops next to ffs32/ffs64 for convenience.
XXX Still missing strcasecmp_l, strncasecmp_l, and locale_t.
PR lib/58802: missing ffsl(), ffsll() functions from POSIX 2024
|
1.21 | 13-Jul-2023 |
riastradh | branches: 1.21.2; t_bitops: Show the bad results on failure.
|
1.20 | 25-Jul-2018 |
kamil | Avoid undefined behavior in an ATF test: t_bitops
Do not change the signedness bit with a left shift operation. Switch to unsigned integer to prevent this.
t_bitops.c:189:9, left shift of 1 by 31 places cannot be represented in type 'int'
Detected with micro-UBSan in the user mode.
|
1.19 | 21-Mar-2015 |
isaki | branches: 1.19.14; 1.19.16; one more white space -> tab.
|
1.18 | 21-Mar-2015 |
isaki | Rewrite ilog2's test. PR lib/49745. - Reorganize ilog2_basic to ilog2_32bit, ilog2_64bit and ilog2_const. ilog2_const is compile-time test for __builtin_constant_p() part of current ilog2() implementation. - Remove fully meaningless ilog2_log2. So this part of PR misc/44767 is no longer present.
|
1.17 | 14-Mar-2015 |
isaki | white space -> tab.
|
1.16 | 07-Dec-2012 |
christos | use __BITMAP_TYPE
|
1.15 | 04-Dec-2012 |
jruoho | Move the bitmap(3) test to the "right" place. Note it in bitops(3). Xrefs.
|
1.14 | 31-Oct-2011 |
pgoyette | branches: 1.14.2; 1.14.8; No need to keep on trying when this fails in the expected manner. We really don't need to have 32k failures.
OK jruoho@
|
1.13 | 02-Oct-2011 |
christos | remove stray underscore.
|
1.12 | 01-Oct-2011 |
christos | disable test on the vax until we fix it.
|
1.11 | 30-Sep-2011 |
jruoho | Add expected failures for Qemu.
|
1.10 | 29-Aug-2011 |
jruoho | Remove some cruft that is no longer needed.
|
1.9 | 29-Aug-2011 |
jruoho | Remove Xfails that are related to the infamous qemu/amd64 floating point bugs. It appears to be quite difficult to identify the exact Qemu version and setup. These do not fail on the TNF's qemu/amd64 setup, which can be taken as a reference point for expected failures.
|
1.8 | 07-Jul-2011 |
jruoho | Improve the QEMU/amd64 detection.
|
1.7 | 30-Mar-2011 |
jruoho | Add missing __RCSID(3).
|
1.6 | 25-Mar-2011 |
jruoho | Do not skip the QEMU bugs but instead mark these as expected failures.
|
1.5 | 25-Mar-2011 |
jruoho | Bluntly skip the tests that fail under QEMU. XXX: system(3) is used for this?
wnCVS: ----------------------------------------------------------------------
|
1.4 | 25-Mar-2011 |
jruoho | Even these naive test cases caught one (QEMU?) bug; comment PR # 44767.
|
1.3 | 24-Mar-2011 |
jruoho | Add also a basic, naive, test for fast_divide32(3).
|
1.2 | 24-Mar-2011 |
jruoho | Add some naive test cases for the ffs32(3) family of functions.
|
1.1 | 19-Mar-2011 |
jruoho | Add a simple test file for <sys/bitops.h>. For now, only ilog2(3) is tested.
|
1.14.8.1 | 25-Feb-2013 |
tls | resync with head
|
1.14.2.1 | 16-Jan-2013 |
yamt | sync with (a bit old) head
|
1.19.16.1 | 10-Jun-2019 |
christos | Sync with HEAD
|
1.19.14.1 | 28-Jul-2018 |
pgoyette | Sync with HEAD
|
1.21.2.1 | 02-Aug-2025 |
perseant | Sync with HEAD
|
1.1 | 17-Jul-2010 |
jmmv | Convert the include tests to atf. Initial work from the GSoC 2008 project by Lukasz Strzygowski.
|
1.4 | 16-Mar-2016 |
mrg | rework to avoid new GCC 5.3 errors and improve readability
|
1.3 | 05-Sep-2013 |
gsutre | Fix two tests for typefit: constants larger than LLONG_MAX do not fit in a signed long long.
|
1.2 | 23-Mar-2012 |
matt | branches: 1.2.2; 1.2.4; Use SCHAR_{MIN,MAX} for signed char, not CHAR_* since not char are signed.
|
1.1 | 18-Mar-2012 |
christos | test the __type macros
|
1.2.4.1 | 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.2.2.3 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.2.2.2 | 17-Apr-2012 |
yamt | sync with head
|
1.2.2.1 | 23-Mar-2012 |
yamt | file t_cdefs.c was added on branch yamt-pagecache on 2012-04-17 00:09:04 +0000
|
1.3 | 10-Jul-2024 |
rillig | tests/sys/queue.h: fix mismatch between '=' and '=='
|
1.2 | 02-Oct-2017 |
pgoyette | branches: 1.2.2; 1.2.18; Update recently-added test to adapt to new signature of LIST_MOVE()
|
1.1 | 02-Oct-2017 |
pgoyette | Add a new minimalistic test for LIST_MOVE to verify that the list's first entry's prev pointer correctly points to the listhead.
This test will fail until a fix for LIST_MOVE is checked in (soon).
|
1.2.18.1 | 02-Aug-2025 |
perseant | Sync with HEAD
|
1.2.2.2 | 02-Oct-2017 |
martin | Pull up following revision(s) (requested by pgoyette in ticket #296): tests/include/sys/t_list.c: revision 1.1 tests/include/sys/t_list.c: revision 1.2 tests/include/sys/Makefile: revision 1.13 share/man/man3/queue.3: revision 1.59 distrib/sets/lists/debug/mi: revision 1.226 sys/sys/queue.h: revision 1.71 distrib/sets/lists/tests/mi: revision 1.764 Fix the LIST_MOVE macro to properly update the back-pointer of the first entry in the list.
Note that the signature of LIST_MOVE() macro also changes (it grew an additional argument). This should not require a kernel version bump since nothing appears to use LIST_MOVE() other than the recently added atf test.
Update for new signature for LIST_MOVE()
Add a new minimalistic test for LIST_MOVE to verify that the list's first entry's prev pointer correctly points to the listhead. This test will fail until a fix for LIST_MOVE is checked in (soon).
Add new LIST_MOVE test to sets list.
Update recently-added test to adapt to new signature of LIST_MOVE()
add t_list test.
|
1.2.2.1 | 02-Oct-2017 |
martin | file t_list.c was added on branch netbsd-8 on 2017-10-02 13:21:40 +0000
|
1.2 | 01-Dec-2019 |
riastradh | Adapt <sys/pslist.h> to use atomic_load/store_*.
Changes:
- membar_producer(); *p = v;
=>
atomic_store_release(p, v);
(Effectively like using membar_exit instead of membar_producer, which is what we should have been doing all along so that stores by the `reader' can't affect earlier loads by the writer, such as KASSERT(p->refcnt == 0) in the writer and atomic_inc(&p->refcnt) in the reader.)
- p = *pp; if (p != NULL) membar_datadep_consumer();
=>
p = atomic_load_consume(pp);
(Only makes a difference on DEC Alpha. As long as lists generally have at least one element, this is not likely to make a big difference, and keeps the code simpler and clearer.)
No other functional change intended. While here, annotate each synchronizing load and store with its counterpart in a comment.
|
1.1 | 09-Apr-2016 |
riastradh | branches: 1.1.16; Introduce pserialize-safe linked lists.
These are like LIST_* from queue(3), but issue the appropriate memory barriers for pserialize readers and writers.
Discussed on tech-kern:
https://mail-index.netbsd.org/tech-kern/2016/04/03/msg020365.html
|
1.1.16.1 | 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.6 | 06-Oct-2019 |
mrg | use memcpy() for non C-strings.
|
1.5 | 13-Jan-2017 |
christos | branches: 1.5.14; Don't play with "../.." in includes for h_macros.h; deal with it centrally. Minor fixes.
|
1.4 | 27-Feb-2015 |
martin | branches: 1.4.2; 2 seconds is too small as timeout on slow machines, bump to 10 (my hppa needs ~5).
|
1.3 | 19-Oct-2013 |
christos | fix unused variable warnings
|
1.2 | 05-Sep-2013 |
pooka | socket(-1, SOCK_CLOEXEC, 0); followed by the process exiting (i.e. fd slot does not get initiailized before fd_free()) cases a diagnostic kernel panic.
|
1.1 | 07-Jul-2011 |
jruoho | branches: 1.1.2; 1.1.8; Move the 'syscall/t_cmsg' test to 'include/sys/t_socket'.
|
1.1.8.1 | 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.1.2.1 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.4.2.1 | 20-Mar-2017 |
pgoyette | Sync with HEAD
|
1.5.14.1 | 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.1 | 05-May-2011 |
jruoho | Try to mirror the real source with the test directory structure (otherwise the latter carries a risk of becoming a difficult mess to manage.)
|
1.5 | 25-Jul-2018 |
kamil | Avoid undefined behavior in an ATF test: t_types
Replace UB with implementation defined logic to check whether ssize_t can wrap to a negative number.
t_types.c:63:7, signed integer overflow: 9223372036854775807 + 1 cannot be represented in type 'long int'
Detected with micro-UBSan in the user mode.
|
1.4 | 18-Mar-2012 |
jruoho | branches: 1.4.30; 1.4.32; To be on the safe side, use the category/number notation when referring to PRs (otherwise third-party sed-scripts might miss the references). Also remove white-space.
|
1.3 | 17-Mar-2012 |
christos | this does not fail anymore
|
1.2 | 11-Jul-2011 |
njoly | branches: 1.2.2; Make types_signed/types_unsigned testcases use ATF_CHECK instead of ATF_REQUIRE.
|
1.1 | 05-May-2011 |
jruoho | Follow the real tree with the test directory structure.
|
1.2.2.1 | 17-Apr-2012 |
yamt | sync with head
|
1.4.32.1 | 10-Jun-2019 |
christos | Sync with HEAD
|
1.4.30.1 | 28-Jul-2018 |
pgoyette | Sync with HEAD
|