Changeset 095003a8 in mainline for uspace/app/bdsh
- Timestamp:
- 2009-04-09T22:32:23Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f4b1535
- Parents:
- 7afb4a5
- Location:
- uspace/app/bdsh
- Files:
-
- 5 edited
-
cmds/modules/ls/ls.c (modified) (1 diff)
-
cmds/modules/mkdir/mkdir.c (modified) (1 diff)
-
cmds/modules/touch/touch.c (modified) (1 diff)
-
exec.c (modified) (2 diffs)
-
input.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/ls/ls.c
r7afb4a5 r095003a8 183 183 getcwd(buff, PATH_MAX); 184 184 else 185 str ncpy(buff, argv[1], PATH_MAX);185 str_ncpy(buff, argv[1], PATH_MAX); 186 186 187 187 scope = ls_scope(buff); -
uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
r7afb4a5 r095003a8 94 94 /* Its a good idea to allocate path, plus we (may) need a copy of 95 95 * path to tokenize if parents are specified */ 96 if (NULL == (tmp = str dup(path))) {96 if (NULL == (tmp = str_dup(path))) { 97 97 cli_error(CL_ENOMEM, "%s: path too big?", cmdname); 98 98 return 1; -
uspace/app/bdsh/cmds/modules/touch/touch.c
r7afb4a5 r095003a8 81 81 82 82 for (i = 1; i < argc; i ++) { 83 buff = str dup(argv[i]);83 buff = str_dup(argv[i]); 84 84 dirp = opendir(buff); 85 85 if (dirp) { -
uspace/app/bdsh/exec.c
r7afb4a5 r095003a8 81 81 } 82 82 83 path_tok = str dup(PATH);83 path_tok = str_dup(PATH); 84 84 85 85 /* Extract the PATH env to a path[] array */ … … 115 115 char *tmp; 116 116 117 tmp = str dup(find_command(cmd));117 tmp = str_dup(find_command(cmd)); 118 118 free(found); 119 119 -
uspace/app/bdsh/input.c
r7afb4a5 r095003a8 62 62 return CL_EFAIL; 63 63 64 tmp = str dup(usr->line);64 tmp = str_dup(usr->line); 65 65 66 66 cmd[n] = strtok(tmp, " "); … … 156 156 if (str_cmp(line, "") == 0 || str_cmp(line, "\n") == 0) 157 157 return; 158 usr->line = str dup(line);158 usr->line = str_dup(line); 159 159 160 160 return;
Note:
See TracChangeset
for help on using the changeset viewer.
