projects
/
debian
/
gzip
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.3.14
[debian/gzip]
/
primos
/
primos.c
diff --git
a/primos/primos.c
b/primos/primos.c
index c751c9a2b6d952738b80f618186f42e9f69af614..18e228b69be8c5eaad809f5dce407073af73e046 100644
(file)
--- a/
primos/primos.c
+++ b/
primos/primos.c
@@
-8,6
+8,7
@@
#ifdef __50SERIES
#ifdef __50SERIES
+#include <config.h>
#include <stdio.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <stdio.h>
#include <fcntl.h>
#include <sys/stat.h>
@@
-30,7
+31,7
@@
char *getenv(var)
{
char buf[256];
extern char *gvget();
{
char buf[256];
extern char *gvget();
-
+
buf[0] = '.';
strcpy(buf+1, var);
buf[0] = '.';
strcpy(buf+1, var);
@@
-43,7
+44,7
@@
unlink(path)
{
return delete(path);
}
{
return delete(path);
}
-
+
int lstat(path, buf)
char *path;
struct stat *buf;
int lstat(path, buf)
char *path;
struct stat *buf;
@@
-84,7
+85,7
@@
int stat(path, buf)
case -1:
return -1;
case -1:
return -1;
-
+
default:
buf->st_mode = primos_mode;
buf->st_size = fsize(path);
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;
*/
buf->st_atime = buf->st_mtime;
buf->st_ctime = buf->st_mtime;
-
+
return 0;
}
return 0;
}