Changeset 1569a9b in mainline for uspace/app
- Timestamp:
- 2017-12-24T16:40:33Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 48fd597
- Parents:
- a1026da
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-24 16:40:33)
- git-committer:
- GitHub <noreply@…> (2017-12-24 16:40:33)
- Location:
- uspace/app
- Files:
-
- 8 edited
-
bdsh/cmds/modules/cmp/cmp.c (modified) (1 diff)
-
bdsh/cmds/modules/cp/cp.c (modified) (4 diffs)
-
bdsh/input.c (modified) (3 diffs)
-
fontviewer/fontviewer.c (modified) (1 diff)
-
init/init.c (modified) (1 diff)
-
pkg/pkg.c (modified) (1 diff)
-
trace/ipcp.c (modified) (1 diff)
-
trace/trace.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cmp/cmp.c
ra1026da r1569a9b 101 101 memcmp(buffer[0], buffer[1], offset[0]) != 0) { 102 102 printf("Return 1\n"); 103 rc = 1;103 rc = EBUSY; 104 104 goto end; 105 105 } -
uspace/app/bdsh/cmds/modules/cp/cp.c
ra1026da r1569a9b 266 266 267 267 /* call copy_file and exit */ 268 rc = (copy_file(src, dest_path, blen, vb) < 0); 268 if (copy_file(src, dest_path, blen, vb) < 0) { 269 rc = EIO; 270 } 269 271 270 272 } else if (src_type == TYPE_DIR) { … … 434 436 if (rc != EOK) { 435 437 printf("\nError copying %s: %s\n", src, str_error(rc)); 436 return rc;438 return -1; 437 439 } 438 440 … … 442 444 if (buff) 443 445 free(buff); 444 return rc; 446 if (rc != EOK) { 447 return -1; 448 } else { 449 return 0; 450 } 445 451 } 446 452 … … 473 479 int force = 0, interactive = 0; 474 480 int c, opt_ind; 475 int 64_tret;481 int ret; 476 482 477 483 con = console_init(stdin, stdout); -
uspace/app/bdsh/input.c
ra1026da r1569a9b 73 73 74 74 char *cmd[WORD_MAX]; 75 int rc = 0;75 int rc = EOK; 76 76 tokenizer_t tok; 77 77 unsigned int i, pipe_count, processed_pipes; … … 82 82 if (usr->line == NULL) { 83 83 free(tokens_buf); 84 return CL_EFAIL;84 return EINVAL; 85 85 } 86 86 … … 198 198 } 199 199 200 rc = run_command(cmd, usr, &new_iostate); 200 if (run_command(cmd, usr, &new_iostate) == 0) { 201 rc = EOK; 202 } else { 203 rc = EINVAL; 204 } 201 205 202 206 finit_with_files: -
uspace/app/fontviewer/fontviewer.c
ra1026da r1569a9b 149 149 va_end(args); 150 150 151 if (ret <= 0) 152 return ret; 153 154 drawctx_set_source(drawctx, source); 155 drawctx_set_font(drawctx, font); 156 drawctx_print(drawctx, str, x, y); 157 158 free(str); 151 if (ret >= 0) { 152 drawctx_set_source(drawctx, source); 153 drawctx_set_font(drawctx, font); 154 drawctx_print(drawctx, str, x, y); 155 156 free(str); 157 } 159 158 160 159 return ret; -
uspace/app/init/init.c
ra1026da r1569a9b 208 208 path, retval); 209 209 210 return retval ;210 return retval == 0 ? EOK : EPARTY; 211 211 } 212 212 -
uspace/app/pkg/pkg.c
ra1026da r1569a9b 96 96 } 97 97 98 return retval ;98 return retval == 0 ? EOK : EPARTY; 99 99 } 100 100 -
uspace/app/trace/ipcp.c
ra1026da r1569a9b 281 281 if (oper->rv_type != V_VOID) { 282 282 putchar(' '); 283 val_print( retval, oper->rv_type);283 val_print((sysarg_t) retval, oper->rv_type); 284 284 } 285 285 -
uspace/app/trace/trace.c
ra1026da r1569a9b 260 260 261 261 262 static void print_sc_retval( int retval, val_type_t val_type)262 static void print_sc_retval(sysarg_t retval, val_type_t val_type) 263 263 { 264 264 printf(" -> "); … … 296 296 IPC_SET_ARG5(call, 0); 297 297 298 ipcp_call_out(phoneid, &call, sc_rc);299 } 300 301 static void sc_ipc_call_async_slow(sysarg_t *sc_args, sysarg_t sc_rc)298 ipcp_call_out(phoneid, &call, 0); 299 } 300 301 static void sc_ipc_call_async_slow(sysarg_t *sc_args, int sc_rc) 302 302 { 303 303 ipc_call_t call; 304 304 int rc; 305 305 306 if (sc_rc != (sysarg_t)EOK)306 if (sc_rc != EOK) 307 307 return; 308 308 … … 310 310 rc = udebug_mem_read(sess, &call.args, sc_args[1], sizeof(call.args)); 311 311 312 if (rc >= 0) {313 ipcp_call_out(sc_args[0], &call, sc_rc);312 if (rc == EOK) { 313 ipcp_call_out(sc_args[0], &call, 0); 314 314 } 315 315 } … … 581 581 582 582 if (!console_get_event(console, &event)) 583 return -1;583 return EINVAL; 584 584 585 585 if (event.type == CEV_KEY) {
Note:
See TracChangeset
for help on using the changeset viewer.
