FreeCalypso > hg > freecalypso-sw
comparison rvinterf/etmsync/stddirs.c @ 914:de0505be800d
fc-fsio: create-std-dirs implemented
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Tue, 08 Sep 2015 18:08:03 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
913:091ebd46a9cc | 914:de0505be800d |
---|---|
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 } |