This website requires JavaScript.
Explore
Help
Sign In
libs
/
newlib-cygwin
mirror of
git://sourceware.org/git/newlib-cygwin.git
Watch
4
Star
0
Fork
You've already forked newlib-cygwin
0
Code
Issues
Projects
Releases
Wiki
Activity
7923059bff
newlib-cygwin
/
libgloss
/
microblaze
/
linux-inbyte.c
9 lines
102 B
C
Raw
Normal View
History
Unescape
Escape
libgloss: microblaze: fix read and _write declarations This patch resolves the following build error which occurs with gcc 14.1.0: ../../.././libgloss/microblaze/linux-outbyte.c: In function 'outbyte': ../../.././libgloss/microblaze/linux-outbyte.c:3:9: error: implicit declaration of function '_write' [-Wimplicit-function-declaration] 3 | _write(1, &c, 1); Signed-off-by: Neal Frager <neal.frager@amd.com>
2024-05-13 14:24:19 +08:00
extern
int
read
(
int
,
char
*
,
int
)
;
* microblaze/_exception_handler.S: Adjust to be weak. * microblaze/Makefile.in: Add LINUX_BSP. * microblaze/elf-gloss-linux.ld: New file. * microblaze/elf-gloss-linux.specs: Likewise. * microblaze/linux-crt0.S: Likewise. * microblaze/linux-inbyte.c: Likewise. * microblaze/linux-outbyte.c: Likewise. * microblaze/linux-syscalls-wrap.c: Likewise. * microblaze/linux-syscalls.S: Likewise. * microblaze/linux-syscalls.h: Likewise.
2013-07-23 17:11:18 +08:00
int
inbyte
(
void
)
{
char
ch
=
0
;
read
(
0
,
&
ch
,
1
)
;
return
ch
;
}