This file is indexed.

/usr/share/z88dk/include/net/misc.h is in z88dk-data 1.8.ds1-10.

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
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
/*
 *	API For Zsock
 *
 *	Miscellaenous routines which don't fit in
 *	anywhere
 *
 *	djm 13/2/2000
 *
 *	$Id: misc.h,v 1.5 2001/10/16 18:30:32 dom Exp $
 */

#ifndef __NET_MISC_H__
#define __NET_MISC_H__

#include <net/inet.h>

/*
 * Convert dotted string to network address 
 * CAUTION: RETURNS 0 ON FAILURE!!!
 */

extern ipaddr_t __LIB__ __SHARED__ inet_addr(char *cp);

/* Convert network address to dotted string, returns where the string is */
/* First one assumes base 10 and full complement of digits */
extern char __LIB__ __SHARED__ *inet_ntoa(IPADDR_T in, char *b);

/* full version, may not make it into the final cut! */
extern char __LIB__ __SHARED__ *inet_ntoa_full(IPADDR_T in, char *b);


/*
 * Check and set user timeouts 
 */

extern long __LIB__ __SHARED__ tcp_settimeout(int secs);
extern long __LIB__ __SHARED__ tcp_setctimeout(int centisecs);
extern int __LIB__ __SHARED__ tcp_chktimeout(long time);

/*
 * Page in and out Zsock data bank to segment two
 *
 * pagein returns old binding which pageout needs
 */

extern u8_t __LIB__ __SHARED__ tcp_pagein(void);
extern u8_t __LIB__ __SHARED__ tcp_pageout(u8_t);

/*
 * Allocate memory from the ZSock heap..useful for daemons
 * Since they probably won't have their own memory...use
 * sparingly since we've only got 16k...
 */

extern void __LIB__ __SHARED__ *tcp_malloc(int);
extern void __LIB__ __SHARED__ *tcp_calloc(int,int);
extern void __LIB__ __SHARED__ tcp_free(void *);


/*
 *	Turn the device on/offline
 *	If flag !=0 then hangup line (offline)
 */

#define HANGUP 1
#define NOHANGUP 0

extern void __LIB__ __SHARED__ DeviceOffline(int flag);
extern void __LIB__ __SHARED__ DeviceOnline();



/*
 *	Routines for use by any packet drivers or apps
 *	if they really feel the need..
 */

/* Get the host IP address in network order */
extern ipaddr_t __LIB__ __SHARED__ GetHostAddr(void);

/* Get the current domainname into buf, buf must be MAXDOMSIZ (50) */

extern u8_t __LIB__ __SHARED__ *GetDomain(u8_t *buf);

/*
 * Return the network information structure - copy it into a
 * user supplied buffer for them to mess with - don't let 'em
 * near ours!!! User supplies buf with size size, we copy as
 * much as possible, if size=0 then we have it all
 */

extern size_t __LIB__ __SHARED__ GetNetStat(u8_t *buf, size_t size);

/*
 * Register a CatchAll handler
 */

extern int __LIB__ __SHARED__ tcp_RegCatchall(int);

/*
 * Hopefully Dev only busy call
 */

extern void __LIB__ __SHARED__ GoTCP(void);

/*
 * Kill daemon sockets on port for a particular protocol
 */

extern int __LIB__ __SHARED__ killdaemon(tcpport_t port, char protocol);

#endif /* !_NET_MISC_H */