mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-27 19:17:18 +08:00
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.
This commit is contained in:
parent
188ca64934
commit
bdcfea3a24
@ -4,7 +4,8 @@
|
|||||||
#include "trap.h"
|
#include "trap.h"
|
||||||
|
|
||||||
|
|
||||||
_getpid (n)
|
int
|
||||||
|
_getpid (int n)
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
#include "trap.h"
|
#include "trap.h"
|
||||||
|
|
||||||
|
|
||||||
_isatty (fd)
|
int
|
||||||
int fd;
|
_isatty (int fd)
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,8 @@
|
|||||||
#include "trap.h"
|
#include "trap.h"
|
||||||
|
|
||||||
|
|
||||||
_kill (n, m)
|
int
|
||||||
|
_kill (int n, int m)
|
||||||
{
|
{
|
||||||
return TRAP0 (SYS_exit, 0xdead, 0, 0);
|
return TRAP0 (SYS_exit, 0xdead, 0, 0);
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
#include "trap.h"
|
#include "trap.h"
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
_read (int file,
|
_read (int file,
|
||||||
char *ptr,
|
char *ptr,
|
||||||
size_t len)
|
size_t len)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include "trap.h"
|
#include "trap.h"
|
||||||
|
|
||||||
|
int _write (int, char *, size_t);
|
||||||
|
|
||||||
caddr_t
|
caddr_t
|
||||||
_sbrk (size_t incr)
|
_sbrk (size_t incr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user