blob: 157db343695f268d80d2c61338a58db208cd6a96 (
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
|
/* 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);
void *xexec(char **argv);
int xopen(char *path, int flags, int mode);
FILE *xfopen(char *path, char *mode);
// 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);
|