This file is indexed.

/usr/include/dpm/net.h is in libdpm-dev 1.8.7-3.1+b1.

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
94
95
96
97
/*
 * $Id: net.h,v 1.1.1.1 2000/06/14 13:42:37 baud Exp $ 
 */

#ifndef _NET_H
#define _NET_H
/*
 * Copyright (C) 1999 by CERN IT-PDP/DM
 * All rights reserved
 */
#include <osdep.h>
/*
 * Define NT types and constants for UNIX system. All
 * CASTOR sources dealing with networking access should 
 * use these definitions to maximize portability.
 */
#if !defined(_WIN32)
typedef int SOCKET;
/*
 * The following definitions should be used with shutdown()
 */
#if defined(SHUT_RD)
#define SD_RECEIVE SHUT_RD
#else /* SHUT_RD */
#define SD_RECEIVE 0x00
#endif /* SHUT_RD */

#if defined(SHUT_WR)
#define SD_SEND SHUT_WR
#else /* SHUT_WR */
#define SD_SEND 0x01
#endif /* SHUT_WR */

#if defined(SHUT_RDWR)
#define SD_BOTH SHUT_RDWR
#else /* SHUT_RDWR */
#define SD_BOTH 0x02
#endif /* SHUT_RDWR */

/*
 * Invalid socket and socket error. INVALID_SOCKET should be use
 * for system calls returning a socket, e.g. socket(), accept().
 * SOCKET_ERROR should be used for all other network routines
 * returning an int, e.g. connect(), bind()
 */
#define INVALID_SOCKET -1
#define SOCKET_ERROR -1

#define closesocket close
#define ioctlsocket ioctl


#else /* _WIN32 */
#include <winsock2.h>
/*
 * Some UNIX definitions for NT
 */
#if defined(SD_RECEIVE)
#define SHUT_RD SD_RECEIVE
#else /* SD_RECEIVE */
#define SHUT_RD 0x00
#endif /* SD_RECEIVE */

#if defined(SD_SEND)
#define SHUT_WR SD_SEND
#else /* SD_SEND */
#define SHUT_WR 0x01
#endif /* SD_SEND */

#if defined(SD_BOTH)
#define SHUT_RDWR SD_BOTH
#else /* SD_BOTH */
#define SHUT_RDWR 0x02
#endif /* SD_BOTH */

#endif /* _WIN32 */

EXTERN_C int DLL_DECL (*recvfunc) _PROTO((SOCKET, char *, int));
                                        /* Network receive function     */
#define netread    (*recvfunc)
EXTERN_C int DLL_DECL (*sendfunc) _PROTO((SOCKET, char *, int));
                                        /* Network send function        */
#define netwrite   (*sendfunc)
EXTERN_C int DLL_DECL (*closefunc) _PROTO((SOCKET));
                                        /* Network close function       */
#define netclose   (*closefunc)
EXTERN_C int DLL_DECL (*ioctlfunc) _PROTO((SOCKET, int, int));
                                        /* Network ioctl function       */
#define netioctl  (*ioctlfunc)
EXTERN_C char DLL_DECL *(*errfunc) _PROTO((void));
                                        /* Network error function       */
#define neterror (*errfunc)

#include <socket_timeout.h>


#endif /* _NET_H */