summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-06-18 10:53:36 -0400
committerOri Bernstein <ori@eigenstate.org>2014-06-18 10:53:36 -0400
commit045848e7ce20786892c6fd395f64e879d57003c0 (patch)
tree8701cd83f250e33e0cce0154d960f57970d9aa66
parentd602a0b9372004e85db60153d4579938c1022f06 (diff)
parentdd39ca79eea4204fe076b0b56a9eafd0c947f4eb (diff)
downloadmc-045848e7ce20786892c6fd395f64e879d57003c0.tar.gz
Merge https://github.com/oridb/mc
-rw-r--r--libstd/Makefile2
-rw-r--r--libstd/sys-linux.myr6
2 files changed, 7 insertions, 1 deletions
diff --git a/libstd/Makefile b/libstd/Makefile
index 6504fda..b7c522e 100644
--- a/libstd/Makefile
+++ b/libstd/Makefile
@@ -89,7 +89,7 @@ clean:
rm -f $(USE) test.use
rm -f lib$(MYRLIB).a
-install:
+install: all
mkdir -p $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr)
install libstd.a $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr)
install std $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr)
diff --git a/libstd/sys-linux.myr b/libstd/sys-linux.myr
index aaa78d1..9c487e3 100644
--- a/libstd/sys-linux.myr
+++ b/libstd/sys-linux.myr
@@ -452,6 +452,12 @@ 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)