aboutsummaryrefslogtreecommitdiff
path: root/coreutils/mkdir.c
diff options
context:
space:
mode:
authorMark Whitley <markw@lineo.com>2000-12-07 19:56:48 +0000
committerMark Whitley <markw@lineo.com>2000-12-07 19:56:48 +0000
commitf57c944e09417edcbcd69f2b01b937cadef39db2 (patch)
treea55822621d54bd82c54e272fa986e45698fea0f1 /coreutils/mkdir.c
parent7b5c16ebe5f1b057603cf1c0b0187be418725c42 (diff)
downloadbusybox-w32-f57c944e09417edcbcd69f2b01b937cadef39db2.tar.gz
busybox-w32-f57c944e09417edcbcd69f2b01b937cadef39db2.tar.bz2
busybox-w32-f57c944e09417edcbcd69f2b01b937cadef39db2.zip
Changed names of functions in utility.c and all affected files, to make
compliant with the style guide. Everybody rebuild your tags file!
Diffstat (limited to 'coreutils/mkdir.c')
-rw-r--r--coreutils/mkdir.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/mkdir.c b/coreutils/mkdir.c
index c950847dc..92357a665 100644
--- a/coreutils/mkdir.c
+++ b/coreutils/mkdir.c
@@ -50,7 +50,7 @@ extern int mkdir_main(int argc, char **argv)
50 /* Find the specified modes */ 50 /* Find the specified modes */
51 mode = 0; 51 mode = 0;
52 if (parse_mode(*(++argv), &mode) == FALSE) { 52 if (parse_mode(*(++argv), &mode) == FALSE) {
53 errorMsg("Unknown mode: %s\n", *argv); 53 error_msg("Unknown mode: %s\n", *argv);
54 return EXIT_FAILURE; 54 return EXIT_FAILURE;
55 } 55 }
56 /* Set the umask for this process so it doesn't 56 /* Set the umask for this process so it doesn't
@@ -79,18 +79,18 @@ extern int mkdir_main(int argc, char **argv)
79 char buf[BUFSIZ + 1]; 79 char buf[BUFSIZ + 1];
80 80
81 if (strlen(*argv) > BUFSIZ - 1) { 81 if (strlen(*argv) > BUFSIZ - 1) {
82 errorMsg(name_too_long); 82 error_msg(name_too_long);
83 return EXIT_FAILURE; 83 return EXIT_FAILURE;
84 } 84 }
85 strcpy(buf, *argv); 85 strcpy(buf, *argv);
86 status = stat(buf, &statBuf); 86 status = stat(buf, &statBuf);
87 if (parentFlag == FALSE && status != -1 && errno != ENOENT) { 87 if (parentFlag == FALSE && status != -1 && errno != ENOENT) {
88 errorMsg("%s: File exists\n", buf); 88 error_msg("%s: File exists\n", buf);
89 return EXIT_FAILURE; 89 return EXIT_FAILURE;
90 } 90 }
91 if (parentFlag == TRUE) { 91 if (parentFlag == TRUE) {
92 strcat(buf, "/"); 92 strcat(buf, "/");
93 createPath(buf, mode); 93 create_path(buf, mode);
94 } else { 94 } else {
95 if (mkdir(buf, mode) != 0 && parentFlag == FALSE) { 95 if (mkdir(buf, mode) != 0 && parentFlag == FALSE) {
96 perror(buf); 96 perror(buf);