2009/7/5 Tomek Grabiec <tgrab...@gmail.com>: > > Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> > --- > vm/jato.c | 24 ++++++++++++++++++++++++ > 1 files changed, 24 insertions(+), 0 deletions(-) > > diff --git a/vm/jato.c b/vm/jato.c > index dfdd60b..9086f1d 100644 > --- a/vm/jato.c > +++ b/vm/jato.c > @@ -32,6 +32,9 @@ > #include <stdio.h> > #include <stdlib.h> > #include <string.h> > +#include <sys/types.h> > +#include <sys/stat.h> > +#include <unistd.h> > > #include "cafebabe/access.h" > #include "cafebabe/attribute_info.h" > @@ -306,6 +309,26 @@ native_vmclassloader_getprimitiveclass(int type) > return class->object; > } > > +static int __vm_native > +native_vmfile_is_directory(struct vm_object *dirpath) > +{ > + char *dirpath_str; > + struct stat buf; > + > + dirpath_str = vm_string_to_cstr(dirpath); > + if (!dirpath_str) > + return false;
Just checking -- should this throw OutOfMemoryError or does vm_string_to_cstr() do it? Vegard ------------------------------------------------------------------------------ _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel