error 238 bsp/boot/common/elf.c int nr_reloc, error; error 256 bsp/boot/common/elf.c error = relocate_section_rel(symtab, error 262 bsp/boot/common/elf.c error = relocate_section_rela(symtab, error 268 bsp/boot/common/elf.c error = -1; error 271 bsp/boot/common/elf.c return error; error 584 bsp/drv/dev/base/kd.c int error = 0; error 588 bsp/drv/dev/base/kd.c error = (cmd_table[i].func)(argc, argv); error 594 bsp/drv/dev/base/kd.c error = KERR_SYNTAX; error 596 bsp/drv/dev/base/kd.c if (error > 0 && error <= KERR_MAX) error 597 bsp/drv/dev/base/kd.c kd_error(error); error 599 bsp/drv/dev/base/kd.c if (error == -1) error 133 bsp/drv/dev/base/pm.c int error = 0; error 167 bsp/drv/dev/base/pm.c error = EINVAL; error 227 bsp/drv/dev/base/pm.c return error; error 275 bsp/drv/dev/base/pm.c int error; error 280 bsp/drv/dev/base/pm.c error = device_broadcast(DEVCTL_PM_POWERDOWN, NULL, 1); error 281 bsp/drv/dev/base/pm.c if (error) { error 283 bsp/drv/dev/base/pm.c return error; error 400 bsp/drv/dev/base/pm.c int error; error 404 bsp/drv/dev/base/pm.c error = pm_resume(); error 407 bsp/drv/dev/base/pm.c error = pm_suspend(); error 410 bsp/drv/dev/base/pm.c error = pm_poweroff(); error 413 bsp/drv/dev/base/pm.c error = pm_reboot(); error 416 bsp/drv/dev/base/pm.c error = EINVAL; error 418 bsp/drv/dev/base/pm.c return error; error 224 bsp/drv/dev/block/fdd.c DPRINTF(("fdc: error=%d\n", error)); error 227 bsp/drv/dev/block/fdd.c irp->error = error; error 521 bsp/drv/dev/block/fdd.c int error; error 531 bsp/drv/dev/block/fdd.c irp->error = 0; error 540 bsp/drv/dev/block/fdd.c error = EINTR; error 542 bsp/drv/dev/block/fdd.c error = irp->error; error 545 bsp/drv/dev/block/fdd.c return error; error 562 bsp/drv/dev/block/fdd.c int track, sect, error; error 576 bsp/drv/dev/block/fdd.c error = 0; error 587 bsp/drv/dev/block/fdd.c error = fdd_rw(sc, IO_READ, sc->rbuf, FDG_SECTORS, error 589 bsp/drv/dev/block/fdd.c if (error != 0) { error 601 bsp/drv/dev/block/fdd.c return error; error 618 bsp/drv/dev/block/fdd.c int track, sect, error; error 632 bsp/drv/dev/block/fdd.c error = 0; error 648 bsp/drv/dev/block/fdd.c error = fdd_rw(sc, IO_WRITE, wbuf, 1, blkno); error 649 bsp/drv/dev/block/fdd.c if (error != 0) { error 658 bsp/drv/dev/block/fdd.c DPRINTF(("fdd_write: error=%d\n", error)); error 659 bsp/drv/dev/block/fdd.c return error; error 327 bsp/drv/dev/cpufreq/cpufreq.c int error = 0; error 346 bsp/drv/dev/cpufreq/cpufreq.c return error; error 182 bsp/drv/dev/rtc/rtc.c int error = 0; error 202 bsp/drv/dev/rtc/rtc.c error = EINVAL; error 207 bsp/drv/dev/rtc/rtc.c return error; error 61 bsp/drv/include/ddi.h int error; /* error status */ error 89 include/sys/cdefs.h #define __packed error: no __packed for this compiler error 192 sys/ipc/msg.c int rc, error = 0; error 233 sys/ipc/msg.c error = EINVAL; /* Object has been deleted */ error 237 sys/ipc/msg.c error = EINTR; /* Got exception */ error 245 sys/ipc/msg.c return error; error 278 sys/ipc/msg.c return error; error 85 sys/ipc/object.c int error; error 90 sys/ipc/object.c error = copyinstr(name, str, MAXOBJNAME); error 91 sys/ipc/object.c if (error) error 92 sys/ipc/object.c return error; error 144 sys/ipc/object.c int error; error 146 sys/ipc/object.c error = copyinstr(name, str, MAXOBJNAME); error 147 sys/ipc/object.c if (error) error 148 sys/ipc/object.c return error; error 124 sys/kern/debug.c int s, error = 0; error 145 sys/kern/debug.c error = EFAULT; error 152 sys/kern/debug.c return error; error 161 sys/kern/debug.c int error = 0; error 170 sys/kern/debug.c error = copyout(&size, data, sizeof(size)); error 174 sys/kern/debug.c error = getlog(data); error 199 sys/kern/debug.c error = EINVAL; error 202 sys/kern/debug.c return error; error 304 sys/kern/device.c int error; error 306 sys/kern/device.c error = copyinstr(name, str, MAXDEVNAME); error 307 sys/kern/device.c if (error) error 308 sys/kern/device.c return error; error 315 sys/kern/device.c error = device_reference(dev); error 316 sys/kern/device.c if (error) { error 318 sys/kern/device.c return error; error 324 sys/kern/device.c error = (*ops->open)(dev, mode); error 325 sys/kern/device.c if (!error) error 326 sys/kern/device.c error = copyout(&dev, devp, sizeof(dev)); error 329 sys/kern/device.c return error; error 342 sys/kern/device.c int error; error 344 sys/kern/device.c if ((error = device_reference(dev)) != 0) error 345 sys/kern/device.c return error; error 349 sys/kern/device.c error = (*ops->close)(dev); error 352 sys/kern/device.c return error; error 366 sys/kern/device.c int error; error 371 sys/kern/device.c if ((error = device_reference(dev)) != 0) error 372 sys/kern/device.c return error; error 381 sys/kern/device.c error = (*ops->read)(dev, buf, &count, blkno); error 382 sys/kern/device.c if (!error) error 383 sys/kern/device.c error = copyout(&count, nbyte, sizeof(count)); error 386 sys/kern/device.c return error; error 399 sys/kern/device.c int error; error 404 sys/kern/device.c if ((error = device_reference(dev)) != 0) error 405 sys/kern/device.c return error; error 414 sys/kern/device.c error = (*ops->write)(dev, buf, &count, blkno); error 415 sys/kern/device.c if (!error) error 416 sys/kern/device.c error = copyout(&count, nbyte, sizeof(count)); error 419 sys/kern/device.c return error; error 433 sys/kern/device.c int error; error 435 sys/kern/device.c if ((error = device_reference(dev)) != 0) error 436 sys/kern/device.c return error; error 440 sys/kern/device.c error = (*ops->ioctl)(dev, cmd, arg); error 443 sys/kern/device.c return error; error 454 sys/kern/device.c int error; error 461 sys/kern/device.c error = (*ops->devctl)(dev, cmd, arg); error 463 sys/kern/device.c return error; error 484 sys/kern/device.c int error, retval = 0; error 497 sys/kern/device.c error = (*ops->devctl)(dev, cmd, arg); error 498 sys/kern/device.c if (error) { error 500 sys/kern/device.c dev->name, error, cmd)); error 504 sys/kern/device.c retval = error; error 522 sys/kern/device.c int error = ESRCH; error 531 sys/kern/device.c error = 0; error 536 sys/kern/device.c return error; error 152 sys/kern/exception.c int error; error 164 sys/kern/exception.c error = exception_post(task, excno); error 166 sys/kern/exception.c return error; error 626 sys/kern/sched.c int error = 0; error 635 sys/kern/sched.c error = EINVAL; error 638 sys/kern/sched.c return error; error 58 sys/kern/system.c int error = 0; error 73 sys/kern/system.c error = thread_info(buf); error 76 sys/kern/system.c error = device_info(buf); error 79 sys/kern/system.c error = task_info(buf); error 82 sys/kern/system.c error = vm_info(buf); error 85 sys/kern/system.c error = irq_info(buf); error 88 sys/kern/system.c error = EINVAL; error 92 sys/kern/system.c return error; error 101 sys/kern/system.c int error; error 139 sys/kern/system.c error = copyin(buf, &infobuf, bufsz); error 140 sys/kern/system.c if (!error) { error 141 sys/kern/system.c error = sysinfo(type, &infobuf); error 142 sys/kern/system.c if (!error) { error 143 sys/kern/system.c error = copyout(&infobuf, buf, bufsz); error 147 sys/kern/system.c return error; error 180 sys/kern/system.c int error = EINVAL; error 186 sys/kern/system.c error = dbgctl(cmd, data); error 191 sys/kern/system.c error = ESRCH; error 195 sys/kern/system.c error = 0; error 198 sys/kern/system.c return error; error 308 sys/kern/task.c int error; error 323 sys/kern/task.c error = copyinstr(name, str, MAXTASKNAME); error 324 sys/kern/task.c if (error) { error 326 sys/kern/task.c return error; error 364 sys/kern/task.c int error = 0; error 376 sys/kern/task.c error = EPERM; error 379 sys/kern/task.c return error; error 480 sys/kern/task.c int i, error = 0; error 489 sys/kern/task.c if ((error = task_create(&kernel_task, VM_NEW, &task)) != 0) error 491 sys/kern/task.c if ((error = vm_load(task->map, mod, &stack)) != 0) error 506 sys/kern/task.c if ((error = thread_create(task, &t)) != 0) error 509 sys/kern/task.c error = thread_load(t, (void (*)(void))mod->entry, sp); error 510 sys/kern/task.c if (error) error 518 sys/kern/task.c if (error) { error 519 sys/kern/task.c DPRINTF(("task_bootstrap: error=%d\n", error)); error 302 sys/kern/thread.c int error = 0; error 327 sys/kern/thread.c error = EINVAL; error 332 sys/kern/thread.c error = EINVAL; error 350 sys/kern/thread.c error = EPERM; error 370 sys/kern/thread.c error = EINVAL; error 375 sys/kern/thread.c error = EINVAL; error 378 sys/kern/thread.c error = sched_setpolicy(t, policy); error 382 sys/kern/thread.c error = EINVAL; error 386 sys/kern/thread.c return error; error 87 sys/mem/vm.c int error; error 109 sys/mem/vm.c error = do_allocate(task->map, &uaddr, size, anywhere); error 110 sys/mem/vm.c if (!error) { error 112 sys/mem/vm.c error = EFAULT; error 115 sys/mem/vm.c return error; error 184 sys/mem/vm.c int error; error 200 sys/mem/vm.c error = do_free(task->map, addr); error 203 sys/mem/vm.c return error; error 249 sys/mem/vm.c int error; error 269 sys/mem/vm.c error = do_attribute(task->map, addr, attr); error 272 sys/mem/vm.c return error; error 359 sys/mem/vm.c int error; error 379 sys/mem/vm.c error = do_map(target->map, addr, size, alloc); error 382 sys/mem/vm.c return error; error 678 sys/mem/vm.c int error; error 695 sys/mem/vm.c error = do_allocate(map, &text, mod->textsz, 0); error 696 sys/mem/vm.c if (error) error 697 sys/mem/vm.c return error; error 699 sys/mem/vm.c error = do_attribute(map, text, PROT_READ); error 700 sys/mem/vm.c if (error) error 701 sys/mem/vm.c return error; error 707 sys/mem/vm.c error = do_allocate(map, &data, mod->datasz + mod->bsssz, 0); error 708 sys/mem/vm.c if (error) error 709 sys/mem/vm.c return error; error 719 sys/mem/vm.c error = do_allocate(map, stack, DFLSTKSZ, 0); error 720 sys/mem/vm.c if (error) error 721 sys/mem/vm.c return error; error 80 sys/mem/vm_nommu.c int error; error 102 sys/mem/vm_nommu.c error = do_allocate(task->map, &uaddr, size, anywhere); error 103 sys/mem/vm_nommu.c if (!error) { error 105 sys/mem/vm_nommu.c error = EFAULT; error 108 sys/mem/vm_nommu.c return error; error 160 sys/mem/vm_nommu.c int error; error 176 sys/mem/vm_nommu.c error = do_free(task->map, addr); error 179 sys/mem/vm_nommu.c return error; error 220 sys/mem/vm_nommu.c int error; error 240 sys/mem/vm_nommu.c error = do_attribute(task->map, addr, attr); error 243 sys/mem/vm_nommu.c return error; error 293 sys/mem/vm_nommu.c int error; error 313 sys/mem/vm_nommu.c error = do_map(target->map, addr, size, alloc); error 316 sys/mem/vm_nommu.c return error; error 140 sys/sync/cond.c int error, rc; error 147 sys/sync/cond.c if ((error = cond_init(cp)) != 0) { error 149 sys/sync/cond.c return error; error 159 sys/sync/cond.c if ((error = mutex_unlock(mp)) != 0) { error 161 sys/sync/cond.c return error; error 167 sys/sync/cond.c error = EINTR; error 171 sys/sync/cond.c if (error == 0) error 172 sys/sync/cond.c error = mutex_lock(mp); error 174 sys/sync/cond.c return error; error 190 sys/sync/mutex.c int error, rc; error 193 sys/sync/mutex.c if ((error = mutex_copyin(mp, &m)) != 0) { error 195 sys/sync/mutex.c return error; error 217 sys/sync/mutex.c if ((error = prio_inherit(curthread)) != 0) { error 220 sys/sync/mutex.c return error; error 244 sys/sync/mutex.c int error; error 247 sys/sync/mutex.c if ((error = mutex_copyin(mp, &m)) != 0) { error 249 sys/sync/mutex.c return error; error 257 sys/sync/mutex.c error = EBUSY; error 265 sys/sync/mutex.c return error; error 276 sys/sync/mutex.c int error; error 279 sys/sync/mutex.c if ((error = mutex_copyin(mp, &m)) != 0) { error 281 sys/sync/mutex.c return error; error 386 sys/sync/mutex.c int error; error 396 sys/sync/mutex.c if ((error = mutex_init(ump)) != 0) error 397 sys/sync/mutex.c return error; error 165 sys/sync/sem.c int rc, error = 0; error 177 sys/sync/sem.c error = ETIMEDOUT; error 181 sys/sync/sem.c error = EINTR; error 190 sys/sync/sem.c if (!error) error 195 sys/sync/sem.c return error; error 94 usr/bin/sh/sh.c error(" %d: %s", pid, sys_siglist[signo]); error 96 usr/bin/sh/sh.c error(" %d: Signal %d", pid, signo); error 128 usr/bin/sh/sh.c error("Cannot fork"); error 139 usr/bin/sh/sh.c error("Cannot redirect %d", i); error 167 usr/bin/sh/sh.c error("%s: command not found", argv[0]); error 169 usr/bin/sh/sh.c error("Permission denied"); error 171 usr/bin/sh/sh.c error("%s cannot execute", argv[0]); error 243 usr/bin/sh/sh.c error("%s: cannot open", file); error 299 usr/bin/sh/sh.c error("Too many args"); error 327 usr/bin/sh/sh.c error("%s: %s", args[0], strerror(errno)); error 362 usr/bin/sh/sh.c error("Cannot pipe"); error 161 usr/bin/test/test.c static void error(const char *, ...); error 181 usr/bin/test/test.c error("missing ]"); error 202 usr/bin/test/test.c error("%s: %s", op, msg); error 204 usr/bin/test/test.c error("%s", msg); error 429 usr/bin/test/test.c error("%s: out of range", s); error 435 usr/bin/test/test.c error("%s: bad number", s); error 57 usr/lib/libc/stdio/vfprintf.c int error; error 63 usr/lib/libc/stdio/vfprintf.c error = __sfvwrite(fp, uio); error 66 usr/lib/libc/stdio/vfprintf.c return (error); error 230 usr/lib/libc/stdio/vfprintf.c goto error; \ error 245 usr/lib/libc/stdio/vfprintf.c goto error; \ error 538 usr/lib/libc/stdio/vfprintf.c error: error 54 usr/lib/posix/exec/execve.c int error, i, argc, envc; error 58 usr/lib/posix/exec/execve.c if ((error = object_lookup("!exec", &execobj)) != 0) error 105 usr/lib/posix/exec/execve.c error = msg_send(execobj, &msg, sizeof(msg)); error 106 usr/lib/posix/exec/execve.c } while (error == EINTR); error 112 usr/lib/posix/exec/execve.c if (error) error 45 usr/lib/posix/file/__file.c int error; error 50 usr/lib/posix/file/__file.c error = object_lookup("!fs", &__fs_obj); error 51 usr/lib/posix/file/__file.c if (error) error 45 usr/lib/posix/gen/__posix_call.c int error; error 53 usr/lib/posix/gen/__posix_call.c error = msg_send(obj, msg, size); error 54 usr/lib/posix/gen/__posix_call.c } while (error == EINTR && restart); error 56 usr/lib/posix/gen/__posix_call.c if (error) { error 57 usr/lib/posix/gen/__posix_call.c errno = (error == EINTR) ? EINTR : ENOSYS; error 45 usr/lib/posix/process/__process.c int error; error 48 usr/lib/posix/process/__process.c error = object_lookup("!proc", &__proc_obj); error 49 usr/lib/posix/process/__process.c if (error) error 88 usr/lib/posix/process/fork.c int error; error 96 usr/lib/posix/process/fork.c error = task_create(task_self(), VM_COPY, &tsk); error 97 usr/lib/posix/process/fork.c if (error) { error 98 usr/lib/posix/process/fork.c errno = error; error 101 usr/lib/posix/process/fork.c if ((error = thread_create(tsk, &t)) != 0) { error 103 usr/lib/posix/process/fork.c errno = error; error 134 usr/lib/posix/process/fork.c error = mutex_init(&__sig_lock); error 90 usr/lib/posix/process/fork_nommu.c int error, sts, pri; error 98 usr/lib/posix/process/fork_nommu.c if ((error = task_create(task_self(), VM_SHARE, &tsk)) != 0) { error 99 usr/lib/posix/process/fork_nommu.c errno = error; error 102 usr/lib/posix/process/fork_nommu.c if ((error = thread_create(tsk, &t)) != 0) { error 104 usr/lib/posix/process/fork_nommu.c errno = error; error 154 usr/lib/posix/process/fork_nommu.c error = mutex_init(&__sig_lock); error 44 usr/lib/posix/process/kill.c int error; error 52 usr/lib/posix/process/kill.c error = msg_send(__proc_obj, &m, sizeof(m)); error 47 usr/lib/posix/process/setpriority.c int error, val; error 75 usr/lib/posix/process/setpriority.c error = thread_setpri(thread_self(), val); error 76 usr/lib/posix/process/setpriority.c if (error) { error 77 usr/lib/posix/process/setpriority.c errno = error; error 50 usr/lib/posix/process/waitpid.c int sig, error; error 62 usr/lib/posix/process/waitpid.c error = msg_send(__proc_obj, &m, sizeof(m)); error 63 usr/lib/posix/process/waitpid.c if (error == EINTR) error 74 usr/lib/posix/process/waitpid.c error = exception_wait(&sig); error 75 usr/lib/posix/process/waitpid.c if (error == EINTR) { error 37 usr/lib/posix/signal/signal.c int error; error 51 usr/lib/posix/signal/signal.c error = sigaction(sig, &act, &oact); error 52 usr/lib/posix/signal/signal.c if (error) error 40 usr/lib/posix/time/gettimeofday.c int fd, error; error 46 usr/lib/posix/time/gettimeofday.c error = ioctl(fd, RTCIOC_GET_TIME, tv); error 48 usr/lib/posix/time/gettimeofday.c if (error) { error 49 usr/lib/posix/time/gettimeofday.c errno = error; error 41 usr/lib/prex/syscalls/cond_wait.c int error; error 44 usr/lib/prex/syscalls/cond_wait.c error = _cond_wait(cond, mu); error 45 usr/lib/prex/syscalls/cond_wait.c while (error == EINTR); error 46 usr/lib/prex/syscalls/cond_wait.c return error; error 41 usr/lib/prex/syscalls/mutex_lock.c int error; error 44 usr/lib/prex/syscalls/mutex_lock.c error = _mutex_lock(mu); error 45 usr/lib/prex/syscalls/mutex_lock.c while (error == EINTR); error 46 usr/lib/prex/syscalls/mutex_lock.c return error; error 41 usr/lib/prex/syscalls/sem_wait.c int error; error 44 usr/lib/prex/syscalls/sem_wait.c error = _sem_wait(sem, msec); error 45 usr/lib/prex/syscalls/sem_wait.c while (error == EINTR); error 46 usr/lib/prex/syscalls/sem_wait.c return error; error 38 usr/lib/prex/syscalls/timer_waitperiod.c int error; error 41 usr/lib/prex/syscalls/timer_waitperiod.c error = _timer_waitperiod(); error 42 usr/lib/prex/syscalls/timer_waitperiod.c while (error == EINTR); error 43 usr/lib/prex/syscalls/timer_waitperiod.c return error; error 63 usr/sample/bench/bench.c int i, pri, error; error 75 usr/sample/bench/bench.c error = vm_allocate(task, (void **)&thread, error 77 usr/sample/bench/bench.c if (error) error 99 usr/sample/ipc/ipc.c int error; error 106 usr/sample/ipc/ipc.c if ((error = object_lookup("test", &obj)) != 0) error 131 usr/sample/ipc/ipc.c int error, exit; error 143 usr/sample/ipc/ipc.c if ((error = object_create("test", &obj)) != 0) error 160 usr/sample/ipc/ipc.c error = msg_receive(obj, &msg, sizeof(msg)); error 161 usr/sample/ipc/ipc.c if (error) error 130 usr/sample/thread/thread.c int error; error 140 usr/sample/thread/thread.c error = thread_setpri(main_th, 100); error 152 usr/sample/thread/thread.c error = thread_setpri(main_th, 254); error 56 usr/sbin/install/install.c static void error(void); error 77 usr/sbin/install/install.c error(); error 79 usr/sbin/install/install.c error(); error 98 usr/sbin/install/install.c error(); error 88 usr/server/boot/boot.c int i, error = 0; error 97 usr/server/boot/boot.c error = object_lookup((char *)name, pobj); error 98 usr/server/boot/boot.c if (error == 0) error 105 usr/server/boot/boot.c if (error) error 113 usr/server/boot/boot.c int error; error 116 usr/server/boot/boot.c error = msg_send(obj, &m, sizeof(m)); error 117 usr/server/boot/boot.c if (error) error 184 usr/server/boot/boot.c int error, i, argc, envc; error 226 usr/server/boot/boot.c error = msg_send(execobj, &msg, sizeof(msg)); error 233 usr/server/boot/boot.c } while (error == EINTR); error 49 usr/server/exec/exec_cap.c int error; error 64 usr/server/exec/exec_cap.c error = task_setcap(task, cap); error 65 usr/server/exec/exec_cap.c if (error) error 77 usr/server/exec/exec_cap.c int error; error 87 usr/server/exec/exec_cap.c error = task_chkcap(task, CAP_PROTSERV); error 88 usr/server/exec/exec_cap.c if (error != 0) error 163 usr/server/exec/exec_elf.c int nr_reloc, error; error 175 usr/server/exec/exec_elf.c error = relocate_section_rel(sym_table, (Elf32_Rel *)rel_data, error 180 usr/server/exec/exec_elf.c error = relocate_section_rela(sym_table, (Elf32_Rela *)rel_data, error 185 usr/server/exec/exec_elf.c error = -1; error 188 usr/server/exec/exec_elf.c return error; error 201 usr/server/exec/exec_elf.c int i, error = 0; error 208 usr/server/exec/exec_elf.c error = ENOMEM; error 213 usr/server/exec/exec_elf.c error = EIO; error 217 usr/server/exec/exec_elf.c error = EIO; error 231 usr/server/exec/exec_elf.c error = ENOEXEC; error 236 usr/server/exec/exec_elf.c error = ENOMEM; error 241 usr/server/exec/exec_elf.c error = ENOMEM; error 278 usr/server/exec/exec_elf.c error = ENOMEM; error 285 usr/server/exec/exec_elf.c error = EIO; error 289 usr/server/exec/exec_elf.c error = EIO; error 300 usr/server/exec/exec_elf.c error = EIO; error 323 usr/server/exec/exec_elf.c DPRINTF(("exec: load_reloc ret=%d\n", error)); error 324 usr/server/exec/exec_elf.c return error; error 336 usr/server/exec/exec_elf.c int error, fd; error 350 usr/server/exec/exec_elf.c error = load_exec((Elf32_Ehdr *)exec->header, exec->task, error 353 usr/server/exec/exec_elf.c error = load_reloc((Elf32_Ehdr *)exec->header, exec->task, error 357 usr/server/exec/exec_elf.c return error; error 75 usr/server/exec/exec_execve.c int error, i; error 90 usr/server/exec/exec_execve.c if ((error = conv_path(msg->cwd, msg->path, path)) != 0) { error 100 usr/server/exec/exec_execve.c error = errno; error 114 usr/server/exec/exec_execve.c if ((error = read_header(exec.path)) != 0) error 129 usr/server/exec/exec_execve.c error = ENOEXEC; error 146 usr/server/exec/exec_execve.c error = errno; error 153 usr/server/exec/exec_execve.c if ((error = task_suspend(old_task)) != 0) error 159 usr/server/exec/exec_execve.c if ((error = task_create(old_task, VM_NEW, &new_task)) != 0) { error 172 usr/server/exec/exec_execve.c if ((error = thread_create(new_task, &t)) != 0) error 178 usr/server/exec/exec_execve.c error = vm_allocate(new_task, &stack, DFLSTKSZ, 1); error 179 usr/server/exec/exec_execve.c if (error) { error 183 usr/server/exec/exec_execve.c if ((error = build_args(new_task, stack, exec.path, msg, error 192 usr/server/exec/exec_execve.c if ((error = ldr->el_load(&exec)) != 0) error 194 usr/server/exec/exec_execve.c if ((error = thread_load(t, (void (*)(void))exec.entry, sp)) != 0) error 222 usr/server/exec/exec_execve.c DPRINTF(("exec failed error=%d\n", error)); error 223 usr/server/exec/exec_execve.c return error; error 320 usr/server/exec/exec_execve.c int i, error; error 332 usr/server/exec/exec_execve.c error = vm_map(task, stack, DFLSTKSZ, (void *)&mapped); error 333 usr/server/exec/exec_execve.c if (error) error 415 usr/server/exec/exec_execve.c int error; error 429 usr/server/exec/exec_execve.c error = msg_send(fsobj, &m, sizeof(m)); error 430 usr/server/exec/exec_execve.c } while (error == EINTR); error 438 usr/server/exec/exec_execve.c error = msg_send(procobj, &m, sizeof(m)); error 439 usr/server/exec/exec_execve.c } while (error == EINTR); error 83 usr/server/exec/main.c int error; error 85 usr/server/exec/main.c error = object_lookup("!proc", &obj); error 86 usr/server/exec/main.c if (error) error 167 usr/server/exec/main.c int error; error 192 usr/server/exec/main.c error = object_create("!exec", &obj); error 193 usr/server/exec/main.c if (error) error 206 usr/server/exec/main.c error = msg_receive(obj, msg, MAX_EXECMSG); error 207 usr/server/exec/main.c if (error) error 210 usr/server/exec/main.c error = EINVAL; error 214 usr/server/exec/main.c error = (*map->func)(msg); error 220 usr/server/exec/main.c if (error) error 222 usr/server/exec/main.c error, msg->hdr.code)); error 232 usr/server/exec/main.c msg->hdr.status = error; error 233 usr/server/exec/main.c error = msg_reply(obj, msg, MAX_EXECMSG); error 75 usr/server/fs/arfs/arfs_vfsops.c int error = 0; error 84 usr/server/fs/arfs/arfs_vfsops.c error = device_read((device_t)mp->m_dev, buf, &size, 0); error 85 usr/server/fs/arfs/arfs_vfsops.c if (error) { error 86 usr/server/fs/arfs/arfs_vfsops.c DPRINTF(("arfs_mount: read error=%d\n", error)); error 93 usr/server/fs/arfs/arfs_vfsops.c error = EINVAL; error 101 usr/server/fs/arfs/arfs_vfsops.c return error; error 121 usr/server/fs/arfs/arfs_vnops.c int error; error 126 usr/server/fs/arfs/arfs_vnops.c if ((error = bread(mp->m_dev, blkno, &bp)) != 0) error 127 usr/server/fs/arfs/arfs_vnops.c return error; error 131 usr/server/fs/arfs/arfs_vnops.c if ((error = bread(mp->m_dev, blkno + 1, &bp)) != 0) error 132 usr/server/fs/arfs/arfs_vnops.c return error; error 147 usr/server/fs/arfs/arfs_vnops.c int blkno, error; error 159 usr/server/fs/arfs/arfs_vnops.c error = ENOENT; error 198 usr/server/fs/arfs/arfs_vnops.c error = 0; error 201 usr/server/fs/arfs/arfs_vnops.c DPRINTF(("arfs_lookup: error=%d\n\n", error)); error 202 usr/server/fs/arfs/arfs_vnops.c return error; error 209 usr/server/fs/arfs/arfs_vnops.c int blkno, error; error 223 usr/server/fs/arfs/arfs_vnops.c error = 0; error 239 usr/server/fs/arfs/arfs_vnops.c if ((error = bread(mp->m_dev, blkno, &bp)) != 0) error 263 usr/server/fs/arfs/arfs_vnops.c error = 0; error 266 usr/server/fs/arfs/arfs_vnops.c DPRINTF(("arfs_read: error=%d\n\n", error)); error 267 usr/server/fs/arfs/arfs_vnops.c return error; error 287 usr/server/fs/arfs/arfs_vnops.c int blkno, i, error; error 302 usr/server/fs/arfs/arfs_vnops.c if ((error = arfs_readblk(mp, blkno)) != 0) error 310 usr/server/fs/arfs/arfs_vnops.c error = ENOENT; error 335 usr/server/fs/arfs/arfs_vnops.c error = 0; error 338 usr/server/fs/arfs/arfs_vnops.c return error; error 119 usr/server/fs/devfs/devfs_vnops.c int error; error 133 usr/server/fs/devfs/devfs_vnops.c error = device_open(path, flags & DO_RWMASK, &dev); error 134 usr/server/fs/devfs/devfs_vnops.c if (error) { error 136 usr/server/fs/devfs/devfs_vnops.c path, error)); error 137 usr/server/fs/devfs/devfs_vnops.c return error; error 158 usr/server/fs/devfs/devfs_vnops.c int error; error 162 usr/server/fs/devfs/devfs_vnops.c error = device_read((device_t)vp->v_data, buf, &len, fp->f_offset); error 163 usr/server/fs/devfs/devfs_vnops.c if (!error) error 165 usr/server/fs/devfs/devfs_vnops.c return error; error 171 usr/server/fs/devfs/devfs_vnops.c int error; error 175 usr/server/fs/devfs/devfs_vnops.c error = device_write((device_t)vp->v_data, buf, &len, fp->f_offset); error 176 usr/server/fs/devfs/devfs_vnops.c if (!error) error 178 usr/server/fs/devfs/devfs_vnops.c DPRINTF(("devfs_write: error=%d len=%d\n", error, len)); error 179 usr/server/fs/devfs/devfs_vnops.c return error; error 185 usr/server/fs/devfs/devfs_vnops.c int error; error 187 usr/server/fs/devfs/devfs_vnops.c error = device_ioctl((device_t)vp->v_data, cmd, arg); error 189 usr/server/fs/devfs/devfs_vnops.c return error; error 196 usr/server/fs/devfs/devfs_vnops.c int error, i; error 204 usr/server/fs/devfs/devfs_vnops.c error = 0; error 207 usr/server/fs/devfs/devfs_vnops.c error = sys_info(INFO_DEVICE, &info); error 208 usr/server/fs/devfs/devfs_vnops.c if (error) error 232 usr/server/fs/devfs/devfs_vnops.c int error, i; error 237 usr/server/fs/devfs/devfs_vnops.c error = 0; error 240 usr/server/fs/devfs/devfs_vnops.c error = sys_info(INFO_DEVICE, &info); error 241 usr/server/fs/devfs/devfs_vnops.c if (error) error 48 usr/server/fs/fatfs/fatfs_fat.c int error, border = 0; error 67 usr/server/fs/fatfs/fatfs_fat.c if ((error = bread(fmp->dev, sec, &bp)) != 0) error 68 usr/server/fs/fatfs/fatfs_fat.c return error; error 76 usr/server/fs/fatfs/fatfs_fat.c if ((error = bread(fmp->dev, sec + 1, &bp)) != 0) error 77 usr/server/fs/fatfs/fatfs_fat.c return error; error 91 usr/server/fs/fatfs/fatfs_fat.c int error, border = 0; error 108 usr/server/fs/fatfs/fatfs_fat.c if ((error = bwrite(bp)) != 0) error 109 usr/server/fs/fatfs/fatfs_fat.c return error; error 117 usr/server/fs/fatfs/fatfs_fat.c error = bwrite(bp); error 118 usr/server/fs/fatfs/fatfs_fat.c return error; error 132 usr/server/fs/fatfs/fatfs_fat.c int error; error 135 usr/server/fs/fatfs/fatfs_fat.c error = read_fat_entry(fmp, cl); error 136 usr/server/fs/fatfs/fatfs_fat.c if (error) error 137 usr/server/fs/fatfs/fatfs_fat.c return error; error 171 usr/server/fs/fatfs/fatfs_fat.c int error; error 175 usr/server/fs/fatfs/fatfs_fat.c error = read_fat_entry(fmp, cl); error 176 usr/server/fs/fatfs/fatfs_fat.c if (error) error 177 usr/server/fs/fatfs/fatfs_fat.c return error; error 200 usr/server/fs/fatfs/fatfs_fat.c error = write_fat_entry(fmp, cl); error 201 usr/server/fs/fatfs/fatfs_fat.c return error; error 215 usr/server/fs/fatfs/fatfs_fat.c int error; error 224 usr/server/fs/fatfs/fatfs_fat.c error = fat_next_cluster(fmp, cl, &next); error 225 usr/server/fs/fatfs/fatfs_fat.c if (error) error 226 usr/server/fs/fatfs/fatfs_fat.c return error; error 246 usr/server/fs/fatfs/fatfs_fat.c int error; error 254 usr/server/fs/fatfs/fatfs_fat.c error = fat_next_cluster(fmp, cl, &next); error 255 usr/server/fs/fatfs/fatfs_fat.c if (error) error 256 usr/server/fs/fatfs/fatfs_fat.c return error; error 257 usr/server/fs/fatfs/fatfs_fat.c error = fat_set_cluster(fmp, cl, CL_FREE); error 258 usr/server/fs/fatfs/fatfs_fat.c if (error) error 259 usr/server/fs/fatfs/fatfs_fat.c return error; error 263 usr/server/fs/fatfs/fatfs_fat.c error = fat_set_cluster(fmp, cl, CL_FREE); error 264 usr/server/fs/fatfs/fatfs_fat.c if (error) error 265 usr/server/fs/fatfs/fatfs_fat.c return error; error 281 usr/server/fs/fatfs/fatfs_fat.c int error, i; error 290 usr/server/fs/fatfs/fatfs_fat.c error = fat_next_cluster(fmp, c, &c); error 291 usr/server/fs/fatfs/fatfs_fat.c if (error) error 292 usr/server/fs/fatfs/fatfs_fat.c return error; error 310 usr/server/fs/fatfs/fatfs_fat.c int i, cl_len, alloc, error; error 317 usr/server/fs/fatfs/fatfs_fat.c error = fat_next_cluster(fmp, cl, &next); error 318 usr/server/fs/fatfs/fatfs_fat.c if (error) error 319 usr/server/fs/fatfs/fatfs_fat.c return error; error 321 usr/server/fs/fatfs/fatfs_fat.c error = fat_alloc_cluster(fmp, cl, &next); error 322 usr/server/fs/fatfs/fatfs_fat.c if (error) error 323 usr/server/fs/fatfs/fatfs_fat.c return error; error 327 usr/server/fs/fatfs/fatfs_fat.c error = fat_set_cluster(fmp, cl, next); error 328 usr/server/fs/fatfs/fatfs_fat.c if (error) error 329 usr/server/fs/fatfs/fatfs_fat.c return error; error 351 usr/server/fs/fatfs/fatfs_fat.c int error; error 356 usr/server/fs/fatfs/fatfs_fat.c error = fat_next_cluster(fmp, cl, &next); error 357 usr/server/fs/fatfs/fatfs_fat.c if (error) error 358 usr/server/fs/fatfs/fatfs_fat.c return error; error 362 usr/server/fs/fatfs/fatfs_fat.c error = fat_alloc_cluster(fmp, cl, &next); error 363 usr/server/fs/fatfs/fatfs_fat.c if (error) error 364 usr/server/fs/fatfs/fatfs_fat.c return error; error 366 usr/server/fs/fatfs/fatfs_fat.c error = fat_set_cluster(fmp, cl, next); error 367 usr/server/fs/fatfs/fatfs_fat.c if (error) error 368 usr/server/fs/fatfs/fatfs_fat.c return error; error 370 usr/server/fs/fatfs/fatfs_fat.c error = fat_set_cluster(fmp, next, fmp->fat_eof); error 371 usr/server/fs/fatfs/fatfs_fat.c if (error) error 372 usr/server/fs/fatfs/fatfs_fat.c return error; error 48 usr/server/fs/fatfs/fatfs_node.c int error; error 50 usr/server/fs/fatfs/fatfs_node.c if ((error = bread(fmp->dev, sec, &bp)) != 0) error 51 usr/server/fs/fatfs/fatfs_node.c return error; error 84 usr/server/fs/fatfs/fatfs_node.c int error, i; error 86 usr/server/fs/fatfs/fatfs_node.c error = fat_read_dirent(fmp, sec); error 87 usr/server/fs/fatfs/fatfs_node.c if (error) error 88 usr/server/fs/fatfs/fatfs_node.c return error; error 126 usr/server/fs/fatfs/fatfs_node.c int i, error; error 141 usr/server/fs/fatfs/fatfs_node.c error = fat_lookup_dirent(fmp, sec, fat_name, np); error 142 usr/server/fs/fatfs/fatfs_node.c if (error != EAGAIN) error 143 usr/server/fs/fatfs/fatfs_node.c return error; error 150 usr/server/fs/fatfs/fatfs_node.c error = fat_lookup_dirent(fmp, sec, fat_name, error 152 usr/server/fs/fatfs/fatfs_node.c if (error != EAGAIN) error 153 usr/server/fs/fatfs/fatfs_node.c return error; error 156 usr/server/fs/fatfs/fatfs_node.c error = fat_next_cluster(fmp, cl, &cl); error 157 usr/server/fs/fatfs/fatfs_node.c if (error) error 158 usr/server/fs/fatfs/fatfs_node.c return error; error 179 usr/server/fs/fatfs/fatfs_node.c int error, i; error 181 usr/server/fs/fatfs/fatfs_node.c error = fat_read_dirent(fmp, sec); error 182 usr/server/fs/fatfs/fatfs_node.c if (error) error 183 usr/server/fs/fatfs/fatfs_node.c return error; error 218 usr/server/fs/fatfs/fatfs_node.c int i, cur_index, error; error 229 usr/server/fs/fatfs/fatfs_node.c error = fat_get_dirent(fmp, sec, index, &cur_index, np); error 230 usr/server/fs/fatfs/fatfs_node.c if (error != EAGAIN) error 231 usr/server/fs/fatfs/fatfs_node.c return error; error 238 usr/server/fs/fatfs/fatfs_node.c error = fat_get_dirent(fmp, sec, index, error 240 usr/server/fs/fatfs/fatfs_node.c if (error != EAGAIN) error 241 usr/server/fs/fatfs/fatfs_node.c return error; error 244 usr/server/fs/fatfs/fatfs_node.c error = fat_next_cluster(fmp, cl, &cl); error 245 usr/server/fs/fatfs/fatfs_node.c if (error) error 246 usr/server/fs/fatfs/fatfs_node.c return error; error 263 usr/server/fs/fatfs/fatfs_node.c int error, i; error 265 usr/server/fs/fatfs/fatfs_node.c error = fat_read_dirent(fmp, sec); error 266 usr/server/fs/fatfs/fatfs_node.c if (error) error 267 usr/server/fs/fatfs/fatfs_node.c return error; error 281 usr/server/fs/fatfs/fatfs_node.c error = fat_write_dirent(fmp, sec); error 282 usr/server/fs/fatfs/fatfs_node.c return error; error 296 usr/server/fs/fatfs/fatfs_node.c int i, error; error 307 usr/server/fs/fatfs/fatfs_node.c error = fat_add_dirent(fmp, sec, np); error 308 usr/server/fs/fatfs/fatfs_node.c if (error != ENOENT) error 309 usr/server/fs/fatfs/fatfs_node.c return error; error 316 usr/server/fs/fatfs/fatfs_node.c error = fat_add_dirent(fmp, sec, np); error 317 usr/server/fs/fatfs/fatfs_node.c if (error != ENOENT) error 318 usr/server/fs/fatfs/fatfs_node.c return error; error 321 usr/server/fs/fatfs/fatfs_node.c error = fat_next_cluster(fmp, cl, &next); error 322 usr/server/fs/fatfs/fatfs_node.c if (error) error 323 usr/server/fs/fatfs/fatfs_node.c return error; error 328 usr/server/fs/fatfs/fatfs_node.c error = fat_expand_dir(fmp, cl, &next); error 329 usr/server/fs/fatfs/fatfs_node.c if (error) error 330 usr/server/fs/fatfs/fatfs_node.c return error; error 336 usr/server/fs/fatfs/fatfs_node.c error = fat_write_dirent(fmp, sec); error 337 usr/server/fs/fatfs/fatfs_node.c if (error) error 338 usr/server/fs/fatfs/fatfs_node.c return error; error 343 usr/server/fs/fatfs/fatfs_node.c error = fat_add_dirent(fmp, sec, np); error 344 usr/server/fs/fatfs/fatfs_node.c return error; error 357 usr/server/fs/fatfs/fatfs_node.c int error; error 359 usr/server/fs/fatfs/fatfs_node.c error = fat_read_dirent(fmp, np->sector); error 360 usr/server/fs/fatfs/fatfs_node.c if (error) error 361 usr/server/fs/fatfs/fatfs_node.c return error; error 366 usr/server/fs/fatfs/fatfs_node.c error = fat_write_dirent(fmp, np->sector); error 367 usr/server/fs/fatfs/fatfs_node.c return error; error 74 usr/server/fs/fatfs/fatfs_vfsops.c int error; error 82 usr/server/fs/fatfs/fatfs_vfsops.c error = device_read(fmp->dev, bpb, &size, 0); error 83 usr/server/fs/fatfs/fatfs_vfsops.c if (error) { error 85 usr/server/fs/fatfs/fatfs_vfsops.c return error; error 140 usr/server/fs/fatfs/fatfs_vfsops.c int error = 0; error 152 usr/server/fs/fatfs/fatfs_vfsops.c error = ENOMEM; error 176 usr/server/fs/fatfs/fatfs_vfsops.c return error; error 135 usr/server/fs/fatfs/fatfs_vnops.c int error; error 146 usr/server/fs/fatfs/fatfs_vnops.c error = fatfs_lookup_node(dvp, name, np); error 147 usr/server/fs/fatfs/fatfs_vnops.c if (error) { error 150 usr/server/fs/fatfs/fatfs_vnops.c return error; error 168 usr/server/fs/fatfs/fatfs_vnops.c int nr_read, nr_copy, buf_pos, error; error 193 usr/server/fs/fatfs/fatfs_vnops.c error = fat_seek_cluster(fmp, vp->v_blkno, file_pos, &cl); error 194 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 202 usr/server/fs/fatfs/fatfs_vnops.c error = EIO; error 219 usr/server/fs/fatfs/fatfs_vnops.c error = fat_next_cluster(fmp, cl, &cl); error 220 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 229 usr/server/fs/fatfs/fatfs_vnops.c error = 0; error 232 usr/server/fs/fatfs/fatfs_vnops.c return error; error 241 usr/server/fs/fatfs/fatfs_vnops.c int nr_copy, nr_write, buf_pos, i, cl_size, error; error 263 usr/server/fs/fatfs/fatfs_vnops.c error = fat_expand_file(fmp, vp->v_blkno, end_pos); error 264 usr/server/fs/fatfs/fatfs_vnops.c if (error) { error 265 usr/server/fs/fatfs/fatfs_vnops.c error = EIO; error 273 usr/server/fs/fatfs/fatfs_vnops.c error = fatfs_put_node(fmp, np); error 274 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 280 usr/server/fs/fatfs/fatfs_vnops.c error = fat_seek_cluster(fmp, vp->v_blkno, file_pos, &cl); error 281 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 292 usr/server/fs/fatfs/fatfs_vnops.c error = EIO; error 304 usr/server/fs/fatfs/fatfs_vnops.c error = EIO; error 313 usr/server/fs/fatfs/fatfs_vnops.c error = fat_next_cluster(fmp, cl, &cl); error 314 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 332 usr/server/fs/fatfs/fatfs_vnops.c error = 0; error 335 usr/server/fs/fatfs/fatfs_vnops.c return error; error 344 usr/server/fs/fatfs/fatfs_vnops.c int error; error 349 usr/server/fs/fatfs/fatfs_vnops.c error = fatfs_get_node(vp, fp->f_offset, &np); error 350 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 366 usr/server/fs/fatfs/fatfs_vnops.c error = 0; error 369 usr/server/fs/fatfs/fatfs_vnops.c return error; error 382 usr/server/fs/fatfs/fatfs_vnops.c int error; error 396 usr/server/fs/fatfs/fatfs_vnops.c error = fat_alloc_cluster(fmp, 0, &cl); error 397 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 407 usr/server/fs/fatfs/fatfs_vnops.c error = fatfs_add_node(dvp, &np); error 408 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 410 usr/server/fs/fatfs/fatfs_vnops.c error = fat_set_cluster(fmp, cl, fmp->fat_eof); error 413 usr/server/fs/fatfs/fatfs_vnops.c return error; error 422 usr/server/fs/fatfs/fatfs_vnops.c int error; error 430 usr/server/fs/fatfs/fatfs_vnops.c error = fatfs_lookup_node(dvp, name, &np); error 431 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 435 usr/server/fs/fatfs/fatfs_vnops.c error = EISDIR; error 439 usr/server/fs/fatfs/fatfs_vnops.c error = EPERM; error 444 usr/server/fs/fatfs/fatfs_vnops.c error = fat_free_clusters(fmp, de->cluster); error 445 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 450 usr/server/fs/fatfs/fatfs_vnops.c error = fatfs_put_node(fmp, &np); error 453 usr/server/fs/fatfs/fatfs_vnops.c return error; error 463 usr/server/fs/fatfs/fatfs_vnops.c int error; error 468 usr/server/fs/fatfs/fatfs_vnops.c error = fatfs_lookup_node(dvp1, name1, &np1); error 469 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 475 usr/server/fs/fatfs/fatfs_vnops.c error = fatfs_remove(dvp2, vp1, name2); error 476 usr/server/fs/fatfs/fatfs_vnops.c if (error == EIO) error 485 usr/server/fs/fatfs/fatfs_vnops.c error = fatfs_put_node(fmp, &np1); error 486 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 490 usr/server/fs/fatfs/fatfs_vnops.c error = fatfs_add_node(dvp2, &np1); error 491 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 495 usr/server/fs/fatfs/fatfs_vnops.c error = fatfs_remove(dvp1, vp2, name1); error 496 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 502 usr/server/fs/fatfs/fatfs_vnops.c error = fatfs_rmdir(dvp2, NULL, name2); error 503 usr/server/fs/fatfs/fatfs_vnops.c if (error == EIO) error 512 usr/server/fs/fatfs/fatfs_vnops.c error = fatfs_put_node(fmp, &np1); error 513 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 517 usr/server/fs/fatfs/fatfs_vnops.c error = fatfs_add_node(dvp2, &np1); error 518 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 523 usr/server/fs/fatfs/fatfs_vnops.c error = EIO; error 537 usr/server/fs/fatfs/fatfs_vnops.c error = EIO; error 542 usr/server/fs/fatfs/fatfs_vnops.c error = fatfs_rmdir(dvp1, NULL, name1); error 543 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 549 usr/server/fs/fatfs/fatfs_vnops.c return error; error 559 usr/server/fs/fatfs/fatfs_vnops.c int error; error 571 usr/server/fs/fatfs/fatfs_vnops.c error = fat_alloc_cluster(fmp, 0, &cl); error 572 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 582 usr/server/fs/fatfs/fatfs_vnops.c error = fatfs_add_node(dvp, &np); error 583 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 603 usr/server/fs/fatfs/fatfs_vnops.c error = EIO; error 607 usr/server/fs/fatfs/fatfs_vnops.c error = fat_set_cluster(fmp, cl, fmp->fat_eof); error 610 usr/server/fs/fatfs/fatfs_vnops.c return error; error 622 usr/server/fs/fatfs/fatfs_vnops.c int error; error 630 usr/server/fs/fatfs/fatfs_vnops.c error = fatfs_lookup_node(dvp, name, &np); error 631 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 636 usr/server/fs/fatfs/fatfs_vnops.c error = ENOTDIR; error 641 usr/server/fs/fatfs/fatfs_vnops.c error = fat_free_clusters(fmp, de->cluster); error 642 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 648 usr/server/fs/fatfs/fatfs_vnops.c error = fatfs_put_node(fmp, &np); error 651 usr/server/fs/fatfs/fatfs_vnops.c return error; error 683 usr/server/fs/fatfs/fatfs_vnops.c int error; error 693 usr/server/fs/fatfs/fatfs_vnops.c error = fat_free_clusters(fmp, de->cluster); error 694 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 697 usr/server/fs/fatfs/fatfs_vnops.c error = fat_expand_file(fmp, vp->v_blkno, length); error 698 usr/server/fs/fatfs/fatfs_vnops.c if (error) { error 699 usr/server/fs/fatfs/fatfs_vnops.c error = EIO; error 706 usr/server/fs/fatfs/fatfs_vnops.c error = fatfs_put_node(fmp, np); error 707 usr/server/fs/fatfs/fatfs_vnops.c if (error) error 712 usr/server/fs/fatfs/fatfs_vnops.c return error; error 267 usr/server/fs/ramfs/ramfs_vnops.c int error; error 270 usr/server/fs/ramfs/ramfs_vnops.c error = ramfs_remove_node(dvp->v_data, vp->v_data); error 271 usr/server/fs/ramfs/ramfs_vnops.c if (error) error 272 usr/server/fs/ramfs/ramfs_vnops.c return error; error 415 usr/server/fs/ramfs/ramfs_vnops.c int error; error 419 usr/server/fs/ramfs/ramfs_vnops.c error = ramfs_remove_node(dvp2->v_data, vp2->v_data); error 420 usr/server/fs/ramfs/ramfs_vnops.c if (error) error 421 usr/server/fs/ramfs/ramfs_vnops.c return error; error 426 usr/server/fs/ramfs/ramfs_vnops.c error = ramfs_rename_node(vp1->v_data, name2); error 427 usr/server/fs/ramfs/ramfs_vnops.c if (error) error 428 usr/server/fs/ramfs/ramfs_vnops.c return error; error 91 usr/server/fs/vfs/main.c int error = 0; error 95 usr/server/fs/vfs/main.c error = EPERM; error 97 usr/server/fs/vfs/main.c if (error == 0) { error 98 usr/server/fs/vfs/main.c error = sys_mount(msg->dev, msg->dir, msg->fs, msg->flags, error 102 usr/server/fs/vfs/main.c if (error) error 105 usr/server/fs/vfs/main.c return error; error 131 usr/server/fs/vfs/main.c int fd, error; error 150 usr/server/fs/vfs/main.c if ((error = task_conv(t, msg->path, acc, path)) != 0) error 151 usr/server/fs/vfs/main.c return error; error 153 usr/server/fs/vfs/main.c if ((error = sys_open(path, msg->flags, msg->mode, &fp)) != 0) error 154 usr/server/fs/vfs/main.c return error; error 166 usr/server/fs/vfs/main.c int fd, error; error 176 usr/server/fs/vfs/main.c if ((error = sys_close(fp)) != 0) error 177 usr/server/fs/vfs/main.c return error; error 188 usr/server/fs/vfs/main.c int error; error 190 usr/server/fs/vfs/main.c if ((error = task_conv(t, msg->path, VWRITE, path)) != 0) error 191 usr/server/fs/vfs/main.c return error; error 201 usr/server/fs/vfs/main.c int error, type; error 208 usr/server/fs/vfs/main.c error = sys_lseek(fp, offset, type, &org); error 210 usr/server/fs/vfs/main.c return error; error 219 usr/server/fs/vfs/main.c int error; error 224 usr/server/fs/vfs/main.c if ((error = vm_map(msg->hdr.task, msg->buf, size, &buf)) != 0) error 227 usr/server/fs/vfs/main.c error = sys_read(fp, buf, size, &bytes); error 230 usr/server/fs/vfs/main.c return error; error 239 usr/server/fs/vfs/main.c int error; error 244 usr/server/fs/vfs/main.c if ((error = vm_map(msg->hdr.task, msg->buf, size, &buf)) != 0) error 247 usr/server/fs/vfs/main.c error = sys_write(fp, buf, size, &bytes); error 250 usr/server/fs/vfs/main.c return error; error 280 usr/server/fs/vfs/main.c int error; error 286 usr/server/fs/vfs/main.c error = sys_fstat(fp, st); error 287 usr/server/fs/vfs/main.c return error; error 295 usr/server/fs/vfs/main.c int fd, error; error 302 usr/server/fs/vfs/main.c if ((error = task_conv(t, msg->path, VREAD, path)) != 0) error 303 usr/server/fs/vfs/main.c return error; error 305 usr/server/fs/vfs/main.c if ((error = sys_opendir(path, &fp)) != 0) error 306 usr/server/fs/vfs/main.c return error; error 316 usr/server/fs/vfs/main.c int fd, error; error 325 usr/server/fs/vfs/main.c if ((error = sys_closedir(fp)) != 0) error 326 usr/server/fs/vfs/main.c return error; error 371 usr/server/fs/vfs/main.c int error; error 377 usr/server/fs/vfs/main.c if ((error = sys_telldir(fp, &loc)) != 0) error 378 usr/server/fs/vfs/main.c return error; error 387 usr/server/fs/vfs/main.c int error; error 389 usr/server/fs/vfs/main.c if ((error = task_conv(t, msg->path, VWRITE, path)) != 0) error 390 usr/server/fs/vfs/main.c return error; error 399 usr/server/fs/vfs/main.c int error; error 403 usr/server/fs/vfs/main.c if ((error = task_conv(t, msg->path, VWRITE, path)) != 0) error 404 usr/server/fs/vfs/main.c return error; error 414 usr/server/fs/vfs/main.c int error; error 419 usr/server/fs/vfs/main.c if ((error = task_conv(t, msg->path, VREAD, src)) != 0) error 420 usr/server/fs/vfs/main.c return error; error 422 usr/server/fs/vfs/main.c if ((error = task_conv(t, msg->path2, VWRITE, dest)) != 0) error 423 usr/server/fs/vfs/main.c return error; error 433 usr/server/fs/vfs/main.c int error; error 437 usr/server/fs/vfs/main.c if ((error = task_conv(t, msg->path, VREAD, path)) != 0) error 438 usr/server/fs/vfs/main.c return error; error 441 usr/server/fs/vfs/main.c if ((error = sys_opendir(path, &fp)) != 0) error 442 usr/server/fs/vfs/main.c return error; error 477 usr/server/fs/vfs/main.c int error; error 481 usr/server/fs/vfs/main.c if ((error = task_conv(t, msg->path, VWRITE, path)) != 0) error 482 usr/server/fs/vfs/main.c return error; error 492 usr/server/fs/vfs/main.c int error; error 494 usr/server/fs/vfs/main.c error = task_conv(t, msg->path, 0, path); error 495 usr/server/fs/vfs/main.c if (error == 0) { error 497 usr/server/fs/vfs/main.c error = sys_stat(path, st); error 499 usr/server/fs/vfs/main.c return error; error 545 usr/server/fs/vfs/main.c int error; error 557 usr/server/fs/vfs/main.c error = sys_close(org); error 622 usr/server/fs/vfs/main.c int acc, mode, error = 0; error 631 usr/server/fs/vfs/main.c if ((error = task_conv(t, msg->path, acc, path)) != 0) error 632 usr/server/fs/vfs/main.c return error; error 645 usr/server/fs/vfs/main.c int error, i; error 649 usr/server/fs/vfs/main.c if ((error = task_alloc((task_t)msg->data[0], &newtask)) != 0) error 650 usr/server/fs/vfs/main.c return error; error 750 usr/server/fs/vfs/main.c int error; error 754 usr/server/fs/vfs/main.c error = task_alloc(msg->hdr.task, &tmp); error 755 usr/server/fs/vfs/main.c return error; error 764 usr/server/fs/vfs/main.c int error, rfd, wfd; error 778 usr/server/fs/vfs/main.c if ((error = sys_mknod(path, S_IFIFO)) != 0) error 780 usr/server/fs/vfs/main.c if ((error = sys_open(path, O_RDONLY | O_NONBLOCK, 0, &rfp)) != 0) { error 783 usr/server/fs/vfs/main.c if ((error = sys_open(path, O_WRONLY | O_NONBLOCK, 0, &wfp)) != 0) { error 795 usr/server/fs/vfs/main.c return error; error 823 usr/server/fs/vfs/main.c int error; error 827 usr/server/fs/vfs/main.c if ((error = task_conv(t, msg->path, VWRITE, path)) != 0) error 828 usr/server/fs/vfs/main.c return error; error 950 usr/server/fs/vfs/main.c int error; error 953 usr/server/fs/vfs/main.c if ((error = thread_create(self, &t)) != 0) error 954 usr/server/fs/vfs/main.c return error; error 955 usr/server/fs/vfs/main.c if ((error = vm_allocate(self, &stack, DFLSTKSZ, 1)) != 0) error 956 usr/server/fs/vfs/main.c return error; error 959 usr/server/fs/vfs/main.c if ((error = thread_load(t, entry, sp)) != 0) error 960 usr/server/fs/vfs/main.c return error; error 1032 usr/server/fs/vfs/main.c int error; error 1043 usr/server/fs/vfs/main.c if ((error = msg_receive(fsobj, msg, MAX_FSMSG)) != 0) error 1046 usr/server/fs/vfs/main.c error = EINVAL; error 1054 usr/server/fs/vfs/main.c error = fs_boot(NULL, msg); error 1058 usr/server/fs/vfs/main.c error = fs_register(NULL, msg); error 1068 usr/server/fs/vfs/main.c error = (*map->func)(t, msg); error 1076 usr/server/fs/vfs/main.c if (error) error 1078 usr/server/fs/vfs/main.c msg->hdr.task, map->code, error); error 1083 usr/server/fs/vfs/main.c msg->hdr.status = error; error 230 usr/server/fs/vfs/vfs_bio.c int error; error 237 usr/server/fs/vfs/vfs_bio.c error = device_read((device_t)dev, bp->b_data, &size, blkno); error 238 usr/server/fs/vfs/vfs_bio.c if (error) { error 241 usr/server/fs/vfs/vfs_bio.c return error; error 262 usr/server/fs/vfs/vfs_bio.c int error; error 273 usr/server/fs/vfs/vfs_bio.c error = device_write((device_t)bp->b_dev, bp->b_data, &size, error 275 usr/server/fs/vfs/vfs_bio.c if (error) error 276 usr/server/fs/vfs/vfs_bio.c return error; error 58 usr/server/fs/vfs/vfs_lookup.c int error, i; error 114 usr/server/fs/vfs/vfs_lookup.c error = VOP_LOOKUP(dvp, name, vp); error 115 usr/server/fs/vfs/vfs_lookup.c if (error || (*p == '/' && vp->v_type != VDIR)) { error 119 usr/server/fs/vfs/vfs_lookup.c return error; error 156 usr/server/fs/vfs/vfs_lookup.c int error; error 176 usr/server/fs/vfs/vfs_lookup.c if ((error = namei(dir, &vp)) != 0) error 177 usr/server/fs/vfs/vfs_lookup.c return error; error 96 usr/server/fs/vfs/vfs_mount.c int error; error 114 usr/server/fs/vfs/vfs_mount.c if ((error = device_open(dev + 5, DO_RDWR, &device)) != 0) error 115 usr/server/fs/vfs/vfs_mount.c return error; error 126 usr/server/fs/vfs/vfs_mount.c error = EBUSY; /* Already mounted */ error 134 usr/server/fs/vfs/vfs_mount.c error = ENOMEM; error 150 usr/server/fs/vfs/vfs_mount.c if ((error = namei(dir, &vp_covered)) != 0) { error 152 usr/server/fs/vfs/vfs_mount.c error = ENOENT; error 156 usr/server/fs/vfs/vfs_mount.c error = ENOTDIR; error 166 usr/server/fs/vfs/vfs_mount.c error = ENOMEM; error 177 usr/server/fs/vfs/vfs_mount.c if ((error = VFS_MOUNT(mp, dev, flags, data)) != 0) error 208 usr/server/fs/vfs/vfs_mount.c return error; error 216 usr/server/fs/vfs/vfs_mount.c int error; error 230 usr/server/fs/vfs/vfs_mount.c error = EINVAL; error 237 usr/server/fs/vfs/vfs_mount.c error = EINVAL; error 240 usr/server/fs/vfs/vfs_mount.c if ((error = VFS_UNMOUNT(mp)) != 0) error 258 usr/server/fs/vfs/vfs_mount.c return error; error 164 usr/server/fs/vfs/vfs_security.c int error = 0; error 187 usr/server/fs/vfs/vfs_security.c error = EACCES; error 191 usr/server/fs/vfs/vfs_security.c error = EACCES; error 199 usr/server/fs/vfs/vfs_security.c if (error != 0) { error 205 usr/server/fs/vfs/vfs_security.c return error; error 60 usr/server/fs/vfs/vfs_syscalls.c int error; error 69 usr/server/fs/vfs/vfs_syscalls.c error = namei(path, &vp); error 70 usr/server/fs/vfs/vfs_syscalls.c if (error == ENOENT) { error 72 usr/server/fs/vfs/vfs_syscalls.c if ((error = lookup(path, &dvp, &filename)) != 0) error 73 usr/server/fs/vfs/vfs_syscalls.c return error; error 74 usr/server/fs/vfs/vfs_syscalls.c if ((error = vn_access(dvp, VWRITE)) != 0) { error 76 usr/server/fs/vfs/vfs_syscalls.c return error; error 80 usr/server/fs/vfs/vfs_syscalls.c error = VOP_CREATE(dvp, filename, mode); error 82 usr/server/fs/vfs/vfs_syscalls.c if (error) error 83 usr/server/fs/vfs/vfs_syscalls.c return error; error 84 usr/server/fs/vfs/vfs_syscalls.c if ((error = namei(path, &vp)) != 0) error 85 usr/server/fs/vfs/vfs_syscalls.c return error; error 87 usr/server/fs/vfs/vfs_syscalls.c } else if (error) { error 88 usr/server/fs/vfs/vfs_syscalls.c return error; error 99 usr/server/fs/vfs/vfs_syscalls.c if ((error = namei(path, &vp)) != 0) error 100 usr/server/fs/vfs/vfs_syscalls.c return error; error 104 usr/server/fs/vfs/vfs_syscalls.c if ((error = vn_access(vp, VWRITE)) != 0) { error 106 usr/server/fs/vfs/vfs_syscalls.c return error; error 121 usr/server/fs/vfs/vfs_syscalls.c if ((error = VOP_TRUNCATE(vp, 0)) != 0) { error 123 usr/server/fs/vfs/vfs_syscalls.c return error; error 132 usr/server/fs/vfs/vfs_syscalls.c if ((error = VOP_OPEN(vp, flags)) != 0) { error 135 usr/server/fs/vfs/vfs_syscalls.c return error; error 151 usr/server/fs/vfs/vfs_syscalls.c int error; error 165 usr/server/fs/vfs/vfs_syscalls.c if ((error = VOP_CLOSE(vp, fp)) != 0) { error 167 usr/server/fs/vfs/vfs_syscalls.c return error; error 178 usr/server/fs/vfs/vfs_syscalls.c int error; error 191 usr/server/fs/vfs/vfs_syscalls.c error = VOP_READ(vp, fp, buf, size, count); error 193 usr/server/fs/vfs/vfs_syscalls.c return error; error 200 usr/server/fs/vfs/vfs_syscalls.c int error; error 213 usr/server/fs/vfs/vfs_syscalls.c error = VOP_WRITE(vp, fp, buf, size, count); error 215 usr/server/fs/vfs/vfs_syscalls.c return error; error 270 usr/server/fs/vfs/vfs_syscalls.c int error; error 279 usr/server/fs/vfs/vfs_syscalls.c error = VOP_IOCTL(vp, fp, request, buf); error 281 usr/server/fs/vfs/vfs_syscalls.c DPRINTF(VFSDB_SYSCALL, ("sys_ioctl: comp error=%d\n", error)); error 282 usr/server/fs/vfs/vfs_syscalls.c return error; error 289 usr/server/fs/vfs/vfs_syscalls.c int error; error 298 usr/server/fs/vfs/vfs_syscalls.c error = VOP_FSYNC(vp, fp); error 300 usr/server/fs/vfs/vfs_syscalls.c return error; error 307 usr/server/fs/vfs/vfs_syscalls.c int error = 0; error 313 usr/server/fs/vfs/vfs_syscalls.c error = vn_stat(vp, st); error 315 usr/server/fs/vfs/vfs_syscalls.c return error; error 324 usr/server/fs/vfs/vfs_syscalls.c int error; error 330 usr/server/fs/vfs/vfs_syscalls.c if ((error = sys_opendir(path, &fp)) != 0) error 331 usr/server/fs/vfs/vfs_syscalls.c return error; error 333 usr/server/fs/vfs/vfs_syscalls.c error = sys_readdir(fp, &dir); error 334 usr/server/fs/vfs/vfs_syscalls.c if (error != 0 && error != EACCES) error 340 usr/server/fs/vfs/vfs_syscalls.c if (error == ENOENT) error 342 usr/server/fs/vfs/vfs_syscalls.c else if (error == 0) error 344 usr/server/fs/vfs/vfs_syscalls.c return error; error 352 usr/server/fs/vfs/vfs_syscalls.c int error; error 356 usr/server/fs/vfs/vfs_syscalls.c if ((error = sys_open(path, O_RDONLY, 0, &fp)) != 0) error 357 usr/server/fs/vfs/vfs_syscalls.c return error; error 376 usr/server/fs/vfs/vfs_syscalls.c int error; error 387 usr/server/fs/vfs/vfs_syscalls.c error = sys_close(fp); error 388 usr/server/fs/vfs/vfs_syscalls.c return error; error 395 usr/server/fs/vfs/vfs_syscalls.c int error; error 405 usr/server/fs/vfs/vfs_syscalls.c error = VOP_READDIR(dvp, fp, dir); error 407 usr/server/fs/vfs/vfs_syscalls.c error, dir->d_name)); error 409 usr/server/fs/vfs/vfs_syscalls.c return error; error 465 usr/server/fs/vfs/vfs_syscalls.c int error; error 469 usr/server/fs/vfs/vfs_syscalls.c if ((error = namei(path, &vp)) == 0) { error 476 usr/server/fs/vfs/vfs_syscalls.c if ((error = lookup(path, &dvp, &name)) != 0) { error 478 usr/server/fs/vfs/vfs_syscalls.c return error; error 480 usr/server/fs/vfs/vfs_syscalls.c if ((error = vn_access(dvp, VWRITE)) != 0) error 485 usr/server/fs/vfs/vfs_syscalls.c error = VOP_MKDIR(dvp, name, mode); error 488 usr/server/fs/vfs/vfs_syscalls.c return error; error 495 usr/server/fs/vfs/vfs_syscalls.c int error; error 500 usr/server/fs/vfs/vfs_syscalls.c if ((error = check_dir_empty(path)) != 0) error 501 usr/server/fs/vfs/vfs_syscalls.c return error; error 502 usr/server/fs/vfs/vfs_syscalls.c if ((error = namei(path, &vp)) != 0) error 503 usr/server/fs/vfs/vfs_syscalls.c return error; error 504 usr/server/fs/vfs/vfs_syscalls.c if ((error = vn_access(vp, VWRITE)) != 0) error 507 usr/server/fs/vfs/vfs_syscalls.c error = ENOTDIR; error 511 usr/server/fs/vfs/vfs_syscalls.c error = EBUSY; error 514 usr/server/fs/vfs/vfs_syscalls.c if ((error = lookup(path, &dvp, &name)) != 0) error 517 usr/server/fs/vfs/vfs_syscalls.c error = VOP_RMDIR(dvp, vp, name); error 521 usr/server/fs/vfs/vfs_syscalls.c return error; error 525 usr/server/fs/vfs/vfs_syscalls.c return error; error 533 usr/server/fs/vfs/vfs_syscalls.c int error; error 548 usr/server/fs/vfs/vfs_syscalls.c if ((error = namei(path, &vp)) == 0) { error 553 usr/server/fs/vfs/vfs_syscalls.c if ((error = lookup(path, &dvp, &name)) != 0) error 554 usr/server/fs/vfs/vfs_syscalls.c return error; error 555 usr/server/fs/vfs/vfs_syscalls.c if ((error = vn_access(dvp, VWRITE)) != 0) error 558 usr/server/fs/vfs/vfs_syscalls.c error = VOP_MKDIR(dvp, name, mode); error 560 usr/server/fs/vfs/vfs_syscalls.c error = VOP_CREATE(dvp, name, mode); error 563 usr/server/fs/vfs/vfs_syscalls.c return error; error 571 usr/server/fs/vfs/vfs_syscalls.c int error; error 577 usr/server/fs/vfs/vfs_syscalls.c if ((error = namei(src, &vp1)) != 0) error 578 usr/server/fs/vfs/vfs_syscalls.c return error; error 579 usr/server/fs/vfs/vfs_syscalls.c if ((error = vn_access(vp1, VWRITE)) != 0) error 589 usr/server/fs/vfs/vfs_syscalls.c error = EINVAL; error 594 usr/server/fs/vfs/vfs_syscalls.c error = EBUSY; error 598 usr/server/fs/vfs/vfs_syscalls.c error = namei(dest, &vp2); error 599 usr/server/fs/vfs/vfs_syscalls.c if (error == 0) { error 602 usr/server/fs/vfs/vfs_syscalls.c error = ENOTDIR; error 605 usr/server/fs/vfs/vfs_syscalls.c error = EISDIR; error 609 usr/server/fs/vfs/vfs_syscalls.c error = EEXIST; error 614 usr/server/fs/vfs/vfs_syscalls.c error = EBUSY; error 621 usr/server/fs/vfs/vfs_syscalls.c error = ENOTDIR; error 630 usr/server/fs/vfs/vfs_syscalls.c if ((error = lookup(src, &dvp1, &sname)) != 0) error 633 usr/server/fs/vfs/vfs_syscalls.c if ((error = namei(dest, &dvp2)) != 0) error 638 usr/server/fs/vfs/vfs_syscalls.c error = EXDEV; error 641 usr/server/fs/vfs/vfs_syscalls.c error = VOP_RENAME(dvp1, vp1, sname, dvp2, vp2, dname); error 651 usr/server/fs/vfs/vfs_syscalls.c return error; error 659 usr/server/fs/vfs/vfs_syscalls.c int error; error 663 usr/server/fs/vfs/vfs_syscalls.c if ((error = namei(path, &vp)) != 0) error 664 usr/server/fs/vfs/vfs_syscalls.c return error; error 665 usr/server/fs/vfs/vfs_syscalls.c if ((error = vn_access(vp, VWRITE)) != 0) error 668 usr/server/fs/vfs/vfs_syscalls.c error = EPERM; error 673 usr/server/fs/vfs/vfs_syscalls.c error = EBUSY; error 676 usr/server/fs/vfs/vfs_syscalls.c if ((error = lookup(path, &dvp, &name)) != 0) error 679 usr/server/fs/vfs/vfs_syscalls.c error = VOP_REMOVE(dvp, vp, name); error 687 usr/server/fs/vfs/vfs_syscalls.c return error; error 694 usr/server/fs/vfs/vfs_syscalls.c int error, flags; error 699 usr/server/fs/vfs/vfs_syscalls.c if ((error = namei(path, &vp)) != 0) error 700 usr/server/fs/vfs/vfs_syscalls.c return error; error 710 usr/server/fs/vfs/vfs_syscalls.c error = vn_access(vp, flags); error 713 usr/server/fs/vfs/vfs_syscalls.c return error; error 720 usr/server/fs/vfs/vfs_syscalls.c int error; error 724 usr/server/fs/vfs/vfs_syscalls.c if ((error = namei(path, &vp)) != 0) error 725 usr/server/fs/vfs/vfs_syscalls.c return error; error 726 usr/server/fs/vfs/vfs_syscalls.c error = vn_stat(vp, st); error 728 usr/server/fs/vfs/vfs_syscalls.c return error; error 164 usr/server/fs/vfs/vfs_vnode.c int error; error 188 usr/server/fs/vfs/vfs_vnode.c if ((error = VFS_VGET(mp, vp)) != 0) { error 394 usr/server/fs/vfs/vfs_vnode.c int error = 0; error 397 usr/server/fs/vfs/vfs_vnode.c error = EACCES; error 401 usr/server/fs/vfs/vfs_vnode.c error = EACCES; error 406 usr/server/fs/vfs/vfs_vnode.c error = EROFS; error 410 usr/server/fs/vfs/vfs_vnode.c error = EACCES; error 415 usr/server/fs/vfs/vfs_vnode.c return error; error 271 usr/server/pow/pow.c int error; error 274 usr/server/pow/pow.c if ((error = thread_create(self, &t)) != 0) error 275 usr/server/pow/pow.c return error; error 276 usr/server/pow/pow.c if ((error = vm_allocate(self, &stack, DFLSTKSZ, 1)) != 0) error 277 usr/server/pow/pow.c return error; error 280 usr/server/pow/pow.c if ((error = thread_load(t, entry, sp)) != 0) error 281 usr/server/pow/pow.c return error; error 328 usr/server/pow/pow.c int error; error 330 usr/server/pow/pow.c error = object_lookup("!proc", &obj); error 331 usr/server/pow/pow.c if (error) error 344 usr/server/pow/pow.c int i, error = 0; error 353 usr/server/pow/pow.c error = object_lookup((char *)name, pobj); error 354 usr/server/pow/pow.c if (error == 0) error 361 usr/server/pow/pow.c if (error) error 370 usr/server/pow/pow.c int error; error 373 usr/server/pow/pow.c error = object_lookup((char *)name, &obj); error 374 usr/server/pow/pow.c if (error != 0) error 378 usr/server/pow/pow.c error = msg_send(obj, &m, sizeof(m)); error 379 usr/server/pow/pow.c if (error) error 400 usr/server/pow/pow.c int error; error 434 usr/server/pow/pow.c error = object_create("!pow", &obj); error 435 usr/server/pow/pow.c if (error) error 445 usr/server/pow/pow.c error = msg_receive(obj, &msg, sizeof(msg)); error 446 usr/server/pow/pow.c if (error) error 456 usr/server/pow/pow.c error = EPERM; error 458 usr/server/pow/pow.c error = EINVAL; error 462 usr/server/pow/pow.c error = (*map->func)(&msg); error 471 usr/server/pow/pow.c msg.hdr.status = error; error 474 usr/server/pow/pow.c if (map != NULL && error != 0) error 476 usr/server/pow/pow.c map->code, error)); error 152 usr/server/proc/main.c int error; error 156 usr/server/proc/main.c error = sys_getpgid(pid, &pgid); error 157 usr/server/proc/main.c if (error) error 158 usr/server/proc/main.c return error; error 179 usr/server/proc/main.c int error; error 183 usr/server/proc/main.c error = sys_getsid(pid, &sid); error 184 usr/server/proc/main.c if (error) error 185 usr/server/proc/main.c return error; error 195 usr/server/proc/main.c int error; error 197 usr/server/proc/main.c error = sys_setsid(&sid); error 198 usr/server/proc/main.c if (error) error 199 usr/server/proc/main.c return error; error 211 usr/server/proc/main.c int error; error 216 usr/server/proc/main.c error = sys_fork(child, vfork, &pid); error 217 usr/server/proc/main.c if (error) error 218 usr/server/proc/main.c return error; error 248 usr/server/proc/main.c int options, status, error; error 253 usr/server/proc/main.c error = sys_waitpid(pid, &status, options, &pid_child); error 254 usr/server/proc/main.c if (error) error 255 usr/server/proc/main.c return error; error 527 usr/server/proc/main.c int error; error 541 usr/server/proc/main.c if ((error = object_create("!proc", &obj)) != 0) error 551 usr/server/proc/main.c error = msg_receive(obj, &msg, sizeof(msg)); error 552 usr/server/proc/main.c if (error) error 558 usr/server/proc/main.c error = EINVAL; error 565 usr/server/proc/main.c error = (*map->func)(&msg); error 573 usr/server/proc/main.c msg.hdr.status = error; error 576 usr/server/proc/main.c if (error) { error 578 usr/server/proc/main.c map->code, error)); error 55 usr/server/proc/proc_exit.c int error; error 94 usr/server/proc/proc_exit.c error = task_terminate(curproc->p_task); error 95 usr/server/proc/proc_exit.c if (error) error 129 usr/server/proc/proc_fork.c int error; error 147 usr/server/proc/proc_fork.c error = newproc(p, 0, child); error 148 usr/server/proc/proc_fork.c if (error) error 149 usr/server/proc/proc_fork.c return error; error 207 usr/server/proc/proc_pid.c int error; error 222 usr/server/proc/proc_pid.c if ((error = enterpgrp(p, p->p_pid)) != 0) { error 224 usr/server/proc/proc_pid.c return error; error 105 usr/server/proc/proc_sig.c int error = 0; error 115 usr/server/proc/proc_sig.c if ((error = sendsig(p, sig)) != 0) error 118 usr/server/proc/proc_sig.c return error; error 146 usr/server/proc/proc_sig.c int error = 0; error 162 usr/server/proc/proc_sig.c error = kill_one(pid, sig); error 184 usr/server/proc/proc_sig.c error = kill_one(p->p_pid, sig); error 185 usr/server/proc/proc_sig.c if (error != 0) error 191 usr/server/proc/proc_sig.c error = kill_pg(curproc->p_pgrp->pg_pgid, sig); error 196 usr/server/proc/proc_sig.c error = kill_pg(-pid, sig); error 198 usr/server/proc/proc_sig.c return error; error 42 usr/test/console/console.c int i, error; error 46 usr/test/console/console.c error = device_open("console", 0, &console_dev); error 47 usr/test/console/console.c if (error) error 69 usr/test/console/console.c error = device_write(console_dev, 0, &len, 0); error 70 usr/test/console/console.c if (error) error 75 usr/test/console/console.c error = device_close(console_dev); error 76 usr/test/console/console.c if (error) error 61 usr/test/deadlock/deadlock.c int error; error 63 usr/test/deadlock/deadlock.c error = thread_create(task_self(), &t); error 64 usr/test/deadlock/deadlock.c if (error) error 67 usr/test/deadlock/deadlock.c error = thread_load(t, start, stack); error 68 usr/test/deadlock/deadlock.c if (error) error 80 usr/test/deadlock/deadlock.c int error; error 88 usr/test/deadlock/deadlock.c error = mutex_lock(&mtx_B); error 89 usr/test/deadlock/deadlock.c if (error) printf("error=%d\n", error); error 97 usr/test/deadlock/deadlock.c error = mutex_lock(&mtx_A); error 98 usr/test/deadlock/deadlock.c if (error) printf("error=%d\n", error); error 110 usr/test/deadlock/deadlock.c int error; error 118 usr/test/deadlock/deadlock.c error = mutex_lock(&mtx_A); error 119 usr/test/deadlock/deadlock.c if (error) printf("error=%d\n", error); error 133 usr/test/deadlock/deadlock.c error = mutex_lock(&mtx_B); error 134 usr/test/deadlock/deadlock.c if (error) printf("error=%d\n", error); error 135 usr/test/deadlock/deadlock.c if (error == EDEADLK) error 44 usr/test/fdd/fdd.c int error, i, j; error 49 usr/test/fdd/fdd.c error = device_open("fd0", 0, &fdd); error 50 usr/test/fdd/fdd.c if (error) { error 58 usr/test/fdd/fdd.c error = device_read(fdd, disk_buf, &size, sector); error 59 usr/test/fdd/fdd.c if (error) { error 81 usr/test/fdd/fdd.c error = device_close(fdd); error 82 usr/test/fdd/fdd.c if (error) error 93 usr/test/fdd/fdd.c int error; error 97 usr/test/fdd/fdd.c error = device_open("fd0", 0, &fdd); error 98 usr/test/fdd/fdd.c if (error) { error 105 usr/test/fdd/fdd.c error = device_read(fdd, disk_buf, &size, sector); error 106 usr/test/fdd/fdd.c if (error) { error 114 usr/test/fdd/fdd.c error = device_write(fdd, disk_buf, &size, sector); error 115 usr/test/fdd/fdd.c if (error) { error 122 usr/test/fdd/fdd.c error = device_close(fdd); error 123 usr/test/fdd/fdd.c if (error) error 47 usr/test/ipc/ipc.c int error; error 49 usr/test/ipc/ipc.c error = thread_create(task_self(), &t); error 50 usr/test/ipc/ipc.c if (error) error 51 usr/test/ipc/ipc.c return error; error 53 usr/test/ipc/ipc.c error = thread_load(t, start, stack); error 54 usr/test/ipc/ipc.c if (error) error 55 usr/test/ipc/ipc.c return error; error 57 usr/test/ipc/ipc.c error = thread_resume(t); error 58 usr/test/ipc/ipc.c if (error) error 59 usr/test/ipc/ipc.c return error; error 72 usr/test/ipc/ipc.c int error; error 79 usr/test/ipc/ipc.c error = object_lookup("test-A", &o1); error 80 usr/test/ipc/ipc.c error = object_lookup("test-B", &o2); error 113 usr/test/ipc/ipc.c int error; error 120 usr/test/ipc/ipc.c error = object_create("test-A", &o1); error 121 usr/test/ipc/ipc.c error = object_create("test-B", &o2); error 127 usr/test/ipc/ipc.c error = object_create("test-B", &o3); error 128 usr/test/ipc/ipc.c if (error == 0) error 134 usr/test/ipc/ipc.c error = thread_run(send_thread, stack + 1024); error 135 usr/test/ipc/ipc.c if (error) error 143 usr/test/ipc/ipc.c error = msg_receive(o3, &msg, sizeof(msg)); error 144 usr/test/ipc/ipc.c if (error == 0) error 152 usr/test/ipc/ipc.c error = msg_receive(o1, &msg, sizeof(msg)); error 153 usr/test/ipc/ipc.c if (error) error 164 usr/test/ipc/ipc.c error = msg_receive(o2, &msg, sizeof(msg)); error 165 usr/test/ipc/ipc.c if (error) error 49 usr/test/ipc_mt/ipc_mt.c int error; error 51 usr/test/ipc_mt/ipc_mt.c error = thread_create(task_self(), &t); error 52 usr/test/ipc_mt/ipc_mt.c if (error) error 53 usr/test/ipc_mt/ipc_mt.c return error; error 55 usr/test/ipc_mt/ipc_mt.c error = thread_load(t, start, stack); error 56 usr/test/ipc_mt/ipc_mt.c if (error) error 57 usr/test/ipc_mt/ipc_mt.c return error; error 59 usr/test/ipc_mt/ipc_mt.c error = thread_resume(t); error 60 usr/test/ipc_mt/ipc_mt.c if (error) error 61 usr/test/ipc_mt/ipc_mt.c return error; error 75 usr/test/ipc_mt/ipc_mt.c int error; error 84 usr/test/ipc_mt/ipc_mt.c error = object_lookup("test-A", &obj); error 110 usr/test/ipc_mt/ipc_mt.c int error, i; error 117 usr/test/ipc_mt/ipc_mt.c error = object_create("test-A", &obj); error 118 usr/test/ipc_mt/ipc_mt.c if (error) error 125 usr/test/ipc_mt/ipc_mt.c error = thread_run(receive_thread, stack[i] + 1024); error 126 usr/test/ipc_mt/ipc_mt.c if (error) error 40 usr/test/kbd/kbd.c int i, error; error 45 usr/test/kbd/kbd.c error = device_open("tty", 0, &tty_dev); error 46 usr/test/kbd/kbd.c if (error) error 56 usr/test/kbd/kbd.c error = device_close(tty_dev); error 57 usr/test/kbd/kbd.c if (error) error 135 usr/test/kmon/cmd.c int error, state = PWR_REBOOT; error 137 usr/test/kmon/cmd.c if ((error = device_open("pm", 0, &pm_dev)) == 0) { error 138 usr/test/kmon/cmd.c error = device_ioctl(pm_dev, PMIOC_SET_POWER, &state); error 141 usr/test/kmon/cmd.c if (error) error 142 usr/test/kmon/cmd.c printf("Error %d\n", error); error 149 usr/test/kmon/cmd.c int error, state = PWR_OFF; error 151 usr/test/kmon/cmd.c if ((error = device_open("pm", 0, &pm_dev)) == 0) { error 152 usr/test/kmon/cmd.c error = device_ioctl(pm_dev, PMIOC_SET_POWER, &state); error 155 usr/test/kmon/cmd.c if (error) error 156 usr/test/kmon/cmd.c printf("Error %d\n", error); error 44 usr/test/memleak/memleak.c int i, error; error 66 usr/test/memleak/memleak.c error = object_create(str, &obj); error 67 usr/test/memleak/memleak.c if (error) { error 43 usr/test/mutex/mutex.c int error; error 55 usr/test/mutex/mutex.c error = mutex_lock(&mtx_A); error 56 usr/test/mutex/mutex.c printf("1) Lock mutex A: error=%d\n", error); error 58 usr/test/mutex/mutex.c error = mutex_lock(&mtx_B); error 59 usr/test/mutex/mutex.c printf("2) Lock mutex B: error=%d\n", error); error 62 usr/test/mutex/mutex.c error = mutex_lock(&mtx_C); error 63 usr/test/mutex/mutex.c printf("3e) Lock mutex C: error=%d\n", error); error 68 usr/test/mutex/mutex.c error = mutex_unlock(&mtx_A); error 69 usr/test/mutex/mutex.c printf("4) Unlock mutex A: error=%d\n", error); error 71 usr/test/mutex/mutex.c error = mutex_unlock(&mtx_B); error 72 usr/test/mutex/mutex.c printf("5) Unlock mutex B: error=%d\n", error); error 75 usr/test/mutex/mutex.c error = mutex_unlock(&mtx_C); error 76 usr/test/mutex/mutex.c printf("6e) Unlock mutex B: error=%d\n", error); error 79 usr/test/mutex/mutex.c error = mutex_unlock(&mtx_B); error 80 usr/test/mutex/mutex.c printf("7e) Unlock mutex B: error=%d\n", error); error 88 usr/test/mutex/mutex.c error = mutex_lock(&mtx_B); error 89 usr/test/mutex/mutex.c printf("8e) Lock mutex B: error=%d\n", error); error 94 usr/test/mutex/mutex.c error = mutex_lock(&mtx_A); error 95 usr/test/mutex/mutex.c printf("9) Lock mutex A: error=%d\n", error); error 98 usr/test/mutex/mutex.c error = mutex_lock(&mtx_A); error 99 usr/test/mutex/mutex.c printf("10e) Lock mutex A: error=%d\n", error); error 101 usr/test/mutex/mutex.c error = mutex_unlock(&mtx_A); error 102 usr/test/mutex/mutex.c printf("11) Unlock mutex A: error=%d\n", error); error 44 usr/test/object/object.c int error; error 51 usr/test/object/object.c error = object_create("test", &obj); error 52 usr/test/object/object.c if (error) error 55 usr/test/object/object.c error = object_destroy(obj); error 56 usr/test/object/object.c if (error) error 62 usr/test/object/object.c error = object_create("!test", &obj); error 63 usr/test/object/object.c if (error == 0) error 69 usr/test/object/object.c error = object_lookup("!proc", &obj); error 70 usr/test/object/object.c if (error) error 73 usr/test/object/object.c error = object_destroy(obj); error 74 usr/test/object/object.c if (error == 0) error 46 usr/test/ramdisk/ramdisk.c int error, i, j; error 51 usr/test/ramdisk/ramdisk.c error = device_open("ram0", 0, &ramdev); error 52 usr/test/ramdisk/ramdisk.c if (error) { error 60 usr/test/ramdisk/ramdisk.c error = device_read(ramdev, disk_buf, &size, sector); error 61 usr/test/ramdisk/ramdisk.c if (error) { error 83 usr/test/ramdisk/ramdisk.c error = device_close(ramdev); error 84 usr/test/ramdisk/ramdisk.c if (error) error 95 usr/test/ramdisk/ramdisk.c int error; error 99 usr/test/ramdisk/ramdisk.c error = device_open("ram0", 0, &ramdev); error 100 usr/test/ramdisk/ramdisk.c if (error) { error 107 usr/test/ramdisk/ramdisk.c error = device_read(ramdev, disk_buf, &size, sector); error 108 usr/test/ramdisk/ramdisk.c if (error) { error 118 usr/test/ramdisk/ramdisk.c error = device_write(ramdev, disk_buf, &size, sector); error 119 usr/test/ramdisk/ramdisk.c if (error) { error 126 usr/test/ramdisk/ramdisk.c error = device_close(ramdev); error 127 usr/test/ramdisk/ramdisk.c if (error) error 41 usr/test/sem/sem.c int error; error 54 usr/test/sem/sem.c error = sem_getvalue(&sem, &val); error 58 usr/test/sem/sem.c error = sem_wait(&sem, 0); error 59 usr/test/sem/sem.c if (error) error 62 usr/test/sem/sem.c error = sem_getvalue(&sem, &val); error 66 usr/test/sem/sem.c error = sem_wait(&sem, 0); error 67 usr/test/sem/sem.c if (error) error 70 usr/test/sem/sem.c error = sem_getvalue(&sem, &val); error 74 usr/test/sem/sem.c error = sem_wait(&sem, 0); error 75 usr/test/sem/sem.c if (error) error 78 usr/test/sem/sem.c error = sem_getvalue(&sem, &val); error 86 usr/test/sem/sem.c error = sem_wait(&sem, 0); error 87 usr/test/sem/sem.c if (error) error 94 usr/test/sem/sem.c error = sem_trywait(&sem); error 95 usr/test/sem/sem.c printf("Try wait error=%d\n", error); error 101 usr/test/sem/sem.c error = sem_post(&sem); error 102 usr/test/sem/sem.c if (error) error 104 usr/test/sem/sem.c error = sem_getvalue(&sem, &val); error 96 usr/test/shutdown/shutdown.c int error; error 98 usr/test/shutdown/shutdown.c if ((error = object_lookup("!pow", &powobj)) != 0) error 103 usr/test/shutdown/shutdown.c error = msg_send(powobj, &m, sizeof(m)); error 58 usr/test/task/task.c int i, error; error 72 usr/test/task/task.c error = task_create(task_self(), VM_COPY, &task); error 74 usr/test/task/task.c error = task_create(task_self(), VM_SHARE, &task); error 76 usr/test/task/task.c if (error) { error 77 usr/test/task/task.c printf("task_create failed. error=%d\n", error); error 85 usr/test/task/task.c error = thread_create(task, &t); error 86 usr/test/task/task.c printf("thread_create: error=%d\n", error); error 87 usr/test/task/task.c error = thread_load(t, test_thread, stack[i]+1024); error 88 usr/test/task/task.c printf("thread_load: error=%d\n", error); error 101 usr/test/task/task.c error = task_suspend(task); error 102 usr/test/task/task.c if (error) error 112 usr/test/task/task.c error = task_resume(task); error 113 usr/test/task/task.c if (error) error 122 usr/test/task/task.c error = task_resume(task); error 123 usr/test/task/task.c if (error) error 43 usr/test/thread/thread.c int error; error 45 usr/test/thread/thread.c if ((error = thread_create(task_self(), &t)) != 0) error 48 usr/test/thread/thread.c if ((error = thread_load(t, start, stack)) != 0) error 51 usr/test/thread/thread.c if ((error = thread_resume(t)) != 0) error 68 usr/test/thread/thread.c int error; error 90 usr/test/thread/thread.c error = thread_suspend(t); error 101 usr/test/thread/thread.c error = thread_resume(t); error 41 usr/test/time/time.c int error; error 45 usr/test/time/time.c error = device_open("rtc", 0, &rtc_dev); error 46 usr/test/time/time.c if (error) { error 51 usr/test/time/time.c error = device_read(rtc_dev, &sec, &len, 0); error 52 usr/test/time/time.c if (error) { error 54 usr/test/zero/zero.c int i, error; error 64 usr/test/zero/zero.c error = device_open("zero", 0, &zero_dev); error 65 usr/test/zero/zero.c if (error) error 70 usr/test/zero/zero.c error = device_read(zero_dev, buf, &len, 0); error 71 usr/test/zero/zero.c if (error)