diff --git a/modules/src/system/chmode.c b/modules/src/system/chmode.c index d89c30e0b..2b022e3ba 100644 --- a/modules/src/system/chmode.c +++ b/modules/src/system/chmode.c @@ -4,6 +4,8 @@ */ /* $Header$ */ +#include + int sys_chmode(path, mode) char *path; diff --git a/modules/src/system/close.c b/modules/src/system/close.c index 3cfcf340f..0625e25f5 100644 --- a/modules/src/system/close.c +++ b/modules/src/system/close.c @@ -6,6 +6,9 @@ #include +#if __STDC__ > 0 +void +#endif sys_close(fp) register File *fp; { diff --git a/modules/src/system/filesize.c b/modules/src/system/filesize.c index ce7386c52..a94df435d 100644 --- a/modules/src/system/filesize.c +++ b/modules/src/system/filesize.c @@ -6,6 +6,7 @@ #include #include +#include long sys_filesize(path) diff --git a/modules/src/system/lock.c b/modules/src/system/lock.c index 9bf71ab8f..bf3bd78e4 100644 --- a/modules/src/system/lock.c +++ b/modules/src/system/lock.c @@ -4,6 +4,8 @@ */ /* $Header$ */ +#include + int sys_lock(path) char *path; diff --git a/modules/src/system/modtime.c b/modules/src/system/modtime.c index f4e439487..34831901a 100644 --- a/modules/src/system/modtime.c +++ b/modules/src/system/modtime.c @@ -7,6 +7,8 @@ #include #include +#include + long sys_modtime(path) char *path; diff --git a/modules/src/system/remove.c b/modules/src/system/remove.c index 6504db3a4..49d016c24 100644 --- a/modules/src/system/remove.c +++ b/modules/src/system/remove.c @@ -4,6 +4,8 @@ */ /* $Header$ */ +#include + int sys_remove(path) char *path; diff --git a/modules/src/system/rename.c b/modules/src/system/rename.c index cd2f0c17d..21ba75e3f 100644 --- a/modules/src/system/rename.c +++ b/modules/src/system/rename.c @@ -4,6 +4,8 @@ */ /* $Header$ */ +#include + int sys_rename(path1, path2) char *path1, *path2; diff --git a/modules/src/system/stop.c b/modules/src/system/stop.c index 6785de63f..b94999679 100644 --- a/modules/src/system/stop.c +++ b/modules/src/system/stop.c @@ -6,6 +6,9 @@ #include +#if __STDC__ > 0 +void +#endif sys_stop(how) int how; { diff --git a/modules/src/system/system.h b/modules/src/system/system.h index af36299dd..ee21fa53e 100644 --- a/modules/src/system/system.h +++ b/modules/src/system/system.h @@ -31,6 +31,45 @@ extern File _sys_ftab[]; #define S_EXIT 1 #define S_ABORT 2 +#if __STDC__ +int sys_open(char *, int, File **); +void sys_close(File *); +int sys_read(File *, char *, int, int *); +int sys_write(File *, char *, int); +int sys_seek(File *, long, int, long *); +int sys_reset(File *); +int sys_access(char *, int); +int sys_remove(char *); +int sys_rename(char *, char *); +long sys_filesize(char *); +int sys_chmode(char *, int); +int sys_lock(char *); +int sys_unlock(char *); +char *sys_break(int); +void sys_stop(int); +long sys_time(void); +long sys_modtime(char *); +#else +/* No prototypes, avoid 'void'. */ +int sys_open(); +extern sys_close(); +int sys_read(); +int sys_write(); +int sys_seek(); +int sys_reset(); +int sys_access(); +int sys_remove(); +int sys_rename(); +long sys_filesize(); +int sys_chmode(); +int sys_lock(); +int sys_unlock(); +char *sys_break(); +extern sys_stop(); +long sys_time(); +long sys_modtime(); +#endif + /* standard file decsriptors */ #define STDIN &_sys_ftab[0] #define STDOUT &_sys_ftab[1] diff --git a/modules/src/system/time.c b/modules/src/system/time.c index 9597823e9..6ba8bc251 100644 --- a/modules/src/system/time.c +++ b/modules/src/system/time.c @@ -4,6 +4,8 @@ */ /* $Header$ */ +#include + long time(); long diff --git a/modules/src/system/unlock.c b/modules/src/system/unlock.c index 11af25a6f..b3aa1e97b 100644 --- a/modules/src/system/unlock.c +++ b/modules/src/system/unlock.c @@ -4,6 +4,8 @@ */ /* $Header$ */ +#include + int sys_unlock(path) char *path;