4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@users.sourceforge.net>.
11 #define PRETTY_SIZE_LIMIT 10000
12 #define TIME_FORMAT "%T %d %b %Y"
14 char *pathdup(char *path
);
15 GString
*make_path(char *dir
, char *leaf
);
16 char *our_host_name();
17 char *our_host_name_for_dnd();
18 pid_t
spawn(char **argv
);
19 pid_t
spawn_full(char **argv
, char *dir
);
20 void debug_free_string(void *data
);
21 char *user_name(uid_t uid
);
22 char *group_name(gid_t gid
);
23 char *format_size(unsigned long size
);
24 char *format_size_aligned(unsigned long size
);
25 gchar
*format_double_size(double size
);
26 int fork_exec_wait(char **argv
);
27 char *pretty_permissions(mode_t m
);
28 gint
applicable(uid_t uid
, gid_t gid
);
29 char *get_local_path(char *uri
);
30 void close_on_exec(int fd
, gboolean close
);
31 void set_blocking(int fd
, gboolean blocking
);
32 char *pretty_time(time_t *time
);
33 guchar
*copy_file(guchar
*from
, guchar
*to
);
34 guchar
*shell_escape(guchar
*word
);
35 gboolean
is_sub_dir(char *sub
, char *parent
);
36 gboolean
in_list(guchar
*item
, guchar
*list
);
37 GPtrArray
*split_path(guchar
*path
);
38 guchar
*get_relative_path(guchar
*from
, guchar
*to
);
39 void add_default_styles(void);
41 #endif /* _SUPPORT_H */