Files
systemd/docs
Zbigniew Jędrzejewski-Szmek 254d1313ae tree-wide: use -EBADF for fd initialization
-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.
2022-12-19 15:00:57 +01:00
..
2022-05-17 23:00:18 +02:00
2022-05-17 23:00:18 +02:00
2022-01-12 16:05:59 +01:00
2022-09-08 16:13:07 +02:00
2022-12-09 15:37:43 +01:00
2022-06-28 16:05:31 +02:00
2022-05-18 20:34:10 +02:00
2022-05-18 20:34:10 +02:00
2022-06-28 16:05:31 +02:00
2022-12-10 11:26:36 +01:00
2022-11-22 01:30:03 +01:00
2022-06-28 16:05:31 +02:00