Home
last modified time | relevance | path

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

12345678910>>...217

/trueos/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 …]
/trueos/usr.sbin/bhyvectl/
HDbhyvectl.c448 int error, fd, map_size; in dump_msr_bitmap() local
451 error = -1; in dump_msr_bitmap()
476 error = 0; in dump_msr_bitmap()
483 return (error); in dump_msr_bitmap()
628 int error; in get_all_registers() local
631 error = vm_get_register(ctx, vcpu, VM_REG_GUEST_EFER, &efer); in get_all_registers()
632 if (error == 0) in get_all_registers()
636 if (!error && (get_cr0 || get_all)) { in get_all_registers()
637 error = vm_get_register(ctx, vcpu, VM_REG_GUEST_CR0, &cr0); in get_all_registers()
638 if (error == 0) in get_all_registers()
[all …]
/trueos/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 …]
/trueos/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.c107 int error; in mac_socket_label_alloc() local
117 if (error) { in mac_socket_label_alloc()
129 int error; in mac_socketpeer_label_alloc() local
139 if (error) { in mac_socketpeer_label_alloc()
207 int error; in mac_socket_externalize_label() local
211 return (error); in mac_socket_externalize_label()
218 int error; in mac_socketpeer_externalize_label() local
223 return (error); in mac_socketpeer_externalize_label()
229 int error; in mac_socket_internalize_label() local
233 return (error); in mac_socket_internalize_label()
[all …]
HDmac_vfs.c214 int error; in mac_vnode_externalize_label() local
218 return (error); in mac_vnode_externalize_label()
224 int error; in mac_vnode_internalize_label() local
228 return (error); in mac_vnode_internalize_label()
251 int error; in mac_vnode_associate_extattr() local
258 return (error); in mac_vnode_associate_extattr()
282 int error; in mac_vnode_create_extattr() local
287 error = VOP_OPENEXTATTR(vp, cred, curthread); in mac_vnode_create_extattr()
288 if (error == EOPNOTSUPP) { in mac_vnode_create_extattr()
294 } else if (error) in mac_vnode_create_extattr()
[all …]
/trueos/contrib/openbsm/bin/auditdistd/
HDsynch.h53 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 …]
/trueos/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.c64 int error; in _bus_dmamap_load_vlist() local
66 error = 0; in _bus_dmamap_load_vlist()
68 error = _bus_dmamap_load_buffer(dmat, map, in _bus_dmamap_load_vlist()
71 if (error) in _bus_dmamap_load_vlist()
74 return (error); in _bus_dmamap_load_vlist()
84 int error; in _bus_dmamap_load_plist() local
86 error = 0; in _bus_dmamap_load_plist()
88 error = _bus_dmamap_load_phys(dmat, map, in _bus_dmamap_load_plist()
91 if (error) in _bus_dmamap_load_plist()
94 return (error); in _bus_dmamap_load_plist()
[all …]
HDuipc_syscalls.c165 int error; in getsock_cap() local
167 error = fget_unlocked(fdp, fd, rightsp, 0, &fp, NULL); in getsock_cap()
168 if (error != 0) in getsock_cap()
169 return (error); in getsock_cap()
198 int fd, error, type, oflag, fflag; local
215 error = mac_socket_check_create(td->td_ucred, uap->domain, type,
217 if (error != 0)
218 return (error);
220 error = falloc(td, &fp, &fd, oflag);
221 if (error != 0)
[all …]
HDvfs_mountroot.c214 int error; in vfs_mountroot_devfs() local
225 error = VFS_MOUNT(mp); in vfs_mountroot_devfs()
226 KASSERT(error == 0, ("VFS_MOUNT(devfs) failed %d", error)); in vfs_mountroot_devfs()
227 if (error) in vfs_mountroot_devfs()
228 return (error); in vfs_mountroot_devfs()
241 error = kern_symlink(td, "/", "dev", UIO_SYSSPACE); in vfs_mountroot_devfs()
242 if (error) in vfs_mountroot_devfs()
243 printf("kern_symlink /dev -> / returns %d\n", error); in vfs_mountroot_devfs()
245 return (error); in vfs_mountroot_devfs()
255 int error; in vfs_mountroot_shuffle() local
[all …]
/trueos/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 …]
/trueos/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 …]
/trueos/sys/compat/linux/
HDlinux_time.c193 int error; in linux_clock_gettime() local
199 error = linux_to_native_clockid(&nwhich, args->which); in linux_clock_gettime()
200 if (error != 0) { in linux_clock_gettime()
202 error); in linux_clock_gettime()
203 LIN_SDT_PROBE1(time, linux_clock_gettime, return, error); in linux_clock_gettime()
204 return (error); in linux_clock_gettime()
206 error = kern_clock_gettime(td, nwhich, &tp); in linux_clock_gettime()
207 if (error != 0) { in linux_clock_gettime()
208 LIN_SDT_PROBE1(time, linux_clock_gettime, gettime_error, error); in linux_clock_gettime()
209 LIN_SDT_PROBE1(time, linux_clock_gettime, return, error); in linux_clock_gettime()
[all …]
HDlinux_mib.c151 int error; in linux_sysctl_osname() local
156 error = sysctl_handle_string(oidp, osname, LINUX_MAX_UTSNAME, req); in linux_sysctl_osname()
157 if (error != 0 || req->newptr == NULL) { in linux_sysctl_osname()
159 error); in linux_sysctl_osname()
160 LIN_SDT_PROBE1(mib, linux_sysctl_osname, return, error); in linux_sysctl_osname()
161 return (error); in linux_sysctl_osname()
163 error = linux_set_osname(req->td, osname); in linux_sysctl_osname()
165 LIN_SDT_PROBE1(mib, linux_sysctl_osname, return, error); in linux_sysctl_osname()
166 return (error); in linux_sysctl_osname()
178 int error; in linux_sysctl_osrelease() local
[all …]
/trueos/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 …]
/trueos/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 …]
/trueos/sys/dev/iicbus/
HDiicsmb.c258 int error = 0; in iicsmb_callback() local
265 error = iicbus_request_bus(parent, dev, how); in iicsmb_callback()
270 error = iicbus_release_bus(parent, dev); in iicsmb_callback()
274 error = EINVAL; in iicsmb_callback()
277 return (error); in iicsmb_callback()
284 int error; in iicsmb_quick() local
288 error = iicbus_start(parent, slave & ~LSB, IICBUS_TIMEOUT); in iicsmb_quick()
292 error = iicbus_start(parent, slave | LSB, IICBUS_TIMEOUT); in iicsmb_quick()
296 error = EINVAL; in iicsmb_quick()
300 if (!error) in iicsmb_quick()
[all …]
/trueos/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 …]
/trueos/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
HDzfs_ioctl.c480 int error; in zfs_secpolicy_write_perms_ds() local
482 error = zfs_dozonecheck_ds(name, ds, cr); in zfs_secpolicy_write_perms_ds()
483 if (error == 0) { in zfs_secpolicy_write_perms_ds()
484 error = secpolicy_zfs(cr); in zfs_secpolicy_write_perms_ds()
485 if (error != 0) in zfs_secpolicy_write_perms_ds()
486 error = dsl_deleg_access_impl(ds, perm, cr); in zfs_secpolicy_write_perms_ds()
488 return (error); in zfs_secpolicy_write_perms_ds()
494 int error; in zfs_secpolicy_write_perms() local
498 error = dsl_pool_hold(name, FTAG, &dp); in zfs_secpolicy_write_perms()
499 if (error != 0) in zfs_secpolicy_write_perms()
[all …]
/trueos/sys/ia64/ia64/
HDiodev_machdep.c67 int error; in iodev_ioctl() local
75 error = iodev_efivar_getvar(efivar_req); in iodev_ioctl()
78 error = iodev_efivar_nextname(efivar_req); in iodev_ioctl()
81 error = iodev_efivar_setvar(efivar_req); in iodev_ioctl()
84 error = EINVAL; in iodev_ioctl()
89 error = ENOIOCTL; in iodev_ioctl()
92 return (error); in iodev_ioctl()
100 int error; in iodev_efivar_getvar() local
114 error = copyin(req->name, name, req->namesize - 2); in iodev_efivar_getvar()
115 if (error) { in iodev_efivar_getvar()
[all …]
/trueos/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 …]
/trueos/sys/netsmb/
HDsmb_rq.c65 int error; in smb_rq_alloc() local
70 error = smb_rq_init(rqp, layer, cmd, scred); in smb_rq_alloc()
72 if (error) { in smb_rq_alloc()
74 return error; in smb_rq_alloc()
86 int error; in smb_rq_init() local
90 error = smb_rq_getenv(layer, &rqp->sr_vc, &rqp->sr_share); in smb_rq_init()
91 if (error) in smb_rq_init()
92 return error; in smb_rq_init()
93 error = smb_vc_access(rqp->sr_vc, scred, SMBM_EXEC); in smb_rq_init()
94 if (error) in smb_rq_init()
[all …]

12345678910>>...217