blob: 4ac3f7bbd14242e2fa5fc2a8adcd0837f4e61fb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/* vi: set ts=4 :*/
// functions.c
void error_exit(char *msg, ...);
void strlcpy(char *dest, char *src, size_t size);
void *xmalloc(size_t size);
void *xzalloc(size_t size);
void xrealloc(void **ptr, size_t size);
void *xstrndup(char *s, size_t n);
char *xmsprintf(char *format, ...);
void *xexec(char **argv);
int xopen(char *path, int flags, int mode);
FILE *xfopen(char *path, char *mode);
char *xgetcwd(void);
char *find_in_path(char *path, char *filename);
// llist.c
void llist_free(void *list, void (*freeit)(void *data));
// getmountlist.c
struct mtab_list {
struct mtab_list *next;
char *dir;
char *device;
char type[0];
};
struct mtab_list *getmountlist(int die);
|