<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/126153>126153</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [libc][setjmp] implement sigsetjmp/siglongjmp
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            libc
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          nickdesaulniers
      </td>
    </tr>
</table>

<pre>
    When cross compiling the libc testsuite, I ran into:

```
llvm-project/libc/test/UnitTest/FPExceptMatcher.cpp:31:21: error: unknown type name 'sigjmp_buf'
   31 | static thread_local sigjmp_buf jumpBuffer;
      |                     ^
```
and @lntue points out the usage in https://github.com/llvm/llvm-project/blob/main/libc/test/UnitTest/FPExceptMatcher.cpp#L45 of the relevant functions.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUkkFr3DwQhn-NfBm-RR5Zu5uDD7tJDB-00ENLj0HWjm1tZMlIo23z74udlJTSS8xgDULvMO8zY3J2YyBqhT4L_VCZwlNMbXD2-ULZFB8cpVz18fLSfp8ogE0xZ7BxXpx3YQSeCLzrLTBlzsUxCbyH_yGZAC5wFOok5BZ7-Rby5P1t_m9J8UqWBXarXmC3VhDYfQuOv76m3ZfHn5YW_mzYTpR2dlmEOqlaqBOuP6CUYlqTEp5D_BGAXxaCYGYCgYfsxuu8PPVlEHgQ8gQAqgZxuIfMhp0FnhKZy5OP1nh4fw3XMi_nMgyUhDq_CgE24b8-oR__8mfCBUQjfeBCsEQXOEMsvMEq2YwELsDEvOQVD3YCu9HxVPqdjfMKxN9-H39g6n3sBXazceGj0FB9ajTEYesgkaebCQxDCZZdDHlXXVp1uVN3pqK2Pqjj8agRsZpa1I2sG93Xal-THlA1-yOqocZe2npQsnItStQS5R5VIxF3dLhDIjtc9k2NqhlEI2k2zu9WN7uYxsrlXKitcV9rVXnTk8_b-iG-esJ1EVO7ue_LmFeSLnN-r8CO_baym0A_CH3OxNd5EfoB3Lx4minwOtG3a-yyG30M64Srknz7Yfhb01lg99b3rcVfAQAA__82kwaa">