diff options
author | Ori Bernstein <ori@eigenstate.org> | 2014-06-18 01:31:46 -0400 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2014-06-18 01:31:46 -0400 |
commit | e0e8aafaa651cba00f96c01f8c87dab7109cfc3d (patch) | |
tree | b4fa0dfd1f022261d917256ec912875505fcc2cd | |
parent | dd39ca79eea4204fe076b0b56a9eafd0c947f4eb (diff) | |
download | mc-e0e8aafaa651cba00f96c01f8c87dab7109cfc3d.tar.gz |
Add raw socket type.
-rw-r--r-- | libstd/sys-linux.myr | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/libstd/sys-linux.myr b/libstd/sys-linux.myr index 9c487e3..bce0f6f 100644 --- a/libstd/sys-linux.myr +++ b/libstd/sys-linux.myr @@ -100,6 +100,7 @@ pkg std = const Onofollow : fdopt = 0x20000 const Ondelay : fdopt = 0x800 const Otrunc : fdopt = 0x200 + const Odir : fdopt = 0x10000 /* mmap protection */ const Mprotnone : mprot = 0x0 @@ -131,6 +132,13 @@ pkg std = const Sockdccp : socktype = 6 /* data congestion control protocol */ const Sockpack : socktype = 10 /* linux specific packet */ + /* network protocols */ + const Ipproto_ip : sockproto = 0 + const Ipproto_icmp : sockproto = 1 + const Ipproto_tcp : sockproto = 6 + const Ipproto_udp : sockproto = 17 + const Ipproto_raw : sockproto = 255 + const Seekset : whence = 0 const Seekcur : whence = 1 const Seekend : whence = 2 @@ -452,12 +460,6 @@ pkg std = const Sysprocess_vm_readv : scno = 310 const Sysprocess_vm_writev : scno = 311 - /* network protocols */ - const Ipproto_ip : sockproto = 0 - const Ipproto_icmp : sockproto = 1 - const Ipproto_tcp : sockproto = 6 - const Ipproto_udp : sockproto = 17 - /* getting to the os */ extern const syscall : (sc:scno, args:... -> int64) |