Changeset 28be7fa in mainline
- Timestamp:
- 2010-02-03T13:55:36Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 472c09d
- Parents:
- 210e50a
- Location:
- uspace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/init/init.c
r210e50a r28be7fa 171 171 { 172 172 char *argv[3]; 173 char hid_in[ MAX_DEVICE_NAME];173 char hid_in[DEVMAP_NAME_MAXLEN]; 174 174 int rc; 175 175 176 snprintf(hid_in, MAX_DEVICE_NAME, "%s/%s", DEVFS_MOUNT_POINT, dev);176 snprintf(hid_in, DEVMAP_NAME_MAXLEN, "%s/%s", DEVFS_MOUNT_POINT, dev); 177 177 178 178 printf(NAME ": Spawning %s with %s\n", SRV_CONSOLE, hid_in); … … 196 196 { 197 197 char *argv[4]; 198 char term[ MAX_DEVICE_NAME];198 char term[DEVMAP_NAME_MAXLEN]; 199 199 int rc; 200 200 201 snprintf(term, MAX_DEVICE_NAME, "%s/%s", DEVFS_MOUNT_POINT, dev);201 snprintf(term, DEVMAP_NAME_MAXLEN, "%s/%s", DEVFS_MOUNT_POINT, dev); 202 202 203 203 printf(NAME ": Spawning %s with %s %s\n", APP_GETTERM, term, app); -
uspace/app/init/init.h
r210e50a r28be7fa 39 39 #define NAME "init" 40 40 41 #define MAX_DEVICE_NAME 3242 43 41 #endif 44 42 -
uspace/lib/libc/generic/vfs/vfs.c
r210e50a r28be7fa 120 120 const char *opts, unsigned int flags) 121 121 { 122 int res;123 ipcarg_t rc;124 ipcarg_t rc_orig;125 aid_t req;126 dev_handle_t dev_handle;127 122 int null_id = -1; 128 123 char null[DEVMAP_NAME_MAXLEN]; … … 140 135 } 141 136 142 res = devmap_device_get_handle(fqdn, &dev_handle, flags); 137 dev_handle_t dev_handle; 138 int res = devmap_device_get_handle(fqdn, &dev_handle, flags); 143 139 if (res != EOK) { 144 140 if (null_id != -1) … … 161 157 vfs_connect(); 162 158 163 req = async_send_2(vfs_phone, VFS_IN_MOUNT, dev_handle, flags, NULL); 164 rc = async_data_write_start(vfs_phone, (void *) mpa, mpa_size); 159 ipcarg_t rc_orig; 160 aid_t req = async_send_2(vfs_phone, VFS_IN_MOUNT, dev_handle, flags, NULL); 161 ipcarg_t rc = async_data_write_start(vfs_phone, (void *) mpa, mpa_size); 165 162 if (rc != EOK) { 166 163 async_wait_for(req, &rc_orig);
Note:
See TracChangeset
for help on using the changeset viewer.