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
|
/* file: posix-macros-sockets.c
----------------------------
These subprograms provide access to POSIX functionality that is
provided for C programs via macros.
*/
/*
#include <netinet/in.h>
#include <arpa/inet.h>
*/
#include "pconfig.h"
unsigned long c_ntohl (unsigned long val) {
return ntohl (val);
}
unsigned long c_htonl (unsigned long val) {
return htonl (val);
}
unsigned short c_ntohs (unsigned short val) {
return ntohs (val);
}
unsigned long c_htons (unsigned long val) {
return htons (val);
}
|