File: posix-macros-sockets.c

package info (click to toggle)
libflorist 2017-9
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,212 kB
  • sloc: ada: 11,902; ansic: 7,195; makefile: 137; sh: 18
file content (29 lines) | stat: -rw-r--r-- 534 bytes parent folder | download | duplicates (11)
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);
}