use system module for system calls
authorceriel <none@none>
Tue, 28 Jun 1988 11:20:50 +0000 (11:20 +0000)
committerceriel <none@none>
Tue, 28 Jun 1988 11:20:50 +0000 (11:20 +0000)
util/LLgen/src/Makefile
util/LLgen/src/machdep.c

index a5ceb9a..2e28db8 100644 (file)
@@ -20,7 +20,7 @@ parser:               $(GFILES)
                @touch parser
 
 LLgen:         $(OBJECTS)
-               $(CC) $(PROF) $(LDFLAGS) $(OBJECTS)  -o LLgen
+               $(CC) $(PROF) $(LDFLAGS) $(OBJECTS) $(EMHOME)/modules/lib/libsystem.a -o LLgen
                @size LLgen
 
 pr : 
index 6b118ba..73bbd24 100644 (file)
@@ -33,15 +33,13 @@ extern string       libpath();
 UNLINK(x) string x; {
        /* Must remove the file "x" */
 
-       unlink(x);      /* systemcall to remove file */
+       sys_remove(x);  /* systemcall to remove file */
 }
 
 RENAME(x,y) string x,y; {
        /* Must move the file "x" to the file "y" */
 
-       unlink(y);
-       if(link(x,y)!=0)fatal(1,"Cannot link to %s",y);
-       unlink(x);
+       if(! sys_rename(x,y)) fatal(1,"Cannot rename to %s",y);
 }
 
 string