Changeset 3fafe5e0 in mainline for uspace/lib
- Timestamp:
- 2018-04-27T14:15:03Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7148abf
- Parents:
- a2eb85d
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-26 17:14:26)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-27 14:15:03)
- Location:
- uspace/lib
- Files:
-
- 7 edited
-
c/arch/ia32/src/rtld/reloc.c (modified) (2 diffs)
-
c/generic/elf/elf_mod.c (modified) (2 diffs)
-
drv/generic/remote_usbhid.c (modified) (4 diffs)
-
label/src/gpt.c (modified) (1 diff)
-
posix/src/sys/mman.c (modified) (1 diff)
-
posix/src/time.c (modified) (4 diffs)
-
usbhid/src/hidreport.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/ia32/src/rtld/reloc.c
ra2eb85d r3fafe5e0 84 84 85 85 for (i = 0; i < rt_entries; ++i) { 86 // DPRINTF("symbol %d: ", i); 86 #if 0 87 DPRINTF("symbol %d: ", i); 88 #endif 87 89 r_offset = rt[i].r_offset; 88 90 r_info = rt[i].r_info; … … 100 102 101 103 if (sym->st_name != 0) { 102 // DPRINTF("rel_type: %x, rel_offset: 0x%x\n", rel_type, r_offset); 104 #if 0 105 DPRINTF("rel_type: %x, rel_offset: 0x%x\n", rel_type, r_offset); 106 #endif 103 107 sym_def = symbol_def_find(str_tab + sym->st_name, 104 108 m, ssf_none, &dest); 105 109 DPRINTF("dest name: '%s'\n", dest->dyn.soname); 106 //DPRINTF("dest bias: 0x%x\n", dest->bias);110 DPRINTF("dest bias: 0x%x\n", dest->bias); 107 111 if (sym_def) { 108 112 sym_addr = (uint32_t) 109 113 symbol_get_addr(sym_def, dest, NULL); 110 // DPRINTF("symbol definition found, addr=0x%x\n", sym_addr); 114 #if 0 115 DPRINTF("symbol definition found, addr=0x%x\n", sym_addr); 116 #endif 111 117 } else { 112 118 printf("Definition of '%s' not found.\n", -
uspace/lib/c/generic/elf/elf_mod.c
ra2eb85d r3fafe5e0 298 298 break; 299 299 case PT_SHLIB: 300 // case PT_LOPROC:301 // case PT_HIPROC:302 300 default: 303 301 DPRINTF("Segment p_type %d unknown.\n", entry->p_type); … … 397 395 return EE_OK; 398 396 399 // printf("set area flags to %d\n", flags);400 397 rc = as_area_change_flags(seg_ptr, flags); 401 398 if (rc != EOK) { -
uspace/lib/drv/generic/remote_usbhid.c
ra2eb85d r3fafe5e0 287 287 static void remote_usbhid_get_report_descriptor_length(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 288 288 static void remote_usbhid_get_report_descriptor(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 289 // static void remote_usbhid_(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *);290 289 291 290 /** Remote USB HID interface operations. */ … … 305 304 }; 306 305 307 //usbhc_iface_t *usb_iface = (usbhc_iface_t *) iface;308 309 306 310 307 void remote_usbhid_get_event_length(ddf_fun_t *fun, void *iface, … … 322 319 323 320 size_t len = hid_iface->get_event_length(fun); 324 // if (len == 0) {325 // len = EEMPTY;326 // }327 321 async_answer_1(chandle, EOK, len); 328 329 // if (len < 0) {330 // async_answer_0(chandle, len);331 // } else {332 // async_answer_1(chandle, EOK, len);333 // }334 322 } 335 323 … … 352 340 return; 353 341 } 354 // /* Check that length is even number. Truncate otherwise. */ 355 // if ((len % 2) == 1) { 356 // len--; 357 // } 342 358 343 if (len == 0) { 359 344 async_answer_0(data_chandle, EINVAL); -
uspace/lib/label/src/gpt.c
ra2eb85d r3fafe5e0 809 809 pte->start_lba = host2uint64_t_le(part->block0); 810 810 pte->end_lba = host2uint64_t_le(eblock); 811 //pte->attributes812 //pte->part_name811 //pte->attributes 812 //pte->part_name 813 813 return EOK; 814 814 } -
uspace/lib/posix/src/sys/mman.c
ra2eb85d r3fafe5e0 45 45 start = AS_AREA_ANY; 46 46 47 // if (!((flags & MAP_SHARED) ^ (flags & MAP_PRIVATE))) 48 // return MAP_FAILED; 47 #if 0 48 if (!((flags & MAP_SHARED) ^ (flags & MAP_PRIVATE))) 49 return MAP_FAILED; 50 #endif 49 51 50 52 if (!(flags & MAP_ANONYMOUS)) -
uspace/lib/posix/src/time.c
ra2eb85d r3fafe5e0 216 216 217 217 switch (clock_id) { 218 case CLOCK_REALTIME:219 res->tv_sec = 0;220 res->tv_nsec = 1000; /* Microsecond resolution. */221 return 0;222 default:223 errno = EINVAL;224 return -1;218 case CLOCK_REALTIME: 219 res->tv_sec = 0; 220 res->tv_nsec = 1000; /* Microsecond resolution. */ 221 return 0; 222 default: 223 errno = EINVAL; 224 return -1; 225 225 } 226 226 } … … 240 240 241 241 switch (clock_id) { 242 case CLOCK_REALTIME:243 gettimeofday(&tv, NULL);244 tp->tv_sec = tv.tv_sec;245 tp->tv_nsec = tv.tv_usec * 1000;246 return 0;247 default:248 errno = EINVAL;249 return -1;242 case CLOCK_REALTIME: 243 gettimeofday(&tv, NULL); 244 tp->tv_sec = tv.tv_sec; 245 tp->tv_nsec = tv.tv_usec * 1000; 246 return 0; 247 default: 248 errno = EINVAL; 249 return -1; 250 250 } 251 251 } … … 265 265 266 266 switch (clock_id) { 267 case CLOCK_REALTIME:268 // TODO: setting clock269 // FIXME: HelenOS doesn't actually support hardware270 // clock yet271 errno = EPERM;272 return -1;273 default:274 errno = EINVAL;275 return -1;267 case CLOCK_REALTIME: 268 // TODO: setting clock 269 // FIXME: HelenOS doesn't actually support hardware 270 // clock yet 271 errno = EPERM; 272 return -1; 273 default: 274 errno = EINVAL; 275 return -1; 276 276 } 277 277 } … … 293 293 294 294 switch (clock_id) { 295 case CLOCK_REALTIME:296 // TODO: interruptible sleep297 if (rqtp->tv_sec != 0) {298 async_sleep(rqtp->tv_sec);299 }300 if (rqtp->tv_nsec != 0) {301 async_usleep(rqtp->tv_nsec / 1000);302 }303 return 0;304 default:305 errno = EINVAL;306 return -1;295 case CLOCK_REALTIME: 296 // TODO: interruptible sleep 297 if (rqtp->tv_sec != 0) { 298 async_sleep(rqtp->tv_sec); 299 } 300 if (rqtp->tv_nsec != 0) { 301 async_usleep(rqtp->tv_nsec / 1000); 302 } 303 return 0; 304 default: 305 errno = EINVAL; 306 return -1; 307 307 } 308 308 } -
uspace/lib/usbhid/src/hidreport.c
ra2eb85d r3fafe5e0 172 172 } 173 173 174 // uint8_t *report_desc = NULL;175 // size_t report_size;176 177 174 errno_t rc = usb_hid_get_report_descriptor(dev, report_desc, report_size); 178 175
Note:
See TracChangeset
for help on using the changeset viewer.
