r232: Added 'prune' and 'system' find commands.
[rox-filer.git] / ROX-Filer / src / support.h
blob478c08a895f164fa3ecaea644427df8c40f00c91
1 /*
2 * $Id$
4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@ecs.soton.ac.uk>.
6 */
8 #ifndef _SUPPORT_H
9 #define _SUPPORT_H
11 #include <glib.h>
12 #include <sys/types.h>
14 #define PRETTY_SIZE_LIMIT 4096
15 #define TIME_FORMAT "%T %d %b %Y"
17 char *pathdup(char *path);
18 GString *make_path(char *dir, char *leaf);
19 char *our_host_name();
20 pid_t spawn(char **argv);
21 pid_t spawn_full(char **argv, char *dir);
22 void debug_free_string(void *data);
23 char *user_name(uid_t uid);
24 char *group_name(gid_t gid);
25 char *format_size(unsigned long size);
26 char *format_size_aligned(unsigned long size);
27 int fork_exec_wait(char **argv);
28 char *pretty_permissions(mode_t m);
29 gint applicable(uid_t uid, gid_t gid);
30 char *get_local_path(char *uri);
31 void close_on_exec(int fd, gboolean close);
32 void set_blocking(int fd, gboolean blocking);
33 char *pretty_time(time_t *time);
35 #endif /* _SUPPORT_H */