FreeCalypso > hg > freecalypso-tools
comparison rvinterf/etmsync/stddirs.c @ 0:e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 11 Jun 2016 00:13:35 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e7502631a0f9 |
---|---|
1 /* | |
2 * An automated way to create the standard set of FFS directories | |
3 */ | |
4 | |
5 #include <sys/types.h> | |
6 #include <stdio.h> | |
7 #include <stdlib.h> | |
8 #include <string.h> | |
9 #include <strings.h> | |
10 #include "exitcodes.h" | |
11 | |
12 static char *std_dir_list[] = { | |
13 "/gsm", | |
14 "/gsm/com", | |
15 "/gsm/rf", | |
16 "/gsm/rf/rx", | |
17 "/gsm/rf/tx", | |
18 "/pcm", | |
19 "/sys", | |
20 "/mmi", | |
21 "/var", | |
22 "/var/dbg", | |
23 "/aud", | |
24 "/etc", | |
25 0 | |
26 }; | |
27 | |
28 create_std_dirs() | |
29 { | |
30 char **dirp; | |
31 int rc; | |
32 | |
33 for (dirp = std_dir_list; *dirp; dirp++) { | |
34 rc = do_mkdir_existok(*dirp); | |
35 if (rc) | |
36 return(rc); | |
37 } | |
38 return(0); | |
39 } |