Changeset e135751 in mainline for uspace/lib
- Timestamp:
- 2011-03-02T12:00:10Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7a2f8ea0
- Parents:
- 51b46f2 (diff), 37b1651d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/lib
- Files:
-
- 3 added
- 5 edited
-
c/generic/loader.c (modified) (1 diff)
-
c/generic/vfs/vfs.c (modified) (3 diffs)
-
c/include/ipc/dev_iface.h (modified) (1 diff)
-
drv/Makefile (modified) (1 diff)
-
drv/generic/dev_iface.c (modified) (2 diffs)
-
drv/generic/remote_pci.c (added)
-
drv/include/pci_dev_iface.h (added)
-
drv/include/remote_pci.h (added)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/loader.c
r51b46f2 re135751 160 160 int rc = async_data_write_start(ldr->phone_id, (void *) pa, pa_len); 161 161 if (rc != EOK) { 162 free(pa); 162 163 async_wait_for(req, NULL); 163 164 return rc; -
uspace/lib/c/generic/vfs/vfs.c
r51b46f2 re135751 69 69 char *ncwd_path; 70 70 char *ncwd_path_nc; 71 size_t total_size; 71 72 72 73 fibril_mutex_lock(&cwd_mutex); … … 77 78 return NULL; 78 79 } 79 ncwd_path_nc = malloc(cwd_size + 1 + size + 1); 80 total_size = cwd_size + 1 + size + 1; 81 ncwd_path_nc = malloc(total_size); 80 82 if (!ncwd_path_nc) { 81 83 fibril_mutex_unlock(&cwd_mutex); 82 84 return NULL; 83 85 } 84 str_cpy(ncwd_path_nc, cwd_size + 1 + size + 1, cwd_path);86 str_cpy(ncwd_path_nc, total_size, cwd_path); 85 87 ncwd_path_nc[cwd_size] = '/'; 86 88 ncwd_path_nc[cwd_size + 1] = '\0'; 87 89 } else { 88 ncwd_path_nc = malloc(size + 1); 90 total_size = size + 1; 91 ncwd_path_nc = malloc(total_size); 89 92 if (!ncwd_path_nc) { 90 93 fibril_mutex_unlock(&cwd_mutex); … … 93 96 ncwd_path_nc[0] = '\0'; 94 97 } 95 str_append(ncwd_path_nc, cwd_size + 1 + size + 1, path);98 str_append(ncwd_path_nc, total_size, path); 96 99 ncwd_path = canonify(ncwd_path_nc, retlen); 97 100 if (!ncwd_path) { -
uspace/lib/c/include/ipc/dev_iface.h
r51b46f2 re135751 38 38 CHAR_DEV_IFACE, 39 39 40 /** Interface provided by any PCI device. */ 41 PCI_DEV_IFACE, 42 40 43 /** Interface provided by any USB device. */ 41 44 USB_DEV_IFACE, -
uspace/lib/drv/Makefile
r51b46f2 re135751 38 38 generic/remote_hw_res.c \ 39 39 generic/remote_usb.c \ 40 generic/remote_pci.c \ 40 41 generic/remote_usbhc.c 41 42 -
uspace/lib/drv/generic/dev_iface.c
r51b46f2 re135751 43 43 #include "remote_usb.h" 44 44 #include "remote_usbhc.h" 45 #include "remote_pci.h" 45 46 46 47 static iface_dipatch_table_t remote_ifaces = { … … 48 49 &remote_hw_res_iface, 49 50 &remote_char_dev_iface, 51 &remote_pci_iface, 50 52 &remote_usb_iface, 51 53 &remote_usbhc_iface
Note:
See TracChangeset
for help on using the changeset viewer.
