]> Zhao Yanbai Git Server - minix.git/commitdiff
minor fixes for safecopy & safemap tests
authorBen Gras <ben@minix3.org>
Wed, 10 Oct 2012 16:35:08 +0000 (18:35 +0200)
committerBen Gras <ben@minix3.org>
Wed, 10 Oct 2012 17:12:42 +0000 (19:12 +0200)
test/safecopy/Makefile
test/safecopy/down [changed mode: 0644->0755]
test/safecopy/run [changed mode: 0644->0755]
test/safemap/Makefile
test/safemap/down [changed mode: 0644->0755]
test/safemap/requestor.c
test/safemap/run [changed mode: 0644->0755]

index 67d7da7db505b12a0b62bcefcefe8c0e088ef909..42fd715c6a787db591b6d6fce57053c4588ac3c4 100644 (file)
@@ -2,10 +2,10 @@ all: requestor grantor 1fifo 2fifo
        chmod +x down run
 
 requestor: requestor.c inc.h
-       cc -o $@ $< -lsys
+       cc -static -o $@ $< -lsys -lminlib -lcompat_minix
 
 grantor: grantor.c inc.h
-       cc -o $@ $< -lsys
+       cc -static -o $@ $< -lsys -lminlib -lcompat_minix
 
 1fifo 2fifo:
        mkfifo $@
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 67d7da7db505b12a0b62bcefcefe8c0e088ef909..42fd715c6a787db591b6d6fce57053c4588ac3c4 100644 (file)
@@ -2,10 +2,10 @@ all: requestor grantor 1fifo 2fifo
        chmod +x down run
 
 requestor: requestor.c inc.h
-       cc -o $@ $< -lsys
+       cc -static -o $@ $< -lsys -lminlib -lcompat_minix
 
 grantor: grantor.c inc.h
-       cc -o $@ $< -lsys
+       cc -static -o $@ $< -lsys -lminlib -lcompat_minix
 
 1fifo 2fifo:
        mkfifo $@
old mode 100644 (file)
new mode 100755 (executable)
index e4159bed7f14b45169b3009618ed0fb62b99c828..6c8b72caf8bd54bb89e578c66886aca1eb2d6e60 100644 (file)
@@ -48,14 +48,14 @@ int main(int argc, char **argv)
 
        /* Test MAP. */
        FIFO_WAIT(fid_get);
-       r = sys_safemap(ep_granter, gid, 0, (long)buf, size, D, 1);
+       r = sys_safemap(ep_granter, gid, 0, (long)buf, size, 1);
        if(r != OK) {
                printf("REQUESTOR: error in sys_safemap: %d\n", r);
                return 1;
        }
        CHECK_TEST("REQUESTOR", buf[0], BUF_START_GRANTOR, "MAP");
        buf[0] = BUF_START_REQUESTOR;
-       r = sys_safeunmap(D, (long)buf);
+       r = sys_safeunmap((long)buf);
        if(r != OK) {
                printf("REQUESTOR: error in sys_safeunmap: %d\n", r);
                return 1;
@@ -65,7 +65,7 @@ int main(int argc, char **argv)
        /* Test UNMAP. */
        FIFO_WAIT(fid_get);
        CHECK_TEST("REQUESTOR", buf[0], BUF_START_REQUESTOR, "UNMAP");
-       r = sys_safemap(ep_granter, gid, 0, (long)buf, size, D, 1);
+       r = sys_safemap(ep_granter, gid, 0, (long)buf, size, 1);
        if(r != 0) {
                printf("REQUESTOR: error in sys_safemap: %d\n", r);
                return 1;
@@ -80,7 +80,7 @@ int main(int argc, char **argv)
 
        /* Test SMAP_COW. */
        FIFO_WAIT(fid_get);
-       r = sys_safemap(ep_granter, gid, 0, (long)buf, size, D, 1);
+       r = sys_safemap(ep_granter, gid, 0, (long)buf, size, 1);
        if(r != OK) {
                printf("REQUESTOR: error in sys_safemap: %d\n", r);
                return 1;
@@ -114,7 +114,7 @@ int main(int argc, char **argv)
        /* Test COW_SMAP. */
        FIFO_WAIT(fid_get);
        buf[0] = BUF_START_REQUESTOR;
-       r = sys_safemap(ep_granter, gid, 0, (long)buf, size, D, 1);
+       r = sys_safemap(ep_granter, gid, 0, (long)buf, size, 1);
        if(r != OK) {
                printf("REQUESTOR: error in sys_safemap: %d\n", r);
                return 1;
@@ -131,7 +131,7 @@ int main(int argc, char **argv)
                printf("REQUESTOR: error in sys_safecopyto: %d\n", r);
                return 1;
        }
-       r = sys_safemap(ep_granter, gid, 0, (long)buf, size, D, 1);
+       r = sys_safemap(ep_granter, gid, 0, (long)buf, size, 1);
        if(r != OK) {
                printf("REQUESTOR: error in sys_safemap: %d\n", r);
                return 1;
old mode 100644 (file)
new mode 100755 (executable)