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

    <tr>
        <th>Summary</th>
        <td>
            implementation header suggested for `struct timeval`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    ```cpp
#include <sys/time.h>

void f()
{
    struct timeval tv;
    tv.tv_sec = 1;
    tv.tv_usec = 0;
    (void)tv;
}
```

```
<source>:1:1: warning: included header time.h is not used directly [misc-include-cleaner]
    1 | #include <sys/time.h>
      | ^~~~~~~~~~~~~~~~~~~~~
    2 | 
<source>:5:12: warning: no header providing "timeval" is directly included [misc-include-cleaner]
    1 | #include <sys/time.h>
    2 | 
    3 | void f()
    4 | {
    5 |     struct timeval tv;
      | ^
2 warnings generated.
```

`clang-include-cleaner-17 --print=changes` reports:
```
- <sys/time.h> @Line:1
+ <bits/types/struct_timeval.h>
```

See
https://pubs.opengroup.org/onlinepubs/7908799/xsh/systime.h.html
https://man7.org/linux/man-pages/man2/settimeofday.2.html
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVMuS6yYQ_ZrWhpIKgR7WQos74-tVdvmAWwi1JVIIVIA0402-PYUkz3gmriSLULZpupvmnOMG4b0aDGIL5QuU50QsYbSuvSqHb2LFpLP9rYWK7h85z0DPQH8A48pIvfRIgL_6mwd2CWrCbAT-80jZflerenIFdgLWHP76ZTcIIcQHt8hA4tZVaBJW4A_RsGZh_eVREuBnkj-JLfcg_RIEdooHA2seKkJ9Pow7nUeg35381dvFSYx8-I_8-JI34YwyQzQPAXoyoujRkZ0_UZ4YG8jisSe9ciiDvhEoXyblZXrsSaVGYdBBef4EnROoX8l_UJZsY0suf_75ZHymsT3tGaUyUmLfOBl7ZzM7u6pemYEAY8f_A4xFeh-sPhT43-k94o5rvq3_3kwxVuy5j21Vbq5_b7APFXcXu0vhyYAGnQjYZ__cM1ILM3znneY1SdPZKROAn-UozIAeKkocztYFD_x506VPNCFQ0N-Uwa0Bj7v3EvM6FbbE24xx3on-Oog-3sNnyH9H3I0xhHnDwy7ALvPS-czOaAZnlzmzbgB2sUYrgzEE7FI39FQ3DbDLux_jsTe_Q83GMOlnNSdh6qOSVmZ5313pLIYN9yQMi3UwxDr22otbxrZiSd_yvuGNSLDNq4Y2NWc0T8ZW9F2X85IWUhbYFEKcqrrHPudN3siuLBPVMso4PVGW06Iq8qwvJD9JhpKWLGddBQXFSSidab1OEVyivF-wrQrOq0SLDrXfXkTGDL6RLQiMxQfStXFP2i2Dh4Jq5YP_rBJU0NiqadY4oQkiKGvuF8ovw4A-YE-u1hGo6NfWhIomi9PtV_EGFcaly6Sdonx6vU_p7OwfKAOwywYuKrmB_ysAAP__ARWzxw">