FreeRDP
uwac-os.h
1 /*
2  * Copyright © 2012 Collabora, Ltd.
3  * Copyright © 2014 David FORT <contact@hardening-consulting.com>
4  *
5  * Permission to use, copy, modify, distribute, and sell this software and its
6  * documentation for any purpose is hereby granted without fee, provided that
7  * the above copyright notice appear in all copies and that both that copyright
8  * notice and this permission notice appear in supporting documentation, and
9  * that the name of the copyright holders not be used in advertising or
10  * publicity pertaining to distribution of the software without specific,
11  * written prior permission. The copyright holders make no representations
12  * about the suitability of this software for any purpose. It is provided "as
13  * is" without express or implied warranty.
14  *
15  * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
17  * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
19  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
20  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
21  * OF THIS SOFTWARE.
22  */
23 
24 /*
25  * This file is an adaptation of src/wayland-os.h from the wayland project and
26  * shared/os-compatiblity.h from the weston project.
27  *
28  * Functions have been renamed just to prevent name clashes.
29  */
30 
31 #ifndef UWAC_OS_H
32 #define UWAC_OS_H
33 
34 #include <sys/socket.h>
35 
36 int uwac_os_socket_cloexec(int domain, int type, int protocol);
37 
38 int uwac_os_dupfd_cloexec(int fd, long minfd);
39 
40 ssize_t uwac_os_recvmsg_cloexec(int sockfd, struct msghdr* msg, int flags);
41 
42 int uwac_os_epoll_create_cloexec(void);
43 
44 int uwac_create_anonymous_file(off_t size);
45 #endif /* UWAC_OS_H */