Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tree-wide: use -EBADF for fd initialization | Zbigniew Jędrzejewski-Szmek | 2022-12-19 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | -1 was used everywhere, but -EBADF or -EBADFD started being used in various places. Let's make things consistent in the new style. Note that there are two candidates: EBADF 9 Bad file descriptor EBADFD 77 File descriptor in bad state Since we're initializating the fd, we're just assigning a value that means "no fd yet", so it's just a bad file descriptor, and the first errno fits better. If instead we had a valid file descriptor that became invalid because of some operation or state change, the other errno would fit better. In some places, initialization is dropped if unnecessary. | ||||
* | tree-wide: use ASSERT_PTR more | David Tardon | 2022-09-13 | 1 | -2/+1 |
| | |||||
* | time-util: assume CLOCK_BOOTTIME always exists | Lennart Poettering | 2022-03-28 | 1 | -2/+2 |
| | | | | | | | | Let's raise our supported baseline a bit: CLOCK_BOOTTIME started to work with timerfd in kernel 3.15 (i.e. back in 2014), let's require support for it now. This will raise our baseline only modestly from 3.13 → 3.15. | ||||
* | libsystemd-network: ignore -ENETDOWN or friends in recv() | Yu Watanabe | 2021-12-09 | 1 | -1/+4 |
| | | | | And this makes most errors in io events ignored. | ||||
* | tree-wide: use ERRNO_IS_TRANSIENT() | Yu Watanabe | 2021-11-30 | 1 | -1/+1 |
| | |||||
* | libsystemd-network: drop _public_ attribute | Yu Watanabe | 2021-10-29 | 1 | -12/+12 |
| | | | | No function in libsystemd-network is exposed yet. | ||||
* | libsystemd-network: make sd_dhcp_client_get_ifname() or friends return ↵ | Yu Watanabe | 2021-09-29 | 1 | -4/+12 |
| | | | | negative errno on error | ||||
* | sd-lldp-rx: make lldp_rx_free() and lldp_neighbor_free() accept NULL | Yu Watanabe | 2021-09-28 | 1 | -1/+2 |
| | |||||
* | sd-lldp-rx: sd_event should be attached when lldp_rx_start_timer() is called | Yu Watanabe | 2021-09-28 | 1 | -3/+1 |
| | |||||
* | sd-lldp-rx: do not enable timer event source in sd_lldp_rx_get_neighbors() | Yu Watanabe | 2021-09-28 | 1 | -5/+1 |
| | | | | It must be just a simple getter. | ||||
* | sd-lldp-rx: use _cleanup_ attribute at one more place | Yu Watanabe | 2021-09-28 | 1 | -5/+4 |
| | |||||
* | sd-lldp-rx: add missing assertions | Yu Watanabe | 2021-09-28 | 1 | -4/+9 |
| | |||||
* | sd-lldp-rx: delay allocating hashmap and prioq to store neighbors | Yu Watanabe | 2021-09-28 | 1 | -12/+2 |
| | |||||
* | sd-lldp-rx: ensure no event will be triggered after ↵ | Yu Watanabe | 2021-09-28 | 1 | -1/+2 |
| | | | | sd_lldp_rx_detach_event() is called | ||||
* | sd-lldp-rx: introduce sd_lldp_rx_is_running() | Yu Watanabe | 2021-09-28 | 1 | -9/+12 |
| | |||||
* | sd-lldp-rx: ignore all errors in processing datagram | Yu Watanabe | 2021-09-28 | 1 | -9/+8 |
| | |||||
* | sd-lldp-rx: rename sd_lldp -> sd_lldp_rx | Yu Watanabe | 2021-09-27 | 1 | -159/+159 |
| | |||||
* | sd-lldp: rename sd-lldp.[ch] -> sd-lldp-rx.[ch] | Yu Watanabe | 2021-09-27 | 1 | -0/+523 |