r339: The menu key bindings are now only saved if they actually changed.
[rox-filer.git] / ROX-Filer / src / support.h
bloba5431740cbdb9f228782ceb84063af2ce078566a
1 /*
2 * $Id$
4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@users.sourceforge.net>.
6 */
8 #ifndef _SUPPORT_H
9 #define _SUPPORT_H
11 #define PRETTY_SIZE_LIMIT 4096
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 pid_t spawn(char **argv);
18 pid_t spawn_full(char **argv, char *dir);
19 void debug_free_string(void *data);
20 char *user_name(uid_t uid);
21 char *group_name(gid_t gid);
22 char *format_size(unsigned long size);
23 char *format_size_aligned(unsigned long size);
24 int fork_exec_wait(char **argv);
25 char *pretty_permissions(mode_t m);
26 gint applicable(uid_t uid, gid_t gid);
27 char *get_local_path(char *uri);
28 void close_on_exec(int fd, gboolean close);
29 void set_blocking(int fd, gboolean blocking);
30 char *pretty_time(time_t *time);
31 guchar *copy_file(guchar *from, guchar *to);
32 guchar *shell_escape(guchar *word);
34 #endif /* _SUPPORT_H */