zoslib
z/OS C/C++ Library
Loading...
Searching...
No Matches
socket.h
Go to the documentation of this file.
1
2// Licensed Materials - Property of IBM
3// ZOSLIB
4// (C) Copyright IBM Corp. 2020. All Rights Reserved.
5// US Government Users Restricted Rights - Use, duplication
6// or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
8
9#ifndef ZOS_SYS_SOCKET_H_
10#define ZOS_SYS_SOCKET_H_
11
12#define __XPLAT 1
13#include "zos-macros.h"
14
15#if defined(__cplusplus)
16extern "C" {
17#endif
18__Z_EXPORT int __socketpair_ascii(int domain, int type, int protocol, int sv[2]);
19#if defined(__cplusplus)
20}
21#endif
22
23#if (defined(ZOSLIB_OVERRIDE_CLIB) || defined(ZOSLIB_OVERRIDE_CLIB_SOCKET)) && defined(ZOSLIB_ENABLE_V2R5_FEATURES)
24#undef socketpair
25#define socketpair __socketpair_replaced
26#include_next <sys/socket.h>
27#undef socketpair
28__Z_EXPORT int socketpair(int domain, int type, int protocol, int sv[2]) __asm("__socketpair_ascii");
29#else
30#include_next <sys/socket.h>
31#endif
32
33#if (__EDC_TARGET < 0x42050000) && defined(ZOSLIB_ENABLE_V2R5_FEATURES)
34
35#include <sys/types.h>
36
37/* epoll_ctl options */
38#define SOCK_CLOEXEC 0x00001000
39#define SOCK_NONBLOCK 16
40
41#if defined(__cplusplus)
42extern "C" {
43#endif
44
45#ifdef _OE_SOCKETS
46__Z_EXPORT extern int (*accept4)(int s, struct sockaddr * addr,
47 socklen_t * addrlen, int flags);
48#endif
49
50#if defined(__cplusplus)
51}
52#endif
53#endif
54
55#endif
__Z_EXPORT int __socketpair_ascii(int domain, int type, int protocol, int sv[2])
Definition zos-io.cc:925
#define __Z_EXPORT
Definition zos-macros.h:13