/usr/share/z88dk/include/net/hton.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 | /*
* Small C+ TCP Implementation
*
* hton.h
*
* Routines for the conversiono between network and host types
*
* djm 24/4/99
*
* $Id: hton.h,v 1.4 2003/10/19 21:36:35 dom Exp $
*/
#ifndef __HTON_H__
#define __HTON_H__
/* Get the types */
#include <sys/types.h>
#include <net/inet.h>
extern IPADDR_T __LIB__ __FASTCALL__ htonl(IPADDR_T);
extern TCPPORT_T __LIB__ __FASTCALL__ htons(TCPPORT_T);
#define ntohs(x) htons(x)
#define ntohl(x) htonl(x)
#define HTONS(x) htons(x)
#define HTONL(x) htonl(x)
#define NTOHS(x) htons(x)
#define NTOHL(x) htonl(x)
#endif /* HTON_H */
|