newlib-cygwin/newlib/libc/sys/mmixware
Hans-Peter Nilsson ddb614993a newlib MMIX: Fix compilation warnings that recent gcc treats as errors
Without this, when building with recent gcc, we'll see errors when
compiling for --target mmix the first being:
  CC       libc/sys/mmixware/libc_a-chmod.o
In file included from /x/newlib/libc/sys/mmixware/chmod.c:17:
/x/newlib/libc/sys/mmixware/chmod.c: In function 'chmod':
/x/newlib/libc/sys/mmixware/sys/syscall.h:139:6: error: implicit declaration \
of function 'sprintf' [-Wimplicit-function-declaration]
  139 |      sprintf (buf, "UNIMPLEMENTED %s in %s\n", __FUNCTION__,
 __FILE__); \

Other warnings also quelled.

	* libc/sys/mmixware/sys/syscall.h: Include stdio.h, string.h
	and unistd.h.
	* libc/sys/mmixware/_exit.c: Call __unreachable after simulator exit.
	* libc/sys/mmixware/chown.c (chown): Match declaration in unistd.h.
	* libc/sys/mmixware/getpid.c (_getpid): Ditto.
	* libc/sys/mmixware/kill.c (_kill): Ditto.
	* libc/sys/mmixware/link.c (_link): Ditto.
	* libc/sys/mmixware/read.c (_read): Ditto.
	* libc/sys/mmixware/sbrk.c (_sbrk): Ditto.
	* libc/sys/mmixware/unlink.c (_unlink): Ditto.
	* libc/sys/mmixware/write.c (_write): Ditto.
2023-12-29 19:29:20 +01:00
..
sys newlib MMIX: Fix compilation warnings that recent gcc treats as errors 2023-12-29 19:29:20 +01:00
Makefile.inc newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
_exit.c newlib MMIX: Fix compilation warnings that recent gcc treats as errors 2023-12-29 19:29:20 +01:00
access.c * libc/sys/mmixware/access.c (access): Do not try to use a magic 2007-06-10 12:54:35 +00:00
chmod.c
chown.c newlib MMIX: Fix compilation warnings that recent gcc treats as errors 2023-12-29 19:29:20 +01:00
close.c
creat.c
crt0.c
execv.c
execve.c
fork.c
fstat.c
getpid.c newlib MMIX: Fix compilation warnings that recent gcc treats as errors 2023-12-29 19:29:20 +01:00
gettime.c
isatty.c * libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty. 2008-01-25 04:31:11 +00:00
kill.c newlib MMIX: Fix compilation warnings that recent gcc treats as errors 2023-12-29 19:29:20 +01:00
link.c newlib MMIX: Fix compilation warnings that recent gcc treats as errors 2023-12-29 19:29:20 +01:00
lseek.c
open.c
pipe.c
read.c newlib MMIX: Fix compilation warnings that recent gcc treats as errors 2023-12-29 19:29:20 +01:00
sbrk.c newlib MMIX: Fix compilation warnings that recent gcc treats as errors 2023-12-29 19:29:20 +01:00
setjmp.S
stat.c
time.c
times.c
unlink.c newlib MMIX: Fix compilation warnings that recent gcc treats as errors 2023-12-29 19:29:20 +01:00
utime.c
wait.c
write.c newlib MMIX: Fix compilation warnings that recent gcc treats as errors 2023-12-29 19:29:20 +01:00