Changeset a53ed3a in mainline
- Timestamp:
- 2018-01-13T03:15:30Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36df27eb, 50f19b7
- Parents:
- b7fd2a0
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-13 03:15:24)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-13 03:15:30)
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ddi/ddi.c
rb7fd2a0 ra53ed3a 348 348 ddi_ioarg_t arg; 349 349 errno_t rc = copy_from_uspace(&arg, uspace_io_arg, sizeof(ddi_ioarg_t)); 350 if (rc != 0)350 if (rc != EOK) 351 351 return (sys_errno_t) rc; 352 352 … … 359 359 ddi_ioarg_t arg; 360 360 errno_t rc = copy_from_uspace(&arg, uspace_io_arg, sizeof(ddi_ioarg_t)); 361 if (rc != 0)361 if (rc != EOK) 362 362 return (sys_errno_t) rc; 363 363 -
kernel/generic/src/ipc/ops/datawrite.c
rb7fd2a0 ra53ed3a 58 58 call->buffer = (uint8_t *) malloc(size, 0); 59 59 errno_t rc = copy_from_uspace(call->buffer, (void *) src, size); 60 if (rc != 0) {60 if (rc != EOK) { 61 61 /* 62 62 * call->buffer will be cleaned up in ipc_call_free() at the -
kernel/generic/src/ipc/sysipc.c
rb7fd2a0 ra53ed3a 424 424 errno_t rc = copy_from_uspace(&call->data.args, &data->args, 425 425 sizeof(call->data.args)); 426 if (rc != 0) {426 if (rc != EOK) { 427 427 kobject_put(call->kobject); 428 428 kobject_put(kobj); … … 607 607 errno_t rc = copy_from_uspace(&newdata.args, &data->args, 608 608 sizeof(newdata.args)); 609 if (rc != 0)609 if (rc != EOK) 610 610 return (sys_errno_t) rc; 611 611 … … 697 697 errno_t rc = copy_from_uspace(&call->data.args, &data->args, 698 698 sizeof(call->data.args)); 699 if (rc != 0) {699 if (rc != EOK) { 700 700 /* 701 701 * Republish the capability so that the call does not get lost. -
kernel/generic/src/proc/program.c
rb7fd2a0 ra53ed3a 233 233 char namebuf[TASK_NAME_BUFLEN]; 234 234 errno_t rc = copy_from_uspace(namebuf, uspace_name, name_len); 235 if (rc != 0)235 if (rc != EOK) 236 236 return (sys_errno_t) rc; 237 237 … … 241 241 program_t prg; 242 242 rc = program_create_loader(&prg, namebuf); 243 if (rc != 0)243 if (rc != EOK) 244 244 return rc; 245 245 -
kernel/generic/src/proc/task.c
rb7fd2a0 ra53ed3a 394 394 395 395 errno_t rc = copy_from_uspace(namebuf, uspace_name, name_len); 396 if (rc != 0)396 if (rc != EOK) 397 397 return (sys_errno_t) rc; 398 398 … … 430 430 task_id_t taskid; 431 431 errno_t rc = copy_from_uspace(&taskid, uspace_taskid, sizeof(taskid)); 432 if (rc != 0)432 if (rc != EOK) 433 433 return (sys_errno_t) rc; 434 434 -
kernel/generic/src/proc/thread.c
rb7fd2a0 ra53ed3a 938 938 char namebuf[THREAD_NAME_BUFLEN]; 939 939 errno_t rc = copy_from_uspace(namebuf, uspace_name, name_len); 940 if (rc != 0)940 if (rc != EOK) 941 941 return (sys_errno_t) rc; 942 942 … … 951 951 952 952 rc = copy_from_uspace(kernel_uarg, uspace_uarg, sizeof(uspace_arg_t)); 953 if (rc != 0) {953 if (rc != EOK) { 954 954 free(kernel_uarg); 955 955 return (sys_errno_t) rc; … … 962 962 rc = copy_to_uspace(uspace_thread_id, &thread->tid, 963 963 sizeof(thread->tid)); 964 if (rc != 0) {964 if (rc != EOK) { 965 965 /* 966 966 * We have encountered a failure, but the thread -
kernel/generic/src/security/perm.c
rb7fd2a0 ra53ed3a 162 162 sysarg64_t taskid; 163 163 errno_t rc = copy_from_uspace(&taskid, uspace_taskid, sizeof(sysarg64_t)); 164 if (rc != 0)164 if (rc != EOK) 165 165 return (sys_errno_t) rc; 166 166 … … 183 183 sysarg64_t taskid; 184 184 errno_t rc = copy_from_uspace(&taskid, uspace_taskid, sizeof(sysarg64_t)); 185 if (rc != 0)185 if (rc != EOK) 186 186 return (sys_errno_t) rc; 187 187 -
kernel/generic/src/udebug/udebug_ops.c
rb7fd2a0 ra53ed3a 556 556 mutex_unlock(&TASK->udebug.lock); 557 557 558 if (rc != 0)558 if (rc != EOK) 559 559 return rc; 560 560 -
uspace/app/bdsh/exec.c
rb7fd2a0 ra53ed3a 118 118 free(tmp); 119 119 120 if (rc != 0) {120 if (rc != EOK) { 121 121 cli_error(CL_EEXEC, "%s: Cannot spawn `%s' (%s)", progname, cmd, 122 122 str_error(rc)); -
uspace/app/tetris/screen.c
rb7fd2a0 ra53ed3a 148 148 errno_t rc = console_get_color_cap(console, &ccap); 149 149 150 if (rc != 0)150 if (rc != EOK) 151 151 return false; 152 152 -
uspace/app/trace/trace.c
rb7fd2a0 ra53ed3a 131 131 */ 132 132 rc = loader_run(task_ldr); 133 if (rc != 0) {133 if (rc != EOK) { 134 134 printf("Error running program\n"); 135 135 exit(1); -
uspace/dist/src/c/demos/tetris/screen.c
rb7fd2a0 ra53ed3a 149 149 errno_t rc = console_get_color_cap(console, &ccap); 150 150 151 if (rc != 0)151 if (rc != EOK) 152 152 return false; 153 153 -
uspace/lib/c/generic/elf/elf_mod.c
rb7fd2a0 ra53ed3a 414 414 // printf("set area flags to %d\n", flags); 415 415 rc = as_area_change_flags(seg_ptr, flags); 416 if (rc != 0) {416 if (rc != EOK) { 417 417 DPRINTF("Failed to set memory area flags.\n"); 418 418 return EE_MEMORY; -
uspace/lib/c/generic/vfs/mtab.c
rb7fd2a0 ra53ed3a 95 95 96 96 rc = vfs_stat_path(child, &st); 97 if (rc != 0) {97 if (rc != EOK) { 98 98 free(child); 99 99 closedir(dir); … … 125 125 126 126 errno_t rc = vfs_stat_path("/", &st); 127 if (rc != 0)127 if (rc != EOK) 128 128 return rc; 129 129 -
uspace/lib/c/generic/vfs/vfs.c
rb7fd2a0 ra53ed3a 354 354 struct stat stat; 355 355 errno_t rc = vfs_stat(file, &stat); 356 if (rc != 0)356 if (rc != EOK) 357 357 return NULL; 358 358
Note:
See TracChangeset
for help on using the changeset viewer.