Added prototypes

This commit is contained in:
ceriel 1993-10-22 13:49:04 +00:00
parent ab8dcfa134
commit 799f0600ef
11 changed files with 60 additions and 0 deletions

View file

@ -4,6 +4,8 @@
*/ */
/* $Header$ */ /* $Header$ */
#include <system.h>
int int
sys_chmode(path, mode) sys_chmode(path, mode)
char *path; char *path;

View file

@ -6,6 +6,9 @@
#include <system.h> #include <system.h>
#if __STDC__ > 0
void
#endif
sys_close(fp) sys_close(fp)
register File *fp; register File *fp;
{ {

View file

@ -6,6 +6,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <system.h>
long long
sys_filesize(path) sys_filesize(path)

View file

@ -4,6 +4,8 @@
*/ */
/* $Header$ */ /* $Header$ */
#include <system.h>
int int
sys_lock(path) sys_lock(path)
char *path; char *path;

View file

@ -7,6 +7,8 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <system.h>
long long
sys_modtime(path) sys_modtime(path)
char *path; char *path;

View file

@ -4,6 +4,8 @@
*/ */
/* $Header$ */ /* $Header$ */
#include <system.h>
int int
sys_remove(path) sys_remove(path)
char *path; char *path;

View file

@ -4,6 +4,8 @@
*/ */
/* $Header$ */ /* $Header$ */
#include <system.h>
int int
sys_rename(path1, path2) sys_rename(path1, path2)
char *path1, *path2; char *path1, *path2;

View file

@ -6,6 +6,9 @@
#include <system.h> #include <system.h>
#if __STDC__ > 0
void
#endif
sys_stop(how) sys_stop(how)
int how; int how;
{ {

View file

@ -31,6 +31,45 @@ extern File _sys_ftab[];
#define S_EXIT 1 #define S_EXIT 1
#define S_ABORT 2 #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 */ /* standard file decsriptors */
#define STDIN &_sys_ftab[0] #define STDIN &_sys_ftab[0]
#define STDOUT &_sys_ftab[1] #define STDOUT &_sys_ftab[1]

View file

@ -4,6 +4,8 @@
*/ */
/* $Header$ */ /* $Header$ */
#include <system.h>
long time(); long time();
long long

View file

@ -4,6 +4,8 @@
*/ */
/* $Header$ */ /* $Header$ */
#include <system.h>
int int
sys_unlock(path) sys_unlock(path)
char *path; char *path;