diff options
Diffstat (limited to 'lib/libstand/stand.h')
-rw-r--r-- | lib/libstand/stand.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/libstand/stand.h b/lib/libstand/stand.h index b9e31ad..e3570f9 100644 --- a/lib/libstand/stand.h +++ b/lib/libstand/stand.h @@ -371,6 +371,19 @@ extern void panic(const char *, ...) __dead2; extern struct fs_ops *file_system[]; extern struct devsw *devsw[]; +/* + * Expose byteorder(3) functions. + */ +#define htonl(x) __htonl(x) +#define htons(x) __htons(x) +#define ntohl(x) __ntohl(x) +#define ntohs(x) __ntohs(x) + +extern uint32_t htonl(uint32_t); +extern uint16_t htons(uint16_t); +extern uint32_t ntohl(uint32_t); +extern uint16_t ntohs(uint16_t); + #if 0 static inline void * |