00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __CONVEN_PATH_H__
00011 #define __CONVEN_PATH_H__ 1
00012 #include <libc.h>
00013
00014 #define PATHOPT_CATWD (1<<0u)
00015 #define PATHOPT_SIMPLIFY (1<<1u)
00016 #define PATHOPT_DEBUG (1<<2u)
00018 typedef int (*t_path_gate_fn)(char *npath, int *gate_returned);
00019
00020
00021
00022 char **path_split(char *path, char sep);
00023 int path_simplify(char *path);
00024 int userland_path_gate(char *npath, int *gate_returned);
00025 char *path_treat(char *path, u_int32_t opts, char *wd, t_path_gate_fn path_gate, int *gate_returned, char *s);
00026 #endif