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

    <tr>
        <th>Summary</th>
        <td>
            [libc] Implement `capget` and `capset` syscall wrappers 
        </td>
    </tr>

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

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

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

<pre>
    Implement https://man7.org/linux/man-pages/man2/capset.2.html wrappers. The manpage mentioned that it was not provided by `glibc` but MUSL implement them as an extension:
https://github.com/bminor/musl/blob/f314e133929b6379eccc632bef32eaebb66a7335/src/linux/cap.c#L8

This is helpful in #79645. 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8kk-PpCwQxj8NXipj6MJGPXiYNxOTN5k9zexlb4ClsEEwgPPn22-0J9u7l70oVIqqp-r5qZzdEogGdv2PXZ8qtRcb0_BibIqTCwulH3avdJw-h__XzdNKoYAtZctMPDIcGY6rCm0d08Jw9C7sH7fQw6YWyrczMhyN2jKVGmtbVg_vSW0bpVzDqyVYVTiy4SjuYqAJilUFXIF3lSHEAluKb26iCfQnMMkX77RhkoPeC3z7_vIM7re4YmkFlUEFoI9CIbsYDq38ifHHv5Uvrthd1yauDEe9uhDTIXjP_rj7qBmOs7g0dBGix15L0fZkjJECNc0CSZHWUqpWiCvDMSfzxw6M2mrDUDx3t9a376t1GVwGS36bdw8uAEPR9rK51lBNg5h60auKhkvLpRRNK9vKDopLNP3MO807I7pp5jO1XW-0UVIjdZUbkGPDL4Jf2gs2Td1MAvmVlDBT24h2Zg2nVTlfe_-2Hm5VLuedho5z0VZeafL5ZADx3C3iQUMajvQHvS-ZNdy7XPK9QHHFn9ycD65PcAeESW7UtlA5PFJh-grkWyB_ZqP8HQKo9uSHf1hztPz6PWwp_iRTGI7nAAdh5wy_AgAA__95nuMF">