<?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 ErrnoTest.cpp</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>2946cd70 - Update the file headers across all of the LLVM projects in the monorepo</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/llvm/unittests/Support/ErrnoTest.cpp#2946cd70</link>
        <description>Update the file headers across all of the LLVM projects in the monorepoto reflect the new license.We understand that people may be surprised that we&apos;re moving the headerentirely to discuss the new license. We checked this carefully with theFoundation&apos;s lawyer and we believe this is the correct approach.Essentially, all code in the project is now made available by the LLVMproject under our new license, so you will see that the license headersinclude that license only. Some of our contributors have contributedcode under our old license, and accordingly, we have retained a copy ofour old license notice in the top-level files in each project andrepository.llvm-svn: 351636

            List of files:
            /llvm-project-15.0.7/llvm/unittests/Support/ErrnoTest.cpp</description>
        <pubDate>Sat, 19 Jan 2019 08:50:56 +0000</pubDate>
        <dc:creator>Chandler Carruth &lt;chandlerc@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>9659a127 - [Support] Clear errno before calling the function in RetryAfterSignal.</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/llvm/unittests/Support/ErrnoTest.cpp#9659a127</link>
        <description>[Support] Clear errno before calling the function in RetryAfterSignal.For certain APIs, the return value of the function does not distinguishbetween failure (which populates errno) and other non-error conditions(which do not set errno).For example, `fgets` returns `NULL` both when an error has occurred, orupon EOF. If `errno` is already `EINTR` for whatever reason, then```RetryAfterSignal(nullptr, fgets, ...);```on a stream that has reached EOF would infinite loop.Fix this by setting `errno` to `0` before each attempt in`RetryAfterSignal`.Patch by Ricky Zhou!Differential Revision: https://reviews.llvm.org/D48755llvm-svn: 336479

            List of files:
            /llvm-project-15.0.7/llvm/unittests/Support/ErrnoTest.cpp</description>
        <pubDate>Sat, 07 Jul 2018 02:46:12 +0000</pubDate>
        <dc:creator>Chandler Carruth &lt;chandlerc@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>fe09f506 - Recommit &quot;[Support] Add RetryAfterSignal helper function&quot;</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/llvm/unittests/Support/ErrnoTest.cpp#fe09f506</link>
        <description>Recommit &quot;[Support] Add RetryAfterSignal helper function&quot;The difference from the previous version is the use of decltype, as theimplementation of std::result_of in libc++ did not work correctly forvariadic function like open(2).Original summary:This function retries an operation if it was interrupted by a signal(failed with EINTR). It&apos;s inspired by the TEMP_FAILURE_RETRY macro inglibc, but I&apos;ve turned that into a template function. I&apos;ve also added afail-value argument, to enable the function to be used with e.g.fopen(3), which is documented to fail for any reason that open(2) canfail (which includes EINTR).The main user of this function will be lldb, but there were also acouple of uses within llvm that I could simplify using this function.Reviewers: zturner, silvas, joergSubscribers: mgorny, llvm-commitsDifferential Revision: https://reviews.llvm.org/D33895llvm-svn: 306671

            List of files:
            /llvm-project-15.0.7/llvm/unittests/Support/ErrnoTest.cpp</description>
        <pubDate>Thu, 29 Jun 2017 13:15:31 +0000</pubDate>
        <dc:creator>Pavel Labath &lt;labath@google.com&gt;</dc:creator>
    </item>
<item>
        <title>fafedb11 - [Support] Fix return type deduction in RetryAfterSignal</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/llvm/unittests/Support/ErrnoTest.cpp#fafedb11</link>
        <description>[Support] Fix return type deduction in RetryAfterSignalThe default value of the ResultT template argument (which was there onlyto avoid spelling out the long std::result_of template multiple times)was being overriden by function call template argument deduction. Thismanifested itself as a compiler error when calling the function asFILE *X = RetryAfterSignal(nullptr, fopen, ...)because the function would try to assign the result of fopen tonullptr_t, but a more insidious side effect was thatRetryAfterSignal(-1, read, ...) would return &quot;int&quot; instead of &quot;ssize_t&quot;,losing precision along the way.I fix this by having the function take the argument in a way thatprevents argument deduction from kicking in and add a test that makessure the return type is correct.llvm-svn: 306003

            List of files:
            /llvm-project-15.0.7/llvm/unittests/Support/ErrnoTest.cpp</description>
        <pubDate>Thu, 22 Jun 2017 13:55:54 +0000</pubDate>
        <dc:creator>Pavel Labath &lt;labath@google.com&gt;</dc:creator>
    </item>
<item>
        <title>1f6aea2e - [Support] Add RetryAfterSignal helper function</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/llvm/unittests/Support/ErrnoTest.cpp#1f6aea2e</link>
        <description>[Support] Add RetryAfterSignal helper functionSummary:This function retries an operation if it was interrupted by a signal(failed with EINTR). It&apos;s inspired by the TEMP_FAILURE_RETRY macro inglibc, but I&apos;ve turned that into a template function. I&apos;ve also added afail-value argument, to enable the function to be used with e.g.fopen(3), which is documented to fail for any reason that open(2) canfail (which includes EINTR).The main user of this function will be lldb, but there were also acouple of uses within llvm that I could simplify using this function.Reviewers: zturner, silvas, joergSubscribers: mgorny, llvm-commitsDifferential Revision: https://reviews.llvm.org/D33895llvm-svn: 305892

            List of files:
            /llvm-project-15.0.7/llvm/unittests/Support/ErrnoTest.cpp</description>
        <pubDate>Wed, 21 Jun 2017 10:55:34 +0000</pubDate>
        <dc:creator>Pavel Labath &lt;labath@google.com&gt;</dc:creator>
    </item>
</channel>
</rss>
