#ifndef __fs_h
#define __fs_h

int fs_make_boot_relative(char *source,char **dest);
int fs_leafname_from_path(char **leaf_name,char *path);
int fs_pathprefix_from_path(char **prefix,char *path);
int fs_canon(char *filename,char **canon_name);
int fs_canon_nomoan(char *filename,char **canon_name);
void fs_filename_set_pinboardpath(char **output);
int upcall_make_filename(char *fs,char *path,char **output);
void fs_boot_application(char *path);

/* get object type (0,1,2 - not found/file/dir)
   and filetype (0x1000 for directory, 0x2000 for application, -1 for load/exec
   and original filetype *not* 0x1000 for image file, unless it's an application itself... */

_kernel_oserror *fs_get_types(char *file,int *objtype,int *filetype);

#endif
