/*************************************************************************\ * Copyright (C) Michael Kerrisk, 2018. * * * * This program is free software. You may use, modify, and redistribute it * * under the terms of the GNU General Public License as published by the * * Free Software Foundation, either version 3 or (at your option) any * * later version. This program is distributed without any warranty. See * * the file COPYING.gpl-v3 for details. * \*************************************************************************/ /* Supplementary program for Chapter 61 */ /* scm_multi.h Header file used by scm_multi_send.c and scm_multi_recv.c. */ #define _GNU_SOURCE /* To get SCM_CREDENTIALS definition from */ #include #include #include "unix_sockets.h" /* Declares our socket functions */ #include "af_unix_hdr.h" #define SOCK_PATH "/tmp/scm_multi" #define MAX_FDS 1024 /* Maximum number of file descriptors we'll attempt to exchange in ancillary data */