]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/data-fd-util.c
fd-uitl: rename PIPE_EBADF → EBADF_PAIR, and add EBADF_TRIPLET
[thirdparty/systemd.git] / src / shared / data-fd-util.c
index 2fac0a9f44615267f9f2b513587e9be832119cc0..b939206d82214ad6556d8df388ce78aa5f67e62f 100644 (file)
@@ -26,7 +26,7 @@
 #define DATA_FD_TMP_LIMIT (1024U*1024U)
 
 int acquire_data_fd(const void *data, size_t size, unsigned flags) {
-        _cleanup_close_pair_ int pipefds[2] = PIPE_EBADF;
+        _cleanup_close_pair_ int pipefds[2] = EBADF_PAIR;
         _cleanup_close_ int fd = -EBADF;
         int isz = 0, r;
         ssize_t n;
@@ -206,7 +206,7 @@ int copy_data_fd(int fd) {
                         /* Hmm, pity, this didn't fit. Let's fall back to /tmp then, see below */
 
                 } else {
-                        _cleanup_close_pair_ int pipefds[2] = PIPE_EBADF;
+                        _cleanup_close_pair_ int pipefds[2] = EBADF_PAIR;
                         int isz;
 
                         /* If memfds aren't available, use a pipe. Set O_NONBLOCK so that we will get EAGAIN rather