Browse Source

Fix iq2000 libgloss for c99/gcc-14

Similar to the others in this space.  Make implicit ints explicit ints. Add
prototype for _write in sbrk.c.
users/vapier/wip
Jeff Law 2 years ago
parent
commit
bdcfea3a24
  1. 3
      libgloss/iq2000/getpid.c
  2. 4
      libgloss/iq2000/isatty.c
  3. 3
      libgloss/iq2000/kill.c
  4. 1
      libgloss/iq2000/read.c
  5. 1
      libgloss/iq2000/sbrk.c

3
libgloss/iq2000/getpid.c

@ -4,7 +4,8 @@
#include "trap.h"
_getpid (n)
int
_getpid (int n)
{
return 1;
}

4
libgloss/iq2000/isatty.c

@ -4,8 +4,8 @@
#include "trap.h"
_isatty (fd)
int fd;
int
_isatty (int fd)
{
return 1;
}

3
libgloss/iq2000/kill.c

@ -4,7 +4,8 @@
#include "trap.h"
_kill (n, m)
int
_kill (int n, int m)
{
return TRAP0 (SYS_exit, 0xdead, 0, 0);
}

1
libgloss/iq2000/read.c

@ -4,6 +4,7 @@
#include "trap.h"
int
_read (int file,
char *ptr,
size_t len)

1
libgloss/iq2000/sbrk.c

@ -4,6 +4,7 @@
#include <sys/stat.h>
#include "trap.h"
int _write (int, char *, size_t);
caddr_t
_sbrk (size_t incr)

Loading…
Cancel
Save