Changes in uspace/app/init/init.c [1569a9b:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/init/init.c
r1569a9b rb7fd2a0 79 79 /** Report mount operation success */ 80 80 static bool mount_report(const char *desc, const char *mntpt, 81 const char *fstype, const char *dev, int rc)81 const char *fstype, const char *dev, errno_t rc) 82 82 { 83 83 switch (rc) { … … 125 125 opts = "restore"; 126 126 127 int rc = vfs_mount_path(ROOT_MOUNT_POINT, fstype, ROOT_DEVICE, opts,127 errno_t rc = vfs_mount_path(ROOT_MOUNT_POINT, fstype, ROOT_DEVICE, opts, 128 128 IPC_FLAG_BLOCKING, 0); 129 129 if (rc == EOK) … … 144 144 static bool mount_locfs(void) 145 145 { 146 int rc = vfs_mount_path(LOCFS_MOUNT_POINT, LOCFS_FS_TYPE, "", "",146 errno_t rc = vfs_mount_path(LOCFS_MOUNT_POINT, LOCFS_FS_TYPE, "", "", 147 147 IPC_FLAG_BLOCKING, 0); 148 148 return mount_report("Location service filesystem", LOCFS_MOUNT_POINT, … … 150 150 } 151 151 152 static int srv_startl(const char *path, ...)152 static errno_t srv_startl(const char *path, ...) 153 153 { 154 154 struct stat s; … … 174 174 task_id_t id; 175 175 task_wait_t wait; 176 int rc = task_spawn(&id, &wait, path, cnt, ap);176 errno_t rc = task_spawn(&id, &wait, path, cnt, ap); 177 177 va_end(ap); 178 178 … … 211 211 } 212 212 213 static int console(const char *isvc, const char *osvc)213 static errno_t console(const char *isvc, const char *osvc) 214 214 { 215 215 /* Wait for the input service to be ready */ 216 216 service_id_t service_id; 217 int rc = loc_service_get_id(isvc, &service_id, IPC_FLAG_BLOCKING);217 errno_t rc = loc_service_get_id(isvc, &service_id, IPC_FLAG_BLOCKING); 218 218 if (rc != EOK) { 219 219 printf("%s: Error waiting on %s (%s)\n", NAME, isvc, … … 233 233 } 234 234 235 static int compositor(const char *isvc, const char *name)235 static errno_t compositor(const char *isvc, const char *name) 236 236 { 237 237 /* Wait for the input service to be ready */ 238 238 service_id_t service_id; 239 int rc = loc_service_get_id(isvc, &service_id, IPC_FLAG_BLOCKING);239 errno_t rc = loc_service_get_id(isvc, &service_id, IPC_FLAG_BLOCKING); 240 240 if (rc != EOK) { 241 241 printf("%s: Error waiting on %s (%s)\n", NAME, isvc, … … 256 256 task_id_t id; 257 257 task_wait_t wait; 258 int rc = task_spawnl(&id, &wait, app, app, winreg, NULL);258 errno_t rc = task_spawnl(&id, &wait, app, app, winreg, NULL); 259 259 if (rc != EOK) { 260 260 printf("%s: Error spawning %s %s (%s)\n", NAME, app, … … 281 281 APP_GETTERM, svc, LOCFS_MOUNT_POINT, app); 282 282 283 int rc = task_spawnl(NULL, NULL, APP_GETTERM, APP_GETTERM, svc,283 errno_t rc = task_spawnl(NULL, NULL, APP_GETTERM, APP_GETTERM, svc, 284 284 LOCFS_MOUNT_POINT, "--msg", "--wait", "--", app, NULL); 285 285 if (rc != EOK) … … 290 290 APP_GETTERM, svc, LOCFS_MOUNT_POINT, app); 291 291 292 int rc = task_spawnl(NULL, NULL, APP_GETTERM, APP_GETTERM, svc,292 errno_t rc = task_spawnl(NULL, NULL, APP_GETTERM, APP_GETTERM, svc, 293 293 LOCFS_MOUNT_POINT, "--wait", "--", app, NULL); 294 294 if (rc != EOK) … … 300 300 static bool mount_tmpfs(void) 301 301 { 302 int rc = vfs_mount_path(TMPFS_MOUNT_POINT, TMPFS_FS_TYPE, "", "", 0, 0);302 errno_t rc = vfs_mount_path(TMPFS_MOUNT_POINT, TMPFS_FS_TYPE, "", "", 0, 0); 303 303 return mount_report("Temporary filesystem", TMPFS_MOUNT_POINT, 304 304 TMPFS_FS_TYPE, NULL, rc); … … 307 307 int main(int argc, char *argv[]) 308 308 { 309 int rc;309 errno_t rc; 310 310 311 311 info_print();
Note:
See TracChangeset
for help on using the changeset viewer.