This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: newlib and the use of fcntl by java
- From: Anthony Green <green at redhat dot com>
- To: Richard dot Earnshaw at arm dot com
- Cc: java at gcc dot gnu dot org, newlib at sources dot redhat dot com
- Date: 17 Sep 2002 08:00:44 -0700
- Subject: Re: newlib and the use of fcntl by java
- References: <200209171338.g8HDcdY00409@pc960.cambridge.arm.com>
On Tue, 2002-09-17 at 06:38, Richard Earnshaw wrote:
> Hmm, it appears that java is making use of the fcntl function in newlib
> (or at least, it is trying to). This is a problem, since most embedded
> targets don't provide this function. The function fcntl always exists in
> newlib's libc.a, but on most targets it will call a non-existent function
> _fcntl which causes a link error.
I have a patch which adds _fcntl for the ARM newlib port. It was even
approved, but, being the bad hacker-citizen that I am, it was never
committed.
http://sources.redhat.com/ml/newlib/2002/msg00105.html
However, I'll note that adding a dummy _fcntl (like in my patch) wasn't
one of your suggested fixes. I believe syscalls contains other dummy
implementations - so it seemed like the thing to do. What do you think?
Thanks,
AG