Rationalised use of #includes to be more standards-compliant.

This commit is contained in:
dtrg
2006-07-18 17:10:29 +00:00
parent 8ea67498ed
commit 4c0a0e6119
48 changed files with 80 additions and 66 deletions

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
int
sys_access(path, mode)

View File

@@ -4,15 +4,13 @@
*/
/* $Id$ */
#include <system.h>
char *sbrk();
#include "system.h"
#include <unistd.h>
char *
sys_break(incr)
int incr;
{
char *sbrk();
register char *brk = sbrk(incr);
if (brk == (char *) 0 || brk == (char *)-1)

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
int
sys_chmode(path, mode)

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
void
sys_close(fp)

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
extern File *_get_entry();

View File

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

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
int
sys_lock(path)

View File

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

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
extern File *_get_entry();

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
int
sys_read(fp, bufptr, bufsiz, pnbytes)

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
int
sys_remove(path)

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
int
sys_rename(path1, path2)

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
long lseek();

View File

@@ -5,7 +5,7 @@
/* $Id$ */
#include <stdlib.h>
#include <system.h>
#include "system.h"
void
sys_stop(how)

View File

@@ -4,7 +4,7 @@
*/
/* RCS: $Id$ */
#include <system.h>
#include "system.h"
File _sys_ftab[SYS_NOPEN] = {
{ 0, OP_READ},

View File

@@ -62,6 +62,4 @@ _PROTOTYPE(long sys_modtime, (char *));
/* return value for sys_break */
#define ILL_BREAK ((char *)0)
/* system's idea of block */
#define BUFSIZ 1024
#endif /* __SYSTEM_INCLUDED__ */

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
long time();

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
int
sys_unlock(path)

View File

@@ -4,7 +4,7 @@
*/
/* $Id$ */
#include <system.h>
#include "system.h"
int
sys_write(fp, bufptr, nbytes)