prism2.device: Compiler delint
[AROS.git] / arch / all-hosted / bootstrap / filesystem.c
blob3d02f9356ab00c8bc053780bb808f878635a0595
1 /*
2 Copyright © 2010-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Filesystem control routines
6 Lang: english
7 */
9 #include <dirent.h>
10 #include <unistd.h>
11 #include <sys/stat.h>
13 #include "filesystem.h"
15 int SetRootDirectory(void)
17 struct stat st;
19 /* If AROSBootstrap.exe is found in the current directory, this means the bootstrap
20 was started in its own dir. Go one level up in order to reach the root */
21 if (!stat("AROSBootstrap", &st))
22 return chdir("..");
24 return 0;