-
Notifications
You must be signed in to change notification settings - Fork 2
/
scm_functions.h
27 lines (21 loc) · 1022 Bytes
/
scm_functions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*************************************************************************\
* Copyright (C) Michael Kerrisk, 2019. *
* *
* This program is free software. You may use, modify, and redistribute it *
* under the terms of the GNU Lesser 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 files COPYING.lgpl-v3 and COPYING.gpl-v3 for details. *
\*************************************************************************/
/* scm_functions.h
Functions to exchange ancillary data over a UNIX domain socket.
*/
#ifndef SCM_FUNCTIONS_H
#define SCM_FUNCTIONS_H /* Prevent accidental double inclusion */
#include <sys/socket.h>
#include <sys/un.h>
#include <stdio.h>
#include <errno.h>
int sendfd(int sockfd, int fd);
int recvfd(int sockfd);
#endif