This file is indexed.

/usr/include/libzia/zsock.h is in libzia-dev 4.04-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
    zsock.h - socket functions
    Copyright (C) 2011 Ladislav Vaiz <ok1zia@nagano.cz>

    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    version 2 as published by the Free Software Foundation.

*/

#ifndef __ZSOCK_H
#define __ZSOCK_H

#include <libziaint.h>

#ifdef Z_HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

#ifdef Z_HAVE_WINSOCK2_H
#include <winsock2.h>
#endif

#ifdef Z_HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

#ifdef Z_HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif

/*#ifdef Z_HAVE_W32API_WS2TCPIP_H
#include <w32api/ws2tcpip.h>
#endif

#ifdef Z_HAVE_CYGWIN_IN_H
#include <cygwin/in.h>
#endif*/


#ifdef Z_HAVE_UNISTD_H
#include <unistd.h> // for close() prototype
#endif

#include <glib.h>

// to have structure with maximal size of supported protocols
typedef union zsockaddr{
    struct sockaddr sa;
    struct sockaddr_in in;
#ifdef AF_INET6
    struct sockaddr_in6 in6;
#endif
}zsockaddr;

#ifdef Z_MSC_MINGW
typedef int socklen_t;
#endif

int z_sock_nonblock(int fd, int nonblock);
int z_sock_reuse(int fd, int reuseaddr);
int z_sock_broadcast(int fd, int reuseaddr);
int z_sock_error(int fd);
void *z_sockadr_get_addr(union zsockaddr *sa);
int z_sockadr_get_len(union zsockaddr *sa);
char *z_sock_ntoa(GString *gs, int family, union zsockaddr *sa);
int z_sock_aton(const char *hostname, int port, union zsockaddr *sa);

int z_pipe(int fds[2]);

#ifdef Z_MSC_MINGW
int inet_aton(const char *cp, struct in_addr *inp);
#endif



int z_sock_wouldblock(int err);
int z_sock_printf(int fd, const char *m, ...);

#ifdef Z_UNIX_ANDROID
#define closesocket close
#endif


int z_pipe_write(int fd, const void *buf, int count);
int z_pipe_read(int fd, void *buf, int count);
int z_pipe_close(int fd);


void z_sock_set_errno(int err);
int z_sock_connect(int sock, union zsockaddr *sa, int timeout_ms);

#endif