X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=primos%2Fprimos.c;fp=primos%2Fprimos.c;h=18e228b69be8c5eaad809f5dce407073af73e046;hb=c7e61475680fa226bd9b8bdd469cd66914e630f5;hp=c751c9a2b6d952738b80f618186f42e9f69af614;hpb=800deb09b422a73c1212233a93839a223ff59678;p=debian%2Fgzip diff --git a/primos/primos.c b/primos/primos.c index c751c9a..18e228b 100644 --- a/primos/primos.c +++ b/primos/primos.c @@ -8,6 +8,7 @@ #ifdef __50SERIES +#include #include #include #include @@ -30,7 +31,7 @@ char *getenv(var) { char buf[256]; extern char *gvget(); - + buf[0] = '.'; strcpy(buf+1, var); @@ -43,7 +44,7 @@ unlink(path) { return delete(path); } - + int lstat(path, buf) char *path; struct stat *buf; @@ -84,7 +85,7 @@ int stat(path, buf) case -1: return -1; - + default: buf->st_mode = primos_mode; buf->st_size = fsize(path); @@ -99,7 +100,7 @@ int stat(path, buf) */ buf->st_atime = buf->st_mtime; buf->st_ctime = buf->st_mtime; - + return 0; }