mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-12 21:57:27 +03:00
socket-util: move CMSG_FOREACH() from macro.h to socket-util.h
This commit is contained in:
parent
afc5dbf37f
commit
8f328d36c9
@ -19,10 +19,11 @@
|
|||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
|
#include "dirent-util.h"
|
||||||
#include "fd-util.h"
|
#include "fd-util.h"
|
||||||
#include "parse-util.h"
|
#include "parse-util.h"
|
||||||
|
#include "socket-util.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "dirent-util.h"
|
|
||||||
|
|
||||||
int close_nointr(int fd) {
|
int close_nointr(int fd) {
|
||||||
assert(fd >= 0);
|
assert(fd >= 0);
|
||||||
|
@ -427,7 +427,4 @@ do { \
|
|||||||
} \
|
} \
|
||||||
struct __useless_struct_to_allow_trailing_semicolon__
|
struct __useless_struct_to_allow_trailing_semicolon__
|
||||||
|
|
||||||
#define CMSG_FOREACH(cmsg, mh) \
|
|
||||||
for ((cmsg) = CMSG_FIRSTHDR(mh); (cmsg); (cmsg) = CMSG_NXTHDR((mh), (cmsg)))
|
|
||||||
|
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
@ -127,3 +127,6 @@ int getpeersec(int fd, char **ret);
|
|||||||
|
|
||||||
int send_one_fd(int transport_fd, int fd, int flags);
|
int send_one_fd(int transport_fd, int fd, int flags);
|
||||||
int receive_one_fd(int transport_fd, int flags);
|
int receive_one_fd(int transport_fd, int flags);
|
||||||
|
|
||||||
|
#define CMSG_FOREACH(cmsg, mh) \
|
||||||
|
for ((cmsg) = CMSG_FIRSTHDR(mh); (cmsg); (cmsg) = CMSG_NXTHDR((mh), (cmsg)))
|
||||||
|
@ -59,6 +59,7 @@
|
|||||||
#include "process-util.h"
|
#include "process-util.h"
|
||||||
#include "selinux-util.h"
|
#include "selinux-util.h"
|
||||||
#include "signal-util.h"
|
#include "signal-util.h"
|
||||||
|
#include "socket-util.h"
|
||||||
#include "string-util.h"
|
#include "string-util.h"
|
||||||
#include "terminal-util.h"
|
#include "terminal-util.h"
|
||||||
#include "udev-util.h"
|
#include "udev-util.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user