/std/c/freebsd/socket.d
http://github.com/jcd/phobos · D · 44 lines · 31 code · 8 blank · 5 comment · 0 complexity · 92f5905adfbd01d65f4b149cd8010ce7 MD5 · raw file
- // Written in the D programming language.
- /*
- * This module is just for making std.socket work under FreeBSD, and these
- * definitions should actually be in druntime. (core.sys.posix.netdb or sth)
- */
- module std.c.freebsd.socket;
- public import core.sys.posix.netdb;
- import core.sys.posix.sys.socket;
- extern(C):
- enum // <sys/socket.h> __BSD_VISIBLE
- {
- AF_APPLETALK = 16,
- AF_IPX = 23,
- }
- enum // <sys/socket.h> __BSD_VISIBLE
- {
- SOCK_RDM = 4,
- }
- enum // <sys/socket.h> __BSD_VISIBLE
- {
- MSG_NOSIGNAL = 0x20000,
- }
- enum // <netinet/in.h> __BSD_VISIBLE
- {
- IPPROTO_IGMP = 2,
- IPPROTO_GGP = 3,
- IPPROTO_PUP = 12,
- IPPROTO_IDP = 22,
- IPPROTO_ND = 77,
- IPPROTO_MAX = 256,
- }
- enum // <netinet/in.h>
- {
- INADDR_LOOPBACK = 0x7f000001,
- INADDR_NONE = 0xffffffff,
- }