r194: Applied Bernard Jungen's patch, with a few modifications:
[rox-filer.git] / ROX-Filer / src / support.h
blob9cd1da7539929beb1e308a5f01efe3799a18b335
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
16 typedef enum {NONE} SpawnFlags;
18 char *pathdup(char *path);
19 GString *make_path(char *dir, char *leaf);
20 char *our_host_name();
21 pid_t spawn(char **argv);
22 pid_t spawn_full(char **argv, char *dir);
23 void debug_free_string(void *data);
24 char *user_name(uid_t uid);
25 char *group_name(gid_t gid);
26 char *format_size(unsigned long size);
27 char *format_size_aligned(unsigned long size);
28 int fork_exec_wait(char **argv);
29 char *pretty_permissions(uid_t uid, gid_t gid, mode_t m);
31 #endif /* _SUPPORT_H */