Home
last modified time | relevance | path

Searched refs:error (Results 1 – 25 of 4944) sorted by relevance

12345678910>>...198

/NextBSD/tools/regression/security/access/
HDtestaccess.c86 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 …]
/NextBSD/usr.sbin/bhyvectl/
HDbhyvectl.c463 int error, fd, map_size; in dump_msr_bitmap() local
466 error = -1; in dump_msr_bitmap()
491 error = 0; in dump_msr_bitmap()
498 return (error); in dump_msr_bitmap()
646 int error = 0; in get_all_registers() local
648 if (!error && (get_efer || get_all)) { in get_all_registers()
649 error = vm_get_register(ctx, vcpu, VM_REG_GUEST_EFER, &efer); in get_all_registers()
650 if (error == 0) in get_all_registers()
654 if (!error && (get_cr0 || get_all)) { in get_all_registers()
655 error = vm_get_register(ctx, vcpu, VM_REG_GUEST_CR0, &cr0); in get_all_registers()
[all …]
/NextBSD/sys/security/mac/
HDmac_syscalls.c86 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 …]
HDmac_socket.c106 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 …]
HDmac_vfs.c213 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 …]
/NextBSD/sys/dev/sfxge/common/
HDefx_check.h49 # error "BOOTCFG requires NVRAM"
56 # error "CHECK_REG requires FALCON or SIENA or HUNTINGTON"
64 # error "INTR_FATAL not supported on HUNTINGTON"
66 # error "INTR_FATAL requires FALCON or SIENA"
73 # error "DIAG requires FALCON or SIENA or HUNTINGTON"
80 # error "EV_PREFETCH requires FALCON or SIENA or HUNTINGTON"
87 # error "FALCON_NIC_CFG_OVERRIDE requires FALCON"
94 # error "FILTER requires FALCON or SIENA or HUNTINGTON"
100 # error "HUNTINGTON requires FILTER"
107 # error "LOOPBACK requires FALCON or SIENA or HUNTINGTON"
[all …]
/NextBSD/contrib/openbsm/bin/auditdistd/
HDsynch.h51 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 …]
/NextBSD/sbin/hastd/
HDsynch.h51 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 …]
/NextBSD/sys/kern/
HDvfs_extattr.c72 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 …]
HDvfs_acl.c127 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 …]
HDsubr_bus_dma.c66 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 …]
HDvfs_syscalls.c178 int error; local
186 if ((error = namei(&nd)) != 0)
187 return (error);
192 error = vfs_busy(mp, 0);
194 if (error != 0)
195 return (error);
196 error = VFS_QUOTACTL(mp, uap->cmd, uap->uid, uap->arg);
211 return (error);
273 int error; local
275 error = kern_statfs(td, uap->path, UIO_USERSPACE, &sf);
[all …]
HDuipc_syscalls.c148 int error; in getsock_cap() local
150 error = fget_unlocked(td->td_proc->p_fd, fd, rightsp, &fp, NULL); in getsock_cap()
151 if (error != 0) in getsock_cap()
152 return (error); in getsock_cap()
181 int fd, error, type, oflag, fflag; local
198 error = mac_socket_check_create(td->td_ucred, uap->domain, type,
200 if (error != 0)
201 return (error);
203 error = falloc(td, &fp, &fd, oflag);
204 if (error != 0)
[all …]
HDvfs_mountroot.c144 int error; in sysctl_vfs_root_mount_hold() local
156 error = sbuf_finish(&sb); in sysctl_vfs_root_mount_hold()
157 if (error == 0) in sysctl_vfs_root_mount_hold()
158 error = SYSCTL_OUT(req, sbuf_data(&sb), sbuf_len(&sb)); in sysctl_vfs_root_mount_hold()
160 return (error); in sysctl_vfs_root_mount_hold()
232 int error; in vfs_mountroot_devfs() local
240 error = vfs_busy(rootdevmp, 0); in vfs_mountroot_devfs()
241 if (error != 0) in vfs_mountroot_devfs()
242 return (error); in vfs_mountroot_devfs()
252 error = VFS_MOUNT(mp); in vfs_mountroot_devfs()
[all …]
/NextBSD/tools/regression/priv/
HDpriv_cred.c60 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 …]
HDpriv_sched_rtprio.c108 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 …]
/NextBSD/usr.bin/bmake/tests/execution/joberr/
HDexpected.stderr.11 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 …]
/NextBSD/sys/compat/freebsd32/
HDfreebsd32_misc.c158 int error, status; in freebsd32_wait4() local
166 error = kern_wait(td, uap->pid, &status, uap->options, rup); in freebsd32_wait4()
167 if (error) in freebsd32_wait4()
168 return (error); in freebsd32_wait4()
170 error = copyout(&status, uap->status, sizeof(status)); in freebsd32_wait4()
171 if (uap->rusage != NULL && error == 0) { in freebsd32_wait4()
173 error = copyout(&ru32, uap->rusage, sizeof(ru32)); in freebsd32_wait4()
175 return (error); in freebsd32_wait4()
185 int error, status; in freebsd32_wait6() local
196 error = kern_wait6(td, uap->idtype, PAIR32TO64(id_t, uap->id), in freebsd32_wait6()
[all …]
/NextBSD/lib/libvmmapi/
HDvmmapi_freebsd.c79 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 …]
/NextBSD/sys/dev/iicbus/
HDiicsmb.c256 int error = 0; in iicsmb_callback() local
263 error = iicbus_request_bus(parent, dev, how); in iicsmb_callback()
268 error = iicbus_release_bus(parent, dev); in iicsmb_callback()
272 error = EINVAL; in iicsmb_callback()
275 return (error); in iicsmb_callback()
282 int error; in iicsmb_quick() local
286 error = iicbus_start(parent, slave & ~LSB, IICBUS_TIMEOUT); in iicsmb_quick()
290 error = iicbus_start(parent, slave | LSB, IICBUS_TIMEOUT); in iicsmb_quick()
294 error = EINVAL; in iicsmb_quick()
298 if (!error) in iicsmb_quick()
[all …]
/NextBSD/contrib/smbfs/lib/smb/
HDctx.c67 int opt, error = 0; in smb_ctx_init() local
73 error = nb_ctx_create(&ctx->ct_nb); in smb_ctx_init()
74 if (error) in smb_ctx_init()
75 return error; in smb_ctx_init()
113 error = smb_ctx_parseunc(ctx, cp, sharetype, (const char**)&cp); in smb_ctx_init()
114 if (error) in smb_ctx_init()
115 return error; in smb_ctx_init()
119 while (error == 0 && (opt = cf_getopt(argc, argv, ":E:L:U:")) != -1) { in smb_ctx_init()
123 error = smb_ctx_setcharset(ctx, arg); in smb_ctx_init()
124 if (error) in smb_ctx_init()
[all …]
/NextBSD/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
HDzfs_ioctl.c483 int error; in zfs_secpolicy_write_perms_ds() local
485 error = zfs_dozonecheck_ds(name, ds, cr); in zfs_secpolicy_write_perms_ds()
486 if (error == 0) { in zfs_secpolicy_write_perms_ds()
487 error = secpolicy_zfs(cr); in zfs_secpolicy_write_perms_ds()
488 if (error != 0) in zfs_secpolicy_write_perms_ds()
489 error = dsl_deleg_access_impl(ds, perm, cr); in zfs_secpolicy_write_perms_ds()
491 return (error); in zfs_secpolicy_write_perms_ds()
497 int error; in zfs_secpolicy_write_perms() local
501 error = dsl_pool_hold(name, FTAG, &dp); in zfs_secpolicy_write_perms()
502 if (error != 0) in zfs_secpolicy_write_perms()
[all …]
/NextBSD/sys/compat/cloudabi/
HDcloudabi_file.c75 int error; in copyin_path() local
80 error = copyin(uaddr, buf, len); in copyin_path()
81 if (error != 0) { in copyin_path()
83 return (error); in copyin_path()
146 int error; in cloudabi_sys_file_create() local
148 error = copyin_path(uap->path, uap->pathlen, &path); in cloudabi_sys_file_create()
149 if (error != 0) in cloudabi_sys_file_create()
150 return (error); in cloudabi_sys_file_create()
159 error = kern_mkdirat(td, uap->fd, path, UIO_SYSSPACE, 0777); in cloudabi_sys_file_create()
162 error = kern_mkfifoat(td, uap->fd, path, UIO_SYSSPACE, 0666); in cloudabi_sys_file_create()
[all …]
/NextBSD/sys/dev/ppbus/
HDppb_1284.c83 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 …]
/NextBSD/sys/amd64/vmm/
HDvmm_instruction_emul.c256 int error; in vie_read_register() local
258 error = vm_get_register(vm, vcpuid, reg, rval); in vie_read_register()
260 return (error); in vie_read_register()
293 int error, lhbr; in vie_read_bytereg() local
297 error = vm_get_register(vm, vcpuid, reg, &val); in vie_read_bytereg()
307 return (error); in vie_read_bytereg()
314 int error, lhbr; in vie_write_bytereg() local
318 error = vm_get_register(vm, vcpuid, reg, &origval); in vie_write_bytereg()
319 if (error == 0) { in vie_write_bytereg()
331 error = vm_set_register(vm, vcpuid, reg, val); in vie_write_bytereg()
[all …]

12345678910>>...198