[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libgcj



On Sat, Mar 25, 2000 at 08:41:48PM +0000, Chris Lingard wrote:
> diff -Naur libgcj-2.95.1/libjava/include/jvm.h new/libjava/include/jvm.h
> --- libgcj-2.95.1/libjava/include/jvm.h	Wed Apr  7 15:52:35 1999
> +++ new/libjava/include/jvm.h	Sat Mar 25 16:10:43 2000
> @@ -91,6 +91,15 @@
>  extern "C" void _Jv_CheckArrayStore (jobject array, jobject obj);
>  extern "C" void _Jv_RegisterClass (jclass klass);
>  extern "C" void _Jv_RegisterClasses (jclass *classes);
> +
> +extern "C"
> +{
> +#ifdef __GNU__
> +#define MAXHOSTNAMELEN  24
> +#define MAXPATHLEN  512
> +#endif
> +}
> +
>  extern jclass _Jv_FindClass (_Jv_Utf8Const *name,
>  			     java::lang::ClassLoader *loader);
>  extern jclass _Jv_FindClassFromSignature (char *,


This looks a bit hackish. Is it too hard to fix the code so that it can deal
with arbitrary long hostnames and path names? It is not difficult to adjust
the buffer size on ERANGE, or to use glibc interfaces like
get_current_dir_name etc.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org Check Key server 
Marcus Brinkmann              GNU    http://www.gnu.org    for public PGP Key 
Marcus.Brinkmann@ruhr-uni-bochum.de,     marcus@gnu.org    PGP Key ID 36E7CD09
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/       brinkmd@debian.org


Reply to: