Changeset 095003a8 in mainline for uspace/app
- 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
- Files:
-
- 7 edited
-
bdsh/cmds/modules/ls/ls.c (modified) (1 diff)
-
bdsh/cmds/modules/mkdir/mkdir.c (modified) (1 diff)
-
bdsh/cmds/modules/touch/touch.c (modified) (1 diff)
-
bdsh/exec.c (modified) (2 diffs)
-
bdsh/input.c (modified) (2 diffs)
-
tetris/scores.c (modified) (2 diffs)
-
tetris/tetris.c (modified) (1 diff)
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; -
uspace/app/tetris/scores.c
r7afb4a5 r095003a8 132 132 moveto(10 , 10); 133 133 puts("Insert your name: "); 134 str ncpy(scores[NUMSPOTS - 1].hs_name, "Player", MAXLOGNAME);134 str_ncpy(scores[NUMSPOTS - 1].hs_name, "Player", MAXLOGNAME); 135 135 i = 6; off = 6; 136 136 … … 196 196 int i; 197 197 for(i = 0; i < NUMSPOTS; i++) { 198 str ncpy(scores[i].hs_name, "HelenOS Team", MAXLOGNAME);198 str_ncpy(scores[i].hs_name, "HelenOS Team", MAXLOGNAME); 199 199 scores[i].hs_score = (NUMSPOTS - i) * 200; 200 200 scores[i].hs_level = (i + 1 > MAXLEVEL?MAXLEVEL:i + 1); -
uspace/app/tetris/tetris.c
r7afb4a5 r095003a8 312 312 } 313 313 if (keys[i] == ' ') 314 str ncpy(key_write[i], "<space>", sizeof key_write[i]);314 str_ncpy(key_write[i], "<space>", sizeof key_write[i]); 315 315 else { 316 316 key_write[i][0] = keys[i];
Note:
See TracChangeset
for help on using the changeset viewer.
