Changes:
- $Id: util.c 4357 2006-01-22 23:33:38Z twisti $
-
*/
+#include "config.h"
+
#include <assert.h>
#include <errno.h>
#include <stdarg.h>
#include "vm/types.h"
#include "mm/memory.h"
-#include "vm/exceptions.h"
-#include "vm/stringlocal.h"
+#include "vm/vm.h"
+
+/* _Jv_getcwd ******************************************************************
-/* getcwd **********************************************************************
+ Return the current working directory.
- XXX
+ RETURN VALUE:
+ pointer to a char array allocated by MNEW, or
+ NULL if memory could not be allocated.
*******************************************************************************/
/* too small buffer or a more serious problem */
if (errno != ERANGE)
- throw_cacao_exception_exit(string_java_lang_InternalError,
- strerror(errno));
+ vm_abort("getcwd failed: %s", strerror(errno));
/* double the buffer size */