Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Added core.sys.posix.sys.socket declarations for ARM.
Browse files Browse the repository at this point in the history
From Linux 3.10.6 on 32 bit ARM.
  • Loading branch information
dnadlinger committed Oct 6, 2013
1 parent 12d5350 commit 1dc4fd3
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/core/sys/posix/sys/socket.d
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,40 @@ version( linux )
SO_TYPE = 3
}
}
else version (ARM)
{
enum
{
SOCK_DGRAM = 2,
SOCK_SEQPACKET = 5,
SOCK_STREAM = 1
}

enum
{
SOL_SOCKET = 1
}

enum
{
SO_ACCEPTCONN = 30,
SO_BROADCAST = 6,
SO_DEBUG = 1,
SO_DONTROUTE = 5,
SO_ERROR = 4,
SO_KEEPALIVE = 9,
SO_LINGER = 13,
SO_OOBINLINE = 10,
SO_RCVBUF = 8,
SO_RCVLOWAT = 18,
SO_RCVTIMEO = 20,
SO_REUSEADDR = 2,
SO_SNDBUF = 7,
SO_SNDLOWAT = 19,
SO_SNDTIMEO = 21,
SO_TYPE = 3
}
}
else
static assert(0, "unimplemented");

Expand Down

0 comments on commit 1dc4fd3

Please sign in to comment.