| /freebsd-11-stable/tools/regression/security/access/ |
| HD | testaccess.c | 86 int i, error; in setup() local 89 error = open(fd_list[i].fd_name, O_CREAT | O_EXCL, fd_list[i].fd_mode); in setup() 90 if (error == -1) { in setup() 92 return (error); in setup() 94 close(error); in setup() 95 error = chown(fd_list[i].fd_name, fd_list[i].fd_owner, in setup() 97 if (error) { in setup() 99 return (error); in setup() 108 int error; in restoreprivilege() local 110 error = setreuid(ROOT_UID, ROOT_UID); in restoreprivilege() [all …]
|
| /freebsd-11-stable/usr.sbin/bhyvectl/ |
| HD | bhyvectl.c | 485 int error, fd, map_size; in dump_msr_bitmap() local 488 error = -1; in dump_msr_bitmap() 513 error = 0; in dump_msr_bitmap() 520 return (error); in dump_msr_bitmap() 658 int error = 0; in get_all_registers() local 660 if (!error && (get_efer || get_all)) { in get_all_registers() 661 error = vm_get_register(ctx, vcpu, VM_REG_GUEST_EFER, &efer); in get_all_registers() 662 if (error == 0) in get_all_registers() 666 if (!error && (get_cr0 || get_all)) { in get_all_registers() 667 error = vm_get_register(ctx, vcpu, VM_REG_GUEST_CR0, &cr0); in get_all_registers() [all …]
|
| /freebsd-11-stable/sys/security/mac/ |
| HD | mac_syscalls.c | 86 int error; in sys___mac_get_pid() local 88 error = copyin(uap->mac_p, &mac, sizeof(mac)); in sys___mac_get_pid() 89 if (error) in sys___mac_get_pid() 90 return (error); in sys___mac_get_pid() 92 error = mac_check_structmac_consistent(&mac); in sys___mac_get_pid() 93 if (error) in sys___mac_get_pid() 94 return (error); in sys___mac_get_pid() 101 error = p_cansee(td, tproc); in sys___mac_get_pid() 102 if (error == 0) in sys___mac_get_pid() 105 if (error) in sys___mac_get_pid() [all …]
|
| HD | mac_vfs.c | 213 int error; in mac_vnode_externalize_label() local 217 return (error); in mac_vnode_externalize_label() 223 int error; in mac_vnode_internalize_label() local 227 return (error); in mac_vnode_internalize_label() 250 int error; in mac_vnode_associate_extattr() local 257 return (error); in mac_vnode_associate_extattr() 281 int error; in mac_vnode_create_extattr() local 286 error = VOP_OPENEXTATTR(vp, cred, curthread); in mac_vnode_create_extattr() 287 if (error == EOPNOTSUPP) { in mac_vnode_create_extattr() 293 } else if (error) in mac_vnode_create_extattr() [all …]
|
| HD | mac_socket.c | 106 int error; in mac_socket_label_alloc() local 116 if (error) { in mac_socket_label_alloc() 128 int error; in mac_socketpeer_label_alloc() local 138 if (error) { in mac_socketpeer_label_alloc() 206 int error; in mac_socket_externalize_label() local 210 return (error); in mac_socket_externalize_label() 217 int error; in mac_socketpeer_externalize_label() local 222 return (error); in mac_socketpeer_externalize_label() 228 int error; in mac_socket_internalize_label() local 232 return (error); in mac_socket_internalize_label() [all …]
|
| /freebsd-11-stable/sys/dev/sfxge/common/ |
| HD | efx_check.h | 47 # error "FALCON is obsolete and is not supported." 53 # error "BOOTCFG requires NVRAM" 60 # error "CHECK_REG requires SIENA or HUNTINGTON or MEDFORD" 67 # error "INTR_FATAL requires SIENA" 74 # error "DIAG requires SIENA or HUNTINGTON or MEDFORD" 81 # error "EV_PREFETCH requires SIENA or HUNTINGTON or MEDFORD" 86 # error "FALCON_NIC_CFG_OVERRIDE is obsolete and is not supported." 92 # error "FILTER requires SIENA or HUNTINGTON or MEDFORD" 98 # error "HUNTINGTON or MEDFORD requires FILTER" 105 # error "LOOPBACK requires SIENA or HUNTINGTON or MEDFORD" [all …]
|
| /freebsd-11-stable/contrib/openbsm/bin/auditdistd/ |
| HD | synch.h | 51 int error; in mtx_init() local 53 error = pthread_mutex_init(lock, NULL); in mtx_init() 54 PJDLOG_ASSERT(error == 0); in mtx_init() 59 int error; in mtx_destroy() local 61 error = pthread_mutex_destroy(lock); in mtx_destroy() 62 PJDLOG_ASSERT(error == 0); in mtx_destroy() 67 int error; in mtx_lock() local 69 error = pthread_mutex_lock(lock); in mtx_lock() 70 PJDLOG_ASSERT(error == 0); in mtx_lock() 75 int error; in mtx_trylock() local [all …]
|
| /freebsd-11-stable/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
| HD | SymbolRecordMapping.cpp | 14 #define error(X) \ macro 21 error(IO.mapInteger(Gap.GapStartOffset)); in operator ()() 22 error(IO.mapInteger(Gap.Range)); in operator ()() 30 error(IO.mapInteger(Range.OffsetStart)); in mapLocalVariableAddrRange() 31 error(IO.mapInteger(Range.ISectStart)); in mapLocalVariableAddrRange() 32 error(IO.mapInteger(Range.Range)); in mapLocalVariableAddrRange() 37 error(IO.beginRecord(MaxRecordLength - sizeof(RecordPrefix))); in visitSymbolBegin() 42 error(IO.padToAlignment(alignOf(Container))); in visitSymbolEnd() 43 error(IO.endRecord()); in visitSymbolEnd() 49 error(IO.mapInteger(Block.Parent)); in visitKnownRecord() [all …]
|
| /freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Process/Darwin/ |
| HD | NativeProcessDarwin.cpp | 57 Status error; in Launch() local 64 error.SetErrorStringWithFormat("No such file or directory: %s", in Launch() 66 return error; in Launch() 74 error = LaunchInferior(launch_info, &pty_master_fd, &launch_flavor); in Launch() 77 if (!error.Success()) { in Launch() 81 __FUNCTION__, error.AsCString()); in Launch() 82 return error; in Launch() 91 return error; in Launch() 99 error.SetErrorStringWithFormat("failed to register the native delegate"); in Launch() 100 return error; in Launch() [all …]
|
| /freebsd-11-stable/sbin/hastd/ |
| HD | synch.h | 53 int error; in mtx_init() local 55 error = pthread_mutex_init(lock, NULL); in mtx_init() 56 PJDLOG_ASSERT(error == 0); in mtx_init() 61 int error; in mtx_destroy() local 63 error = pthread_mutex_destroy(lock); in mtx_destroy() 64 PJDLOG_ASSERT(error == 0); in mtx_destroy() 69 int error; in mtx_lock() local 71 error = pthread_mutex_lock(lock); in mtx_lock() 72 PJDLOG_ASSERT(error == 0); in mtx_lock() 77 int error; in mtx_trylock() local [all …]
|
| /freebsd-11-stable/sys/kern/ |
| HD | vfs_extattr.c | 72 int error; local 81 error = copyinstr(uap->attrname, attrname, EXTATTR_MAXNAMELEN, 83 if (error) 84 return (error); 93 error = namei(&nd); 94 if (error) 95 return (error); 103 error = namei(&nd); 104 if (error) 107 error = vfs_busy(mp, 0); [all …]
|
| HD | vfs_acl.c | 127 int error; in acl_copyin() local 133 error = copyin(user_acl, &old, sizeof(old)); in acl_copyin() 134 if (error != 0) in acl_copyin() 140 error = copyin(user_acl, kernel_acl, sizeof(*kernel_acl)); in acl_copyin() 145 return (error); in acl_copyin() 152 int error; in acl_copyout() local 158 error = acl_copy_acl_into_oldacl(kernel_acl, &old); in acl_copyout() 159 if (error != 0) in acl_copyout() 162 error = copyout(&old, user_acl, sizeof(old)); in acl_copyout() 166 error = fueword32((char *)user_acl + in acl_copyout() [all …]
|
| HD | uipc_syscalls.c | 102 int error; in getsock_cap() local 104 error = fget_cap(td, fd, rightsp, &fp, havecapsp); in getsock_cap() 105 if (error != 0) in getsock_cap() 106 return (error); in getsock_cap() 144 int fd, error, oflag, fflag; in kern_socket() local 160 error = mac_socket_check_create(td->td_ucred, domain, type, protocol); in kern_socket() 161 if (error != 0) in kern_socket() 162 return (error); in kern_socket() 164 error = falloc(td, &fp, &fd, oflag); in kern_socket() 165 if (error != 0) in kern_socket() [all …]
|
| HD | subr_bus_dma.c | 66 int error; in _bus_dmamap_load_vlist() local 68 error = 0; in _bus_dmamap_load_vlist() 82 error = _bus_dmamap_load_buffer(dmat, map, addr, ds_len, pmap, in _bus_dmamap_load_vlist() 84 if (error) in _bus_dmamap_load_vlist() 87 return (error); in _bus_dmamap_load_vlist() 97 int error; in _bus_dmamap_load_plist() local 99 error = 0; in _bus_dmamap_load_plist() 101 error = _bus_dmamap_load_phys(dmat, map, in _bus_dmamap_load_plist() 104 if (error) in _bus_dmamap_load_plist() 107 return (error); in _bus_dmamap_load_plist() [all …]
|
| HD | vfs_mountroot.c | 150 int error; in sysctl_vfs_root_mount_hold() local 162 error = sbuf_finish(&sb); in sysctl_vfs_root_mount_hold() 163 if (error == 0) in sysctl_vfs_root_mount_hold() 164 error = SYSCTL_OUT(req, sbuf_data(&sb), sbuf_len(&sb)); in sysctl_vfs_root_mount_hold() 166 return (error); in sysctl_vfs_root_mount_hold() 236 int error; in vfs_mountroot_devfs() local 244 error = vfs_busy(rootdevmp, 0); in vfs_mountroot_devfs() 245 if (error != 0) in vfs_mountroot_devfs() 246 return (error); in vfs_mountroot_devfs() 256 error = VFS_MOUNT(mp); in vfs_mountroot_devfs() [all …]
|
| HD | vfs_syscalls.c | 161 int error; in sys_quotactl() local 169 if ((error = namei(&nd)) != 0) in sys_quotactl() 170 return (error); in sys_quotactl() 175 error = vfs_busy(mp, 0); in sys_quotactl() 177 if (error != 0) in sys_quotactl() 178 return (error); in sys_quotactl() 179 error = VFS_QUOTACTL(mp, uap->cmd, uap->uid, uap->arg); in sys_quotactl() 195 return (error); in sys_quotactl() 243 int error; in kern_do_statfs() local 247 error = vfs_busy(mp, 0); in kern_do_statfs() [all …]
|
| /freebsd-11-stable/sys/compat/freebsd32/ |
| HD | freebsd32_misc.c | 165 int error, status; in freebsd32_wait4() local 173 error = kern_wait(td, uap->pid, &status, uap->options, rup); in freebsd32_wait4() 174 if (error) in freebsd32_wait4() 175 return (error); in freebsd32_wait4() 177 error = copyout(&status, uap->status, sizeof(status)); in freebsd32_wait4() 178 if (uap->rusage != NULL && error == 0) { in freebsd32_wait4() 180 error = copyout(&ru32, uap->rusage, sizeof(ru32)); in freebsd32_wait4() 182 return (error); in freebsd32_wait4() 192 int error, status; in freebsd32_wait6() local 203 error = kern_wait6(td, uap->idtype, PAIR32TO64(id_t, uap->id), in freebsd32_wait6() [all …]
|
| /freebsd-11-stable/tools/regression/priv/ |
| HD | priv_cred.c | 60 int error; in priv_cred_setuid() local 62 error = setuid(UID_OTHER); in priv_cred_setuid() 64 expect("priv_setuid(asroot, injail)", error, 0, 0); in priv_cred_setuid() 66 expect("priv_setuid(asroot, !injail)", error, 0, 0); in priv_cred_setuid() 68 expect("priv_setuid(!asroot, injail)", error, -1, EPERM); in priv_cred_setuid() 70 expect("priv_setuid(!asroot, !injail)", error, -1, EPERM); in priv_cred_setuid() 76 int error; in priv_cred_seteuid() local 78 error = seteuid(UID_OTHER); in priv_cred_seteuid() 80 expect("priv_seteuid(asroot, injail)", error, 0, 0); in priv_cred_seteuid() 82 expect("priv_seteuid(asroot, !injail)", error, 0, 0); in priv_cred_seteuid() [all …]
|
| HD | priv_sched_rtprio.c | 108 int error; in priv_sched_rtprio_curproc_normal() local 112 error = rtprio(RTP_SET, 0, &rtp); in priv_sched_rtprio_curproc_normal() 115 error, 0, 0); in priv_sched_rtprio_curproc_normal() 118 error, 0, 0); in priv_sched_rtprio_curproc_normal() 121 error, 0, 0); in priv_sched_rtprio_curproc_normal() 124 error, 0, 0); in priv_sched_rtprio_curproc_normal() 131 int error; in priv_sched_rtprio_curproc_idle() local 135 error = rtprio(RTP_SET, 0, &rtp); in priv_sched_rtprio_curproc_idle() 138 error, -1, EPERM); in priv_sched_rtprio_curproc_idle() 141 error, 0, 0); in priv_sched_rtprio_curproc_idle() [all …]
|
| /freebsd-11-stable/usr.bin/bmake/tests/execution/joberr/ |
| HD | expected.stderr.1 | 1 1 error 2 1 error 3 1 error 4 1 error 5 1 error 6 1 error 7 1 error 8 1 error 9 1 error 10 1 error [all …]
|
| /freebsd-11-stable/lib/libvmmapi/ |
| HD | vmmapi_freebsd.c | 79 int error, tmp; in vm_setup_freebsd_registers_i386() local 82 error = vm_get_capability(vmctx, vcpu, VM_CAP_UNRESTRICTED_GUEST, &tmp); in vm_setup_freebsd_registers_i386() 83 if (error) in vm_setup_freebsd_registers_i386() 85 error = vm_set_capability(vmctx, vcpu, VM_CAP_UNRESTRICTED_GUEST, 1); in vm_setup_freebsd_registers_i386() 86 if (error) in vm_setup_freebsd_registers_i386() 90 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_CR0, cr0)) != 0) in vm_setup_freebsd_registers_i386() 93 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_CR4, 0)) != 0) in vm_setup_freebsd_registers_i386() 100 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_EFER, 0))) in vm_setup_freebsd_registers_i386() 109 error = vm_set_desc(vmctx, vcpu, VM_REG_GUEST_GDTR, in vm_setup_freebsd_registers_i386() 111 if (error != 0) in vm_setup_freebsd_registers_i386() [all …]
|
| /freebsd-11-stable/sys/compat/linux/ |
| HD | linux_time.c | 158 int error; in native_to_linux_itimerspec() local 160 error = native_to_linux_timespec(<p->it_interval, &ntp->it_interval); in native_to_linux_itimerspec() 161 if (error == 0) in native_to_linux_itimerspec() 162 error = native_to_linux_timespec(<p->it_value, &ntp->it_interval); in native_to_linux_itimerspec() 163 return (error); in native_to_linux_itimerspec() 169 int error; in linux_to_native_itimerspec() local 171 error = linux_to_native_timespec(&ntp->it_interval, <p->it_interval); in linux_to_native_itimerspec() 172 if (error == 0) in linux_to_native_itimerspec() 173 error = linux_to_native_timespec(&ntp->it_value, <p->it_value); in linux_to_native_itimerspec() 174 return (error); in linux_to_native_itimerspec() [all …]
|
| /freebsd-11-stable/sys/dev/iicbus/ |
| HD | ds3231.c | 87 int error; in ds3231_ctrl_read() local 89 error = ds3231_read1(sc->sc_dev, DS3231_CONTROL, &sc->sc_ctrl); in ds3231_ctrl_read() 90 if (error) { in ds3231_ctrl_read() 92 return (error); in ds3231_ctrl_read() 100 int error; in ds3231_ctrl_write() local 105 error = ds3231_write1(sc->sc_dev, DS3231_CONTROL, data); in ds3231_ctrl_write() 106 if (error != 0) in ds3231_ctrl_write() 109 return (error); in ds3231_ctrl_write() 115 int error; in ds3231_status_read() local 117 error = ds3231_read1(sc->sc_dev, DS3231_STATUS, &sc->sc_status); in ds3231_status_read() [all …]
|
| /freebsd-11-stable/sys/compat/cloudabi/ |
| HD | cloudabi_file.c | 76 int error; in copyin_path() local 81 error = copyin(uaddr, buf, len); in copyin_path() 82 if (error != 0) { in copyin_path() 84 return (error); in copyin_path() 147 int error; in cloudabi_sys_file_create() local 149 error = copyin_path(uap->path, uap->path_len, &path); in cloudabi_sys_file_create() 150 if (error != 0) in cloudabi_sys_file_create() 151 return (error); in cloudabi_sys_file_create() 160 error = kern_mkdirat(td, uap->fd, path, UIO_SYSSPACE, 0777); in cloudabi_sys_file_create() 163 error = EINVAL; in cloudabi_sys_file_create() [all …]
|
| /freebsd-11-stable/sys/dev/ppbus/ |
| HD | ppb_1284.c | 83 ppb->error = PPB_NO_ERROR; in ppb_1284_reset_error() 117 (ppb->error == PPB_NO_ERROR)) { in ppb_1284_set_state() 119 ppb->error = PPB_NO_ERROR; in ppb_1284_set_state() 126 ppb_1284_set_error(device_t bus, int error, int event) in ppb_1284_set_error() argument 131 if ((ppb->error == PPB_NO_ERROR) && in ppb_1284_set_error() 133 ppb->error = error; in ppb_1284_set_error() 138 printf("ppb1284: error=%d status=0x%x event=%d\n", error, in ppb_1284_set_error() 199 int spin, request_mode, error = 0; in ppb_peripheral_negociate() local 215 error = ENODEV; in ppb_peripheral_negociate() 216 goto error; in ppb_peripheral_negociate() [all …]
|