ref: 045848e7ce20786892c6fd395f64e879d57003c0
parent: d602a0b9372004e85db60153d4579938c1022f06
parent: dd39ca79eea4204fe076b0b56a9eafd0c947f4eb
author: Ori Bernstein <[email protected]>
date: Wed Jun 18 06:53:36 EDT 2014
Merge https://github.com/oridb/mc
--- a/libstd/Makefile
+++ b/libstd/Makefile
@@ -89,7 +89,7 @@
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)
--- a/libstd/sys-linux.myr
+++ b/libstd/sys-linux.myr
@@ -452,6 +452,12 @@
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)