Home
last modified time | relevance | path

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

12345678910>>...237

/freebsd/tools/regression/security/access/
H A Dtestaccess.c84 int i, error; in setup() local
87 error = open(fd_list[i].fd_name, O_CREAT | O_EXCL, fd_list[i].fd_mode); in setup()
88 if (error == -1) { in setup()
90 return (error); in setup()
92 close(error); in setup()
93 error = chown(fd_list[i].fd_name, fd_list[i].fd_owner, in setup()
95 if (error) { in setup()
97 return (error); in setup()
106 int error; in restoreprivilege() local
108 error = setreuid(ROOT_UID, ROOT_UID); in restoreprivilege()
[all …]
/freebsd/sys/dev/sfxge/common/
H A Defx_check.h45 # error "FALCON is obsolete and is not supported."
51 # error "BOOTCFG requires NVRAM"
59 # error "CHECK_REG requires SIENA or HUNTINGTON or MEDFORD or MEDFORD2"
66 # error "INTR_FATAL requires SIENA"
74 # error "DIAG requires SIENA or HUNTINGTON or MEDFORD or MEDFORD2"
82 # error "EV_PREFETCH requires SIENA or HUNTINGTON or MEDFORD or MEDFORD2"
87 # error "FALCON_NIC_CFG_OVERRIDE is obsolete and is not supported."
94 # error "FILTER requires SIENA or HUNTINGTON or MEDFORD or MEDFORD2"
100 # error "HUNTINGTON or MEDFORD or MEDFORD2 requires FILTER"
108 # error "LOOPBACK requires SIENA or HUNTINGTON or MEDFORD or MEDFORD2"
[all …]
/freebsd/contrib/openbsm/bin/auditdistd/
H A Dsynch.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 …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DSymbolRecordMapping.cpp14 #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(I in visitKnownRecord()
[all...]
/freebsd/sys/compat/linux/
H A Dlinux_ptrace.c127 int error; in linux_ptrace_status() local
130 error = kern_ptrace(td, PT_LWPINFO, pid, &lwpinfo, sizeof(lwpinfo)); in linux_ptrace_status()
132 if (error != 0) { in linux_ptrace_status()
133 linux_msg(td, "PT_LWPINFO failed with error %d", error); in linux_ptrace_status()
162 int error; in linux_ptrace_peek() local
164 error = kern_ptrace(td, PT_READ_I, pid, addr, 0); in linux_ptrace_peek()
165 if (error == 0) in linux_ptrace_peek()
166 error = copyout(td->td_retval, data, sizeof(l_int)); in linux_ptrace_peek()
167 else if (error == ENOMEM) in linux_ptrace_peek()
168 error = EIO; in linux_ptrace_peek()
[all …]
H A Dlinux_timer.c90 int error, id; in linux_timer_create() local
95 error = copyin(uap->evp, &l_ev, sizeof(l_ev)); in linux_timer_create()
96 if (error != 0) in linux_timer_create()
97 return (error); in linux_timer_create()
98 error = linux_convert_l_sigevent(&l_ev, &ev); in linux_timer_create()
99 if (error != 0) in linux_timer_create()
100 return (error); in linux_timer_create()
103 error = linux_to_native_clockid(&nwhich, uap->clock_id); in linux_timer_create()
104 if (error != 0) in linux_timer_create()
105 return (error); in linux_timer_create()
[all …]
H A Dlinux_time.c143 int error; in linux_put_timespec() local
145 error = native_to_linux_timespec(&lts, ntp); in linux_put_timespec()
146 if (error != 0) in linux_put_timespec()
147 return (error); in linux_put_timespec()
155 int error; in linux_get_timespec() local
157 error = copyin(ultp, &lts, sizeof(lts)); in linux_get_timespec()
158 if (error != 0) in linux_get_timespec()
159 return (error); in linux_get_timespec()
197 int error; in linux_put_timespec64() local
199 error = native_to_linux_timespec64(&lts, ntp); in linux_put_timespec64()
[all …]
/freebsd/tools/regression/priv/
H A Dpriv_cred.c58 int error; in priv_cred_setuid() local
60 error = setuid(UID_OTHER); in priv_cred_setuid()
62 expect("priv_setuid(asroot, injail)", error, 0, 0); in priv_cred_setuid()
64 expect("priv_setuid(asroot, !injail)", error, 0, 0); in priv_cred_setuid()
66 expect("priv_setuid(!asroot, injail)", error, -1, EPERM); in priv_cred_setuid()
68 expect("priv_setuid(!asroot, !injail)", error, -1, EPERM); in priv_cred_setuid()
74 int error; in priv_cred_seteuid() local
76 error = seteuid(UID_OTHER); in priv_cred_seteuid()
78 expect("priv_seteuid(asroot, injail)", error, 0, 0); in priv_cred_seteuid()
80 expect("priv_seteuid(asroot, !injail)", error, 0, 0); in priv_cred_seteuid()
[all …]
/freebsd/usr.bin/bmake/tests/execution/joberr/
H A Dexpected.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 …]
/freebsd/sys/dev/dialog/da9063/
H A Dda9063_rtc.c66 int error; in da9063_rtc_read_ct() local
70 error = DA9063_READ(sc->parent, DA9063_COUNT_S, &sec); in da9063_rtc_read_ct()
71 if (error != 0) in da9063_rtc_read_ct()
72 return (error); in da9063_rtc_read_ct()
76 error = DA9063_READ(sc->parent, DA9063_COUNT_MI, &min); in da9063_rtc_read_ct()
77 if (error != 0) in da9063_rtc_read_ct()
78 return (error); in da9063_rtc_read_ct()
80 error = DA9063_READ(sc->parent, DA9063_COUNT_H, &hour); in da9063_rtc_read_ct()
81 if (error != 0) in da9063_rtc_read_ct()
82 return (error); in da9063_rtc_read_ct()
[all …]
H A Dda9063_iic.c77 int error; in da9063_iic_select_page() local
84 error = iicdev_readfrom(sc->dev, DA9063_PAGE_CON, &reg, 1, IIC_WAIT); in da9063_iic_select_page()
85 if (error != 0) in da9063_iic_select_page()
86 return (iic2errno(error)); in da9063_iic_select_page()
93 error = iicdev_writeto(sc->dev, DA9063_PAGE_CON, &reg, 1, IIC_WAIT); in da9063_iic_select_page()
94 if (error != 0) in da9063_iic_select_page()
95 return (iic2errno(error)); in da9063_iic_select_page()
106 int error; in da9063_iic_read() local
112 error = da9063_iic_select_page(sc, DA9063_IIC_PAGE(addr)); in da9063_iic_read()
113 if (error != 0) in da9063_iic_read()
[all …]
/freebsd/sys/security/mac/
H A Dmac_syscalls.c103 int error; in mac_label_copyin() local
109 error = copyin(u_mac, &mac32, sizeof(mac32)); in mac_label_copyin()
110 if (error != 0) in mac_label_copyin()
111 return (error); in mac_label_copyin()
118 error = copyin(u_mac, mac, sizeof(*mac)); in mac_label_copyin()
119 if (error != 0) in mac_label_copyin()
120 return (error); in mac_label_copyin()
123 error = mac_check_structmac_consistent(mac); in mac_label_copyin()
124 if (error != 0) in mac_label_copyin()
125 return (error); in mac_label_copyin()
[all …]
/freebsd/sys/kern/
H A Duipc_syscalls.c92 int error; in getsock_cap() local
94 error = fget_cap(td, fd, rightsp, NULL, &fp, havecapsp); in getsock_cap()
95 if (__predict_false(error != 0)) in getsock_cap()
96 return (error); in getsock_cap()
112 int error; in getsock() local
114 error = fget_unlocked(td, fd, rightsp, &fp); in getsock()
115 if (__predict_false(error != 0)) in getsock()
116 return (error); in getsock()
144 int fd, error, oflag, fflag; in kern_socket() local
164 error = mac_socket_check_create(td->td_ucred, domain, type, protocol); in kern_socket()
[all …]
H A Dvfs_syscalls.c193 int error; in sys_quotactl() local
202 if ((error = namei(&nd)) != 0) in sys_quotactl()
203 return (error); in sys_quotactl()
208 error = vfs_busy(mp, 0); in sys_quotactl()
209 if (error != 0) { in sys_quotactl()
211 return (error); in sys_quotactl()
214 error = VFS_QUOTACTL(mp, uap->cmd, uap->uid, uap->arg, &mp_busy); in sys_quotactl()
230 return (error); in sys_quotactl()
277 int error; in kern_do_statfs() local
281 error = vfs_busy(mp, 0); in kern_do_statfs()
[all …]
H A Dkern_priv.c70 int error, enabled; in sysctl_kern_suser_enabled() local
74 error = sysctl_handle_int(oidp, &enabled, 0, req); in sysctl_kern_suser_enabled()
75 if (error || !req->newptr) in sysctl_kern_suser_enabled()
76 return (error); in sysctl_kern_suser_enabled()
101 int error; in priv_check_cred_pre() local
104 error = mac_priv_check(cred, priv); in priv_check_cred_pre()
106 error = 0; in priv_check_cred_pre()
108 return (error); in priv_check_cred_pre()
112 priv_check_cred_post(struct ucred *cred, int priv, int error, bool handled) in priv_check_cred_post() argument
123 error = 0; in priv_check_cred_post()
[all …]
H A Dvfs_mountroot.c150 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()
251 int error; in vfs_mountroot_devfs() local
259 error = vfs_busy(rootdevmp, 0); in vfs_mountroot_devfs()
260 if (error != 0) in vfs_mountroot_devfs()
261 return (error); in vfs_mountroot_devfs()
271 error = VFS_MOUNT(mp); in vfs_mountroot_devfs()
[all …]
/freebsd/sys/netinet/
H A Dsctp_syscalls.c102 int error; in sctp_syscalls_init() local
104 error = syscall_helper_register(sctp_syscalls, SY_THR_STATIC_KLD); in sctp_syscalls_init()
105 if (error != 0) in sctp_syscalls_init()
106 return (error); in sctp_syscalls_init()
108 error = syscall32_helper_register(sctp32_syscalls, SY_THR_STATIC_KLD); in sctp_syscalls_init()
109 if (error != 0) in sctp_syscalls_init()
110 return (error); in sctp_syscalls_init()
122 int error; in sctp_syscalls_uninit() local
125 error = syscall32_helper_unregister(sctp32_syscalls); in sctp_syscalls_uninit()
126 if (error != 0) in sctp_syscalls_uninit()
[all …]
/freebsd/contrib/processor-trace/libipt/test/src/
H A Dptunit-cpu.c53 int error; in cpu_valid() local
55 error = pt_cpu_parse(&cpu, "6/44/2"); in cpu_valid()
56 ptu_int_eq(error, 0); in cpu_valid()
62 error = pt_cpu_parse(&cpu, "0xf/0x2c/0xf"); in cpu_valid()
63 ptu_int_eq(error, 0); in cpu_valid()
69 error = pt_cpu_parse(&cpu, "022/054/017"); in cpu_valid()
70 ptu_int_eq(error, 0); in cpu_valid()
76 error = pt_cpu_parse(&cpu, "6/44"); in cpu_valid()
77 ptu_int_eq(error, 0); in cpu_valid()
89 int error; in cpu_null() local
[all …]
/freebsd/contrib/lib9p/
H A Drequest.c369 int error; in l9p_respond() local
373 error = req->lr_error; in l9p_respond()
374 if (error == 0) in l9p_respond()
379 req->lr_resp.error.errnum = (uint32_t)e2linux(error); in l9p_respond()
382 req->lr_resp.error.ename = strerror(error); in l9p_respond()
383 req->lr_resp.error.errnum = (uint32_t)e29p(error); in l9p_respond()
411 error = drop ? 0 : in l9p_respond()
415 if (error != 0) { in l9p_respond()
615 int error; in l9p_dispatch_tattach() local
625 error = fid_lookup(conn, req->lr_req.tattach.afid, EINVAL, in l9p_dispatch_tattach()
[all …]
/freebsd/contrib/bmake/unit-tests/
H A Dvarmod-to-separator.mk10 . error
15 . error
20 . error
26 . error
33 . error
45 . error
52 . error
59 . error
64 . error
69 . error
[all …]
H A Dcond-cmp-string.mk8 . error
13 . error
20 . error
32 . error
38 . error
45 . error
47 . error
53 . error
55 . error
61 . error
[all …]
/freebsd/sys/compat/freebsd32/
H A Dfreebsd32_misc.c227 int error, status; in freebsd32_wait4() local
235 error = kern_wait(td, uap->pid, &status, uap->options, rup); in freebsd32_wait4()
236 if (error) in freebsd32_wait4()
237 return (error); in freebsd32_wait4()
239 error = copyout(&status, uap->status, sizeof(status)); in freebsd32_wait4()
240 if (uap->rusage != NULL && error == 0) { in freebsd32_wait4()
242 error = copyout(&ru32, uap->rusage, sizeof(ru32)); in freebsd32_wait4()
244 return (error); in freebsd32_wait4()
254 int error, status; in freebsd32_wait6() local
265 error = kern_wait6(td, uap->idtype, PAIR32TO64(id_t, uap->id), in freebsd32_wait6()
[all …]
/freebsd/sys/dev/iicbus/rtc/
H A Dds3231.c85 int error; in ds3231_ctrl_read() local
87 error = ds3231_read1(sc->sc_dev, DS3231_CONTROL, &sc->sc_ctrl); in ds3231_ctrl_read()
88 if (error) { in ds3231_ctrl_read()
90 return (error); in ds3231_ctrl_read()
98 int error; in ds3231_ctrl_write() local
103 error = ds3231_write1(sc->sc_dev, DS3231_CONTROL, data); in ds3231_ctrl_write()
104 if (error != 0) in ds3231_ctrl_write()
107 return (error); in ds3231_ctrl_write()
113 int error; in ds3231_status_read() local
115 error = ds3231_read1(sc->sc_dev, DS3231_STATUS, &sc->sc_status); in ds3231_status_read()
[all …]
/freebsd/sys/fs/p9fs/
H A Dp9_client.c64 static struct p9_req_t *p9_get_request(struct p9_client *c, int *error);
66 struct p9_client *c, int8_t type, int *error, const char *fmt, ...);
86 int error, len; in p9_parse_opts() local
92 error = vfs_getopt(mp->mnt_optnew, "trans", (void **)&trans, &len); in p9_parse_opts()
93 if (error == ENOENT) in p9_parse_opts()
150 p9_get_request(struct p9_client *clnt, int *error) in p9_get_request() argument
164 *error = EAGAIN; in p9_get_request()
180 int error; in p9_parse_receive() local
189 error = p9_buf_readf(buf, 0, "dbw", &size, &type, &tag); in p9_parse_receive()
190 if (error != 0) in p9_parse_receive()
[all …]
/freebsd/tests/sys/netinet/
H A Dso_reuseport_lb_test.c59 int csd, error, excnt, sd; in lb_simple_accept_loop() local
76 error = connect(sd, addr, addr->sa_len); in lb_simple_accept_loop()
77 ATF_REQUIRE_MSG(error == 0, "connect() failed: %s", in lb_simple_accept_loop()
80 error = setsockopt(sd, SOL_SOCKET, SO_LINGER, &lopt, sizeof(lopt)); in lb_simple_accept_loop()
81 ATF_REQUIRE_MSG(error == 0, "Setting linger failed: %s", in lb_simple_accept_loop()
98 error = close(csd); in lb_simple_accept_loop()
99 ATF_REQUIRE_MSG(error == 0, in lb_simple_accept_loop()
107 error = close(sd); in lb_simple_accept_loop()
108 ATF_REQUIRE_MSG(error == 0, "close() failed: %s", in lb_simple_accept_loop()
120 int error, sd; in lb_listen_socket() local
[all …]

12345678910>>...237