annotate rvinterf/etmsync/stddirs.c @ 1019:69d6da9ee188

doc/FC-on-Compal: update for voice calls working with the FR codec
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sat, 23 Apr 2016 05:03:38 +0000
parents de0505be800d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
914
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
1 /*
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
2 * An automated way to create the standard set of FFS directories
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
3 */
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
4
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
5 #include <sys/types.h>
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
6 #include <stdio.h>
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
7 #include <stdlib.h>
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
8 #include <string.h>
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
9 #include <strings.h>
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
10 #include "exitcodes.h"
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
11
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
12 static char *std_dir_list[] = {
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
13 "/gsm",
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
14 "/gsm/com",
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
15 "/gsm/rf",
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
16 "/gsm/rf/rx",
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
17 "/gsm/rf/tx",
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
18 "/pcm",
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
19 "/sys",
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
20 "/mmi",
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
21 "/var",
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
22 "/var/dbg",
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
23 "/aud",
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
24 "/etc",
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
25 0
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
26 };
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
27
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
28 create_std_dirs()
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
29 {
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
30 char **dirp;
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
31 int rc;
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
32
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
33 for (dirp = std_dir_list; *dirp; dirp++) {
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
34 rc = do_mkdir_existok(*dirp);
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
35 if (rc)
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
36 return(rc);
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
37 }
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
38 return(0);
de0505be800d fc-fsio: create-std-dirs implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
39 }