<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in Makefile</title>
    <link>http://nxr.netbsd.org/rss/src/tests/lib/libc/sys/Makefile</link>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2005</copyright>
    <generator>Java</generator>
    
<item>
    <title>Commit GSoC 2025 aio project by Ethan Miller:<br/>https://blog.netbsd.org/tnf/entry/gsoc2025_asynchronous_i_o_framework</title>
    <description>/src/tests/lib/libc/sys/Makefile - 1.80</description>
    <pubDate>Fri Oct 10 15:53:55 UTC 2025</pubDate>
    <dc:creator>christos</dc:creator>
</item>

<item>
    <title>tests/lib/libc/sys/Makefile: Fix truncate_test.root_owned output.<br/><br/>Announce the creation of this file with ${_MKTARGET_CREATE}, not with<br/>cryptic dd(1) output.  And just use touch(1) instead of dd from<br/>/dev/null, simpler and clearer what's going on.<br/><br/>No functional change intended, other than to the cosmetics of build<br/>output.</title>
    <description>/src/tests/lib/libc/sys/Makefile - 1.79</description>
    <pubDate>Fri May 09 13:18:32 UTC 2025</pubDate>
    <dc:creator>riastradh</dc:creator>
</item>

<item>
    <title>t_poll: Expand tests of polling when other endpoint is closed.<br/><br/>This covers fifos, pipes, and sockets; reads and writes; and polling<br/>when the endpoint is already closed as well as sleeping until the<br/>endpoint is closed after a delay.<br/><br/>Unfortunately, there is disagreement right now between:<br/><br/>(a) POSIX,<br/>(b) our poll(2) man page, and<br/>(c) our implementation,<br/><br/>for many of these cases.  And we recently changed the behaviour of<br/>poll(2) on fifos between 9 and 10 (PR kern/56429: poll(2) should<br/>yield POLLHUP when last writer to a fifo close()'s it) but didn't get<br/>it quite right.<br/><br/>So I've annotated these test cases with xfails for all the cases I<br/>think we're currently doing wrong -- under a justification from some<br/>combination of POSIX, our own documentation, and/or a reasonable<br/>interpretation of what the semantics _should_ be based on how read(2)<br/>and write(2) will behave.  These are mostly edge cases:<br/><br/>1. [pollclosed_pipe_*_write*] When the read side of a pipe is closed,<br/>   poll(2) on the write side currently returns POLLHUP|POLLOUT, which<br/>   POSIX forbids because it requires POLLHUP to be mutually exclusive<br/>   with POLLOUT.  And our man page concurs with POSIX on this rule,<br/>   and has for a long time (going as far back as NetBSD 1.3 or<br/>   earlier, judging by https://man.NetBSD.org/NetBSD-1.3/poll.2).<br/><br/>   =&gt; Fixing this won't change whether anything wakes up earlier or<br/>      later -- it will only change which bits are set when the<br/>      wakeups happen.<br/><br/>2. [pollclosed_fifo*_immediate_readsome] When the write side of a<br/>   fifo was previously open with the read side, and has since been<br/>   closed before calling poll(2), poll(2) on the read side returns 0<br/>   instead of POLLHUP|POLLIN as it is expected to, even though<br/>   read(2) will return EOF without blocking.<br/><br/>   =&gt; Fixing this may lead to more wakeups than before, but only in<br/>      cases where read(2) would actually return immediately anyway.<br/><br/>3. [pollclosed_fifo*_delayed_*_read] When the write side of a fifo is<br/>   closed, poll(2) on the read side returns POLLHUP|POLLIN, as it is<br/>   expected to.  But this state currently isn't persistent, even<br/>   though the behaviour of read(2) in returning EOF without blocking<br/>   is persistent.<br/><br/>   =&gt; Fixing this may lead to more wakeups than before, but only in<br/>      cases where read(2) would actually return immediately anyway.<br/><br/>That said, it turns out that we are correct, according to POSIX, in<br/>not setting POLLHUP on a socket whose peer has been closed: POLLHUP<br/>is only for devices, pipes, and FIFOs.  So one of the issues I<br/>reported in PR 59056 turns out to be bogus.  (Also POLLHUP is only<br/>for the reader side anyway, not for the writer side.)<br/><br/>https://pubs.opengroup.org/onlinepubs/9799919799/functions/poll.html<br/><br/>PR kern/59056: poll POLLHUP bugs</title>
    <description>/src/tests/lib/libc/sys/Makefile - 1.78</description>
    <pubDate>Sun Feb 09 17:10:37 UTC 2025</pubDate>
    <dc:creator>riastradh</dc:creator>
</item>

<item>
    <title>PR/58896: Martin Husemann: Demonstrate that a PT_STOPed process could not be<br/>PT_KILLed.</title>
    <description>/src/tests/lib/libc/sys/Makefile - 1.77</description>
    <pubDate>Tue Dec 17 17:52:23 UTC 2024</pubDate>
    <dc:creator>christos</dc:creator>
</item>

<item>
    <title>branches:  1.76.2;<br/>t_setrlimit: Narrow the scope of stack-protector warning suppression.</title>
    <description>/src/tests/lib/libc/sys/Makefile - 1.76</description>
    <pubDate>Thu Dec 07 16:54:44 UTC 2023</pubDate>
    <dc:creator>riastradh</dc:creator>
</item>

<item>
    <title>t_setrlimit uses alloca now</title>
    <description>/src/tests/lib/libc/sys/Makefile - 1.75</description>
    <pubDate>Fri Nov 24 17:19:55 UTC 2023</pubDate>
    <dc:creator>christos</dc:creator>
</item>

<item>
    <title>introduce new GCC 12 warning disables and use them in a few places<br/><br/>this introduces 4 new warning disable flags:<br/><br/>   CC_WNO_MISSING_TEMPLATE_KEYWORD<br/>   CC_WNO_REGISTER<br/>   CC_WNO_STRINGOP_OVERREAD<br/>   CC_WNO_ARRAY_BOUNDS<br/><br/>and documents them in README.warnings.  of these, the string op<br/>and array bounds are both problematic (real bugs) and also spurious<br/>(not real bugs), and the other 2 are mostly temporary for older<br/>3rd party code.<br/><br/>add some new uses of CC_WNO_STRINGOP_OVERFLOW.<br/><br/>fix m68k build for gallium and GCC 12.</title>
    <description>/src/tests/lib/libc/sys/Makefile - 1.74</description>
    <pubDate>Tue Aug 08 06:27:32 UTC 2023</pubDate>
    <dc:creator>mrg</dc:creator>
</item>

<item>
    <title>bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER<br/><br/>Provide a single variable<br/>	CC_WNO_ADDRESS_OF_PACKED_MEMBER<br/>with options for both clang and gcc, to replace<br/>	CLANG_NO_ADDR_OF_PACKED_MEMBER<br/>	CC_NO_ADDR_OF_PACKED_MEMBER<br/>	GCC_NO_ADDR_OF_PACKED_MEMBER<br/><br/>Using the convention CC_compilerflag, where compilerflag<br/>is based on the full compiler flag name.</title>
    <description>/src/tests/lib/libc/sys/Makefile - 1.73</description>
    <pubDate>Sat Jun 03 08:52:59 UTC 2023</pubDate>
    <dc:creator>lukem</dc:creator>
</item>

<item>
    <title>branches:  1.72.2;<br/><br/>Provide _GNU_SOURCE for t_clone now that is required to make clone()<br/>visible.</title>
    <description>/src/tests/lib/libc/sys/Makefile - 1.72</description>
    <pubDate>Mon Aug 01 15:48:39 UTC 2022</pubDate>
    <dc:creator>kre</dc:creator>
</item>

<item>
    <title>Add a regression test for PR kern/52239, "Changing protections of<br/>already mmap'ed region can fail", based on the test program in the PR.</title>
    <description>/src/tests/lib/libc/sys/Makefile - 1.71</description>
    <pubDate>Wed Apr 06 10:02:55 UTC 2022</pubDate>
    <dc:creator>gson</dc:creator>
</item>

<item>
    <title>Test lib/libc/sys/t_timerfd often fails when run on QEMU because<br/>QEMU misses clock interrupts.<br/><br/>Always check values against [ lower, upper ] bounds and use "4 * upper"<br/>when run under QEMU.<br/><br/>Now becomes part of PR kern/43997 "Kernel timer discrepancies".</title>
    <description>/src/tests/lib/libc/sys/Makefile - 1.70</description>
    <pubDate>Mon Nov 01 14:33:41 UTC 2021</pubDate>
    <dc:creator>hannken</dc:creator>
</item>

<item>
    <title>Add native implementations of eventfd(2) and timerfd(2), compatible with<br/>the Linux interfaces of the same name.</title>
    <description>/src/tests/lib/libc/sys/Makefile - 1.69</description>
    <pubDate>Sun Sep 19 15:51:28 UTC 2021</pubDate>
    <dc:creator>thorpej</dc:creator>
</item>

<item>
    <title>branches:  1.68.2;<br/>add support for new GCC 9 warnings that may be too much to fix<br/>right now.  new address-of-packed-member and format-overflow<br/>warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd<br/>GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.<br/><br/>apply to a bunch of the tree.  mostly, these are real bugs that<br/>should be fixed, but in many cases, only by removing the 'packed'<br/>attribute from some structure that doesn't really need it.  (i<br/>looked at many different ones, and while perhaps 60-80% were<br/>already properly aligned, it wasn't clear to me that the uses<br/>were always coming from sane data vs network alignment, so it<br/>doesn't seem safe to remove packed without careful research for<br/>each affect struct.)  clang already warned (and was not erroring)<br/>for many of these cases, but gcc picked up dozens more.</title>
    <description>/src/tests/lib/libc/sys/Makefile - 1.68</description>
    <pubDate>Sun Sep 06 07:20:31 UTC 2020</pubDate>
    <dc:creator>mrg</dc:creator>
</item>

<item>
    <title>New system call getrandom() compatible with Linux and others.<br/><br/>Three ways to call:<br/><br/>getrandom(p, n, 0)              Blocks at boot until full entropy.<br/>                                Returns up to n bytes at p; guarantees<br/>                                up to 256 bytes even if interrupted<br/>                                after blocking.  getrandom(0,0,0)<br/>                                serves as an entropy barrier: return<br/>                                only after system has full entropy.<br/><br/>getrandom(p, n, GRND_INSECURE)  Never blocks.  Guarantees up to 256<br/>                                bytes even if interrupted.  Equivalent<br/>                                to /dev/urandom.  Safe only after<br/>                                successful getrandom(...,0),<br/>                                getrandom(...,GRND_RANDOM), or read<br/>                                from /dev/random.<br/><br/>getrandom(p, n, GRND_RANDOM)    May block at any time.  Returns up to n<br/>                                bytes at p, but no guarantees about how<br/>                                many -- may return as short as 1 byte.<br/>                                Equivalent to /dev/random.  Legacy.<br/>                                Provided only for source compatibility<br/>                                with Linux.<br/><br/>Can also use flags|GRND_NONBLOCK to fail with EWOULDBLOCK/EAGAIN<br/>without producing any output instead of blocking.<br/><br/>- The combination GRND_INSECURE|GRND_NONBLOCK is the same as<br/>  GRND_INSECURE, since GRND_INSECURE never blocks anyway.<br/><br/>- The combinations GRND_INSECURE|GRND_RANDOM and<br/>  GRND_INSECURE|GRND_RANDOM|GRND_NONBLOCK are nonsensical and fail<br/>  with EINVAL.<br/><br/>As proposed on tech-userlevel, tech-crypto, tech-security, and<br/>tech-kern, and subsequently adopted by core (minus the getentropy part<br/>of the proposal, because other operating systems and participants in<br/>the discussion couldn't come to an agreement about getentropy and<br/>blocking semantics):<br/><br/>https://mail-index.netbsd.org/tech-userlevel/2020/05/02/msg012333.html</title>
    <description>/src/tests/lib/libc/sys/Makefile - 1.67</description>
    <pubDate>Fri Aug 14 00:53:16 UTC 2020</pubDate>
    <dc:creator>riastradh</dc:creator>
</item>

<item>
    <title>Add ppoll() a compatibility wrapper around pollts(2)<br/><br/>Submitted by Apurva Nandan.</title>
    <description>/src/tests/lib/libc/sys/Makefile - 1.66</description>
    <pubDate>Fri Jul 17 15:34:16 UTC 2020</pubDate>
    <dc:creator>kamil</dc:creator>
</item>

<item>
    <title>Fix build for vax; Compile t_ptrace_sigchld.c with -D__TEST_FENV.</title>
    <description>/src/tests/lib/libc/sys/Makefile - 1.65</description>
    <pubDate>Wed Jun 17 22:07:21 UTC 2020</pubDate>
    <dc:creator>rin</dc:creator>
</item>

<item>
    <title>Add a test for sigaltstack(2) and SA_ONSTACK</title>
    <description>/src/tests/lib/libc/sys/Makefile - 1.64</description>
    <pubDate>Thu Apr 30 11:03:29 UTC 2020</pubDate>
    <dc:creator>ryo</dc:creator>
</item>

<item>
    <title>Add a NetBSD native futex implementation, mostly written by riastradh@.<br/>Map the COMPAT_LINUX futex calls to the native ones.</title>
    <description>/src/tests/lib/libc/sys/Makefile - 1.63</description>
    <pubDate>Sun Apr 26 18:53:33 UTC 2020</pubDate>
    <dc:creator>thorpej</dc:creator>
</item>

<item>
    <title>PR/55177: Carlo Arenas: mremap(MAP_REMAPDUP) fails after fork()</title>
    <description>/src/tests/lib/libc/sys/Makefile - 1.62</description>
    <pubDate>Sat Apr 18 17:44:53 UTC 2020</pubDate>
    <dc:creator>christos</dc:creator>
</item>

<item>
    <title>Add new ptrace(2) test file<br/><br/>t_ptrace_sigchld - for SIGCHLD handler + ptrace(2).<br/><br/>Right now a single test is enabled (raise(SIGKILL)) and marked as failed<br/>as it never finishes as the child is never collected before exiting the<br/>parent uninterested about its child (SA_NOCLDWAIT).</title>
    <description>/src/tests/lib/libc/sys/Makefile - 1.61</description>
    <pubDate>Fri Mar 06 18:32:35 UTC 2020</pubDate>
    <dc:creator>kamil</dc:creator>
</item>
</channel></rss>

