Searched refs:rv (Results 1 - 25 of 932) sorted by relevance

1234567891011>>

/freebsd-current/tools/regression/sockets/unix_cmsg/
H A Dt_generic.c39 int fd, rv, rv_client; local
45 rv = -2;
47 rv = client_func(fd);
49 rv = -2;
51 uc_client_exit(rv);
56 rv = -2;
58 rv = server_func(fd);
60 if (rv == 0 || (rv == -2 && rv_client != 0))
61 rv
[all...]
H A Dt_sockcred.c44 int rv; local
49 rv = -2;
63 rv = 0;
65 return (rv);
77 int fd2, rv, val; local
80 rv = -2;
119 rv = -1;
125 rv = -2;
142 rv = 0;
147 rv
155 int fd, rv, rv_client; local
[all...]
/freebsd-current/include/
H A Dnss.h49 #define __nss_compat_result(rv, err) \
50 ((rv == NSS_STATUS_TRYAGAIN && err == ERANGE) ? NS_RETURN : \
51 (rv == NSS_STATUS_TRYAGAIN) ? NS_TRYAGAIN : \
52 (rv == NSS_STATUS_UNAVAIL) ? NS_UNAVAIL : \
53 (rv == NSS_STATUS_NOTFOUND) ? NS_NOTFOUND : \
54 (rv == NSS_STATUS_SUCCESS) ? NS_SUCCESS : \
55 (rv == NSS_STATUS_RETURN) ? NS_RETURN : 0)
/freebsd-current/tools/test/stress2/misc/
H A Dkevent16.sh31 int rv;
34 rv = sigemptyset(&set);
35 assert(rv == 0);
36 rv = sigaddset(&set, SIGUSR1);
37 assert(rv == 0);
39 rv = sigprocmask(SIG_BLOCK, &set, NULL);
40 assert(rv == 0);
47 rv = kevent(skq, &kev, 1, NULL, 0, NULL);
48 assert(rv == 0);
54 rv
[all...]
/freebsd-current/tests/sys/kqueue/
H A Dkqueue_peek_signal.c42 int rv; local
45 rv = sigemptyset(&set);
46 ATF_REQUIRE_EQ(0, rv);
47 rv = sigaddset(&set, SIGUSR1);
48 ATF_REQUIRE_EQ(0, rv);
49 rv = sigprocmask(SIG_BLOCK, &set, NULL);
50 ATF_REQUIRE_EQ(0, rv);
57 rv = kevent(skq, &kev, 1, NULL, 0, NULL);
58 ATF_REQUIRE_EQ(0, rv);
64 rv
[all...]
/freebsd-current/stand/libsa/
H A Dstat.c37 int fd, rv; local
42 rv = fstat(fd, sb);
44 return (rv);
/freebsd-current/sys/contrib/openzfs/lib/libzfsbootenv/
H A Dlzbe_pair.c32 int rv = -1; local
35 return (rv);
38 return (rv);
44 return (rv);
47 rv = zpool_get_bootenv(zphdl, &nv);
48 if (rv == 0) {
52 rv = nvlist_lookup_nvlist(nv, key, &nvl);
53 if (rv == 0) {
54 rv = nvlist_dup(nvl, &dup, 0);
56 if (rv
80 int rv = -1; local
187 int rv = 0; local
[all...]
H A Dlzbe_util.c27 int rv = -1; local
30 return (rv);
32 rv = lzbe_nvlist_get(pool, nvlist, (void **)&nv);
33 if (rv == 0) {
38 return (rv);
H A Dlzbe_device.c35 int rv = -1; local
38 return (rv);
41 return (rv);
46 return (rv);
51 rv = zpool_get_bootenv(zphdl, &nv);
52 if (rv == 0) {
58 rv = nvlist_lookup_uint64(nv, BOOTENV_VERSION,
60 if (rv == 0 && version == VB_NVLIST)
71 return (rv);
77 rv
120 int rv = -1; local
[all...]
/freebsd-current/sys/vm/
H A Dvm_reserv.c151 #define vm_reserv_lockptr(rv) (&(rv)->lock)
152 #define vm_reserv_assert_locked(rv) \
153 mtx_assert(vm_reserv_lockptr(rv), MA_OWNED)
154 #define vm_reserv_lock(rv) mtx_lock(vm_reserv_lockptr(rv))
155 #define vm_reserv_trylock(rv) mtx_trylock(vm_reserv_lockptr(rv))
156 #define vm_reserv_unlock(rv) mtx_unlock(vm_reserv_lockptr(rv))
274 vm_reserv_t rv; local
304 vm_reserv_t rv; local
338 vm_reserv_remove(vm_reserv_t rv) argument
360 vm_reserv_insert(vm_reserv_t rv, vm_object_t object, vm_pindex_t pindex) argument
391 vm_reserv_depopulate(vm_reserv_t rv, int index) argument
466 vm_reserv_t rv; local
501 vm_reserv_has_pindex(vm_reserv_t rv, vm_pindex_t pindex) argument
512 vm_reserv_populate(vm_reserv_t rv, int index) argument
577 vm_reserv_t rv; local
771 vm_reserv_t rv; local
890 vm_reserv_break(vm_reserv_t rv) argument
928 vm_reserv_t rv; local
962 vm_reserv_t rv; local
991 struct vm_reserv *rv; local
1053 vm_reserv_t rv; local
1068 vm_reserv_t rv; local
1089 vm_reserv_t rv; local
1102 vm_reserv_t rv; local
1112 vm_reserv_dequeue(vm_reserv_t rv) argument
1131 vm_reserv_reclaim(vm_reserv_t rv) argument
1154 vm_reserv_t rv; local
1183 vm_reserv_find_contig(vm_reserv_t rv, int npages, int lo, int hi, int ppn_align, int ppn_bound) argument
1225 vm_reserv_t marker, rv, rvn; local
1326 vm_reserv_t rv; local
1431 vm_reserv_t rv; local
[all...]
/freebsd-current/crypto/openssl/providers/implementations/ciphers/
H A Dciphercommon_ccm_hw.c35 int rv; local
38 rv = CRYPTO_ccm128_encrypt_ccm64(&ctx->ccm_ctx, in,
41 rv = CRYPTO_ccm128_encrypt(&ctx->ccm_ctx, in, out, len) == 0;
43 if (rv == 1 && tag != NULL)
44 rv = (CRYPTO_ccm128_tag(&ctx->ccm_ctx, tag, taglen) > 0);
45 return rv;
52 int rv = 0; local
55 rv = CRYPTO_ccm128_decrypt_ccm64(&ctx->ccm_ctx, in, out, len,
58 rv = CRYPTO_ccm128_decrypt(&ctx->ccm_ctx, in, out, len) == 0;
59 if (rv) {
[all...]
/freebsd-current/sbin/dhclient/
H A Dinet.c56 struct iaddr rv; local
59 rv.len = 0;
63 return (rv);
65 rv.len = addr.len;
66 for (i = 0; i < rv.len; i++)
67 rv.iabuf[i] = addr.iabuf[i] & mask.iabuf[i];
68 return (rv);
79 struct iaddr rv; local
83 rv.len = 0;
84 return (rv);
[all...]
/freebsd-current/lib/libpam/modules/pam_xdg/
H A Dpam_xdg.c62 int rv, rt_dir_prefix, rt_dir, session_file, i; local
69 rv = pam_get_item(pamh, PAM_USER, (const void **)&user);
70 if (rv != PAM_SUCCESS) {
76 rv = PAM_SESSION_ERR;
86 rv = PAM_SESSION_ERR;
98 rv = PAM_SESSION_ERR;
101 rv = fchownat(rt_dir_prefix, user, passwd->pw_uid, passwd->pw_gid, 0);
102 if (rv != 0) {
103 PAM_VERBOSE_ERROR("fchownat: %s/%s (%d)", RUNTIME_DIR_PREFIX, user, rv);
104 rv
216 int rv, rt_dir_prefix, rt_dir, session_file, i; local
[all...]
/freebsd-current/sys/dev/hwreset/
H A Dhwreset_array.c56 int i, rv; local
59 rv = hwreset_assert(rsts->rst_array[i]);
60 if (rv != 0)
61 return (rv);
70 int i, rv; local
73 rv = hwreset_deassert(rsts->rst_array[i]);
74 if (rv != 0)
75 return (rv);
99 int count, i, rv; local
109 rv
[all...]
/freebsd-current/stand/userboot/userboot/
H A Ddevicename.c43 int rv; local
53 rv = devparse(dev, getenv("currdev"), NULL);
54 if (rv == 0 && path != NULL)
56 return (rv);
/freebsd-current/sys/dev/firmware/xilinx/
H A Dzynqmp_firmware.c127 int rv; local
129 rv = zynqmp_call_smc(PM_GET_API_VERSION, 0, 0, 0, 0, payload, false);
130 if (rv != 0) {
131 device_printf(sc->dev, "SMC Call fail %d\n", rv);
137 return (rv);
144 int rv; local
146 rv = zynqmp_call_smc(PM_GET_CHIPID, 0, 0, 0, 0, payload, false);
147 if (rv != 0) {
148 device_printf(sc->dev, "SMC Call fail %d\n", rv);
154 return (rv);
161 int rv; local
180 int rv; local
194 int rv; local
208 int rv; local
227 int rv; local
241 int rv; local
260 int rv; local
274 int rv; local
292 int rv; local
310 int rv; local
328 int rv; local
346 int rv; local
365 int rv; local
380 int rv; local
[all...]
/freebsd-current/sys/dev/nvmem/
H A Dnvmem.c74 int rv, idx; local
76 rv = ofw_bus_find_string_index(node, "nvmem-cell-names", name, &idx);
77 if (rv != 0)
78 return (rv);
80 rv = nvmem_get_cell_node(node, idx, &cell_node);
81 if (rv != 0)
82 return (rv);
100 int rv; local
102 rv = nvmem_get_cell_node(node, idx, &cell_node);
103 if (rv !
135 int rv, idx; local
150 int rv; local
189 int rv, idx; local
[all...]
/freebsd-current/contrib/netbsd-tests/kernel/
H A Dmsg.h69 ssize_t rv; local
74 rv = write(fds->pfd[1], msg, len);
75 if (rv != (ssize_t)len)
78 rv = read(fds->cfd[0], msg, len);
79 if (rv != (ssize_t)len)
87 ssize_t rv; local
92 rv = write(fds->cfd[1], msg, len);
93 if (rv != (ssize_t)len)
96 rv = read(fds->pfd[0], msg, len);
97 if (rv !
105 ssize_t rv; local
123 ssize_t rv; local
[all...]
/freebsd-current/lib/libc/secure/
H A Dsprintf_chk.c48 int rv; local
52 rv = vsprintf(buf, fmt, ap);
54 if ((rv = vsnprintf(buf, slen, fmt, ap)) >= 0 &&
55 (size_t)rv >= slen)
60 return (rv);
H A Dvsprintf_chk.c47 int rv; local
50 rv = vsprintf(buf, fmt, ap);
52 if ((rv = vsnprintf(buf, slen, fmt, ap)) >= 0 &&
53 (size_t)rv >= slen)
57 return (rv);
/freebsd-current/contrib/netbsd-tests/rump/kernspace/
H A Dthread.c58 int rv; local
60 rv = kthread_create(PRI_NONE, KTHREAD_MUSTJOIN | KTHREAD_MPSAFE, NULL,
62 if (rv)
63 panic("thread creation failed: %d", rv);
64 rv = kthread_join(newl);
65 if (rv)
66 panic("thread join failed: %d", rv);
92 int rv; local
96 rv = kthread_create(PRI_NONE, KTHREAD_MPSAFE, NULL,
98 if (rv)
[all...]
/freebsd-current/contrib/netbsd-tests/rump/rumpvfs/
H A Dt_basic.c59 off_t rv; local
65 rv = rump_sys_lseek(37, FIVE_MEGS, SEEK_SET);
66 ATF_REQUIRE_ERRNO(EBADF, rv == -1);
68 rv = rump_sys_lseek(fd, FIVE_MEGS, SEEK_SET);
69 ATF_REQUIRE_EQ(rv, FIVE_MEGS);
71 rv = rump_sys_lseek(fd, FIVE_GIGS, SEEK_SET);
72 ATF_REQUIRE_EQ(rv, FIVE_GIGS);
/freebsd-current/lib/libc/include/
H A Dnss_tls.h55 int rv; \
61 rv = _pthread_once(&keyinit, name##_keyinit); \
62 if (rv != 0) \
63 return (rv); \
70 rv = _pthread_setspecific(name##_state_key, *p); \
71 if (rv != 0) { \
75 return (rv); \
/freebsd-current/sys/arm/nvidia/
H A Das3722.c80 int rv; local
90 rv = iicbus_transfer(sc->dev, msgs, 2);
91 if (rv != 0) {
93 "Error when reading reg 0x%02X, rv: %d\n", reg, rv);
104 int rv; local
114 rv = iicbus_transfer(sc->dev, msgs, 2);
115 if (rv != 0) {
117 "Error when reading reg 0x%02X, rv: %d\n", reg, rv);
128 int rv; local
151 int rv; local
174 int rv; local
194 int rv; local
219 int rv; local
283 int rv, rid; local
[all...]
/freebsd-current/sys/contrib/openzfs/module/nvpair/
H A Dfnvpair.c99 nvlist_t *rv; local
100 VERIFY0(nvlist_unpack(buf, buflen, &rv, KM_SLEEP));
101 return (rv);
107 nvlist_t *rv; local
108 VERIFY0(nvlist_dup(nvl, &rv, KM_SLEEP));
109 return (rv);
313 nvpair_t *rv; local
314 VERIFY0(nvlist_lookup_nvpair(nvl, name, &rv));
315 return (rv);
328 boolean_t rv; local
336 uchar_t rv; local
344 int8_t rv; local
352 int16_t rv; local
360 int32_t rv; local
368 int64_t rv; local
376 uint8_t rv; local
384 uint16_t rv; local
392 uint32_t rv; local
400 uint64_t rv; local
408 const char *rv; local
416 nvlist_t *rv; local
423 boolean_t *rv; local
431 uchar_t *rv; local
439 int8_t *rv; local
447 uint8_t *rv; local
455 int16_t *rv; local
463 uint16_t *rv; local
471 int32_t *rv; local
479 uint32_t *rv; local
487 int64_t *rv; local
495 uint64_t *rv; local
503 boolean_t rv; local
511 uchar_t rv; local
519 int8_t rv; local
527 int16_t rv; local
535 int32_t rv; local
543 int64_t rv; local
551 uint8_t rv; local
559 uint16_t rv; local
567 uint32_t rv; local
575 uint64_t rv; local
583 const char *rv; local
591 nvlist_t *rv; local
[all...]

Completed in 232 milliseconds

1234567891011>>