Include <fcntl.h> or <unistd.h>

This silences some clang warnings of implicit declarations of
functions.  The `register int` silences a warning of implicit int.
This commit is contained in:
George Koehler 2019-03-22 14:19:02 -04:00
parent dd328215d8
commit cdbff0dd1c
5 changed files with 6 additions and 1 deletions

View file

@ -4,6 +4,7 @@
*/
/* $Id$ */
#include <unistd.h>
#include "system.h"
int

View file

@ -4,6 +4,7 @@
*/
/* $Id$ */
#include <unistd.h>
#include "system.h"
void

View file

@ -4,6 +4,7 @@
*/
/* $Id$ */
#include <fcntl.h>
#include "system.h"
extern File *_get_entry();
@ -14,7 +15,7 @@ sys_create(filep, path, mode)
char *path;
int mode;
{
register fd;
register int fd;
register File *fp;
if ((fp = _get_entry()) == (File *)0)

View file

@ -4,6 +4,7 @@
*/
/* $Id$ */
#include <fcntl.h>
#include <unistd.h>
#include "system.h"

View file

@ -4,6 +4,7 @@
*/
/* $Id$ */
#include <unistd.h>
#include "system.h"
int