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

1234567891011>>

/freebsd-11-stable/tools/regression/sockets/unix_cmsg/
H A Dt_generic.c42 int fd, rv, rv_client; local
48 rv = -2;
50 rv = client_func(fd);
52 rv = -2;
54 uc_client_exit(rv);
59 rv = -2;
61 rv = server_func(fd);
63 if (rv == 0 || (rv == -2 && rv_client != 0))
64 rv
[all...]
H A Dt_sockcred.c47 int rv; local
52 rv = -2;
66 rv = 0;
68 return (rv);
80 int fd2, rv, val; local
83 rv = -2;
122 rv = -1;
128 rv = -2;
145 rv = 0;
150 rv
158 int fd, rv, rv_client; local
[all...]
/freebsd-11-stable/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-11-stable/contrib/apr/locks/unix/
H A Dthread_mutex.c26 apr_status_t rv; local
28 rv = pthread_mutex_destroy(&mutex->mutex);
30 if (rv) {
31 rv = errno;
34 return rv;
42 apr_status_t rv; local
57 rv = pthread_mutexattr_init(&mattr);
58 if (rv) return rv;
60 rv
103 apr_status_t rv; local
149 apr_status_t rv; local
195 apr_status_t rv = APR_ENOTIMPL; local
319 apr_status_t rv, rv2 = APR_SUCCESS; local
[all...]
H A Dthread_cond.c27 apr_status_t rv; local
29 rv = pthread_cond_destroy(&cond->cond);
31 if (rv) {
32 rv = errno;
35 return rv;
42 apr_status_t rv; local
48 if ((rv = pthread_cond_init(&new_cond->cond, NULL))) {
50 rv = errno;
52 return rv;
66 apr_status_t rv; local
81 apr_status_t rv; local
114 apr_status_t rv; local
127 apr_status_t rv; local
[all...]
H A Dglobal_mutex.c28 apr_status_t rv; local
30 rv = apr_proc_mutex_destroy(m->proc_mutex);
34 if (rv != APR_SUCCESS) {
38 rv = apr_thread_mutex_destroy(m->thread_mutex);
43 return rv;
51 apr_status_t rv; local
57 rv = apr_proc_mutex_create(&m->proc_mutex, fname, mech, m->pool);
58 if (rv != APR_SUCCESS) {
59 return rv;
67 rv
87 apr_status_t rv; local
95 apr_status_t rv; local
121 apr_status_t rv; local
149 apr_status_t rv; local
188 apr_status_t rv; local
237 apr_status_t rv; local
[all...]
/freebsd-11-stable/contrib/apr-util/test/
H A Dtestqueue.c38 apr_status_t rv; local
46 rv = apr_queue_pop(queue, &v);
48 if (rv == APR_EINTR)
51 if (rv == APR_EOF)
55 ABTS_TRUE(tc, rv == APR_SUCCESS);
67 apr_status_t rv; local
74 rv = apr_queue_push(queue, NULL);
76 if (rv == APR_EINTR)
79 if (rv == APR_EOF)
82 ABTS_TRUE(tc, rv
93 apr_status_t rv; local
[all...]
H A Ddbd.c25 rv = func(pool, sql, driver); \
26 if (rv != 0) { \
27 printf("Error in %s: rc=%d\n\n", msg, rv); \
37 int rv = 0; local
43 rv = apr_dbd_query(driver, handle, &nrows, statement);
44 return rv;
49 int rv = 0; local
52 rv = apr_dbd_query(driver, handle, &nrows, statement);
53 return rv;
59 int rv local
96 int rv = 0; local
110 int rv = 0; local
142 int rv = 0; local
198 int rv = 0; local
271 int rv = 0; local
315 int rv = 0; local
349 int rv; local
[all...]
H A Dtest_apu.h38 apr_status_t rv; \
39 if ((rv = func) == value){ \
42 fprintf(stderr, "Error was %d : %s\n", rv, \
43 apr_strerror(rv, (char*)&errmsg, 200)); \
52 apr_status_t rv; \
53 if ((rv = func) != value){ \
56 fprintf(stderr, "Error was %d : %s\n", rv, \
57 apr_strerror(rv, (char*)&errmsg, 200)); \
66 apr_status_t rv = func; \
67 if (!testmacro(rv)) { \
[all...]
H A Dtestutil.c26 void apr_assert_success(abts_case* tc, const char* context, apr_status_t rv) argument
28 if (rv == APR_ENOTIMPL) {
32 if (rv != APR_SUCCESS) {
34 sprintf(buf, "%s (%d): %s\n", context, rv,
35 apr_strerror(rv, ebuf, sizeof ebuf));
40 void apr_assert_failure(abts_case* tc, const char* context, apr_status_t rv, argument
43 if (rv == APR_ENOTIMPL) {
45 } else if (rv == APR_SUCCESS) {
47 sprintf(buf, "%s (%d): expected failure, got success\n", context, rv);
H A Dtestxml.c27 apr_status_t rv; local
31 rv = apr_file_mktemp(fd, template, APR_FOPEN_CREATE | APR_FOPEN_TRUNCATE | APR_FOPEN_DELONCLOSE |
33 ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
35 if (rv != APR_SUCCESS)
36 return rv;
38 rv = apr_file_puts("<?xml version=\"1.0\" ?>\n<maryx>"
40 ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
43 rv = apr_file_puts("<hmm roast=\"lamb\" "
45 ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
48 rv
61 apr_status_t rv; local
125 apr_status_t rv; local
156 apr_status_t rv; local
173 apr_status_t rv; local
186 apr_status_t rv; local
[all...]
H A Dtestmemcache.c133 apr_status_t rv; local
140 rv = apr_memcache_create(pool, max_servers, 0, &memcache);
141 ABTS_ASSERT(tc, "memcache create failed", rv == APR_SUCCESS);
147 rv =
149 ABTS_ASSERT(tc, "server create failed", rv == APR_SUCCESS);
151 rv = apr_memcache_add_server(memcache, server);
152 ABTS_ASSERT(tc, "server add failed", rv == APR_SUCCESS);
157 rv = apr_memcache_disable_server(memcache, s);
158 ABTS_ASSERT(tc, "server disable failed", rv == APR_SUCCESS);
160 rv
199 apr_status_t rv; local
250 apr_status_t rv; local
308 apr_status_t rv; local
367 apr_status_t rv; local
420 apr_status_t rv; local
487 apr_status_t rv; local
544 apr_status_t rv; local
604 apr_status_t rv; local
[all...]
H A Dtestredis.c134 apr_status_t rv; local
141 rv = apr_redis_create(pool, max_servers, 0, &redis);
142 ABTS_ASSERT(tc, "redis create failed", rv == APR_SUCCESS);
148 rv =
150 ABTS_ASSERT(tc, "server create failed", rv == APR_SUCCESS);
152 rv = apr_redis_add_server(redis, server);
153 ABTS_ASSERT(tc, "server add failed", rv == APR_SUCCESS);
158 rv = apr_redis_disable_server(redis, s);
159 ABTS_ASSERT(tc, "server disable failed", rv == APR_SUCCESS);
161 rv
200 apr_status_t rv; local
251 apr_status_t rv; local
301 apr_status_t rv; local
356 apr_status_t rv; local
412 apr_status_t rv; local
471 apr_status_t rv; local
530 apr_status_t rv; local
[all...]
/freebsd-11-stable/contrib/apr-util/misc/
H A Dapr_queue.c105 apr_status_t rv; local
111 rv = apr_thread_mutex_create(&queue->one_big_mutex,
114 if (rv != APR_SUCCESS) {
115 return rv;
118 rv = apr_thread_cond_create(&queue->not_empty, a);
119 if (rv != APR_SUCCESS) {
120 return rv;
123 rv = apr_thread_cond_create(&queue->not_full, a);
124 if (rv != APR_SUCCESS) {
125 return rv;
150 apr_status_t rv; local
213 apr_status_t rv; local
263 apr_status_t rv; local
327 apr_status_t rv; local
364 apr_status_t rv; local
381 apr_status_t rv; local
[all...]
/freebsd-11-stable/contrib/apr/network_io/unix/
H A Dsocket_util.c23 apr_status_t rv; local
36 rv = apr_poll(&pfds[0], 1, &nfds, 0);
37 } while (APR_STATUS_IS_EINTR(rv));
39 if (APR_STATUS_IS_TIMEUP(rv)) {
45 else if (rv) {
47 return rv;
57 rv = apr_socket_recvfrom(&unused, sock, MSG_PEEK, &buf, &len);
58 if (rv == APR_EOF) {
62 else if (rv) {
64 return rv;
[all...]
/freebsd-11-stable/contrib/serf/
H A Dincoming.c42 apr_status_t rv; local
44 rv = read_from_client(client);
45 if (rv) {
46 return rv;
59 rv = write_to_client(client);
60 if (rv) {
61 return rv;
70 apr_status_t rv; local
76 rv = apr_socket_accept(&in, l->skt, p);
78 if (rv) {
102 apr_status_t rv; local
133 apr_status_t rv; local
[all...]
/freebsd-11-stable/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-11-stable/stand/libsa/
H A Dstat.c44 int fd, rv; local
49 rv = fstat(fd, sb);
51 return (rv);
/freebsd-11-stable/sys/vm/
H A Dvm_reserv.c235 static void vm_reserv_break(vm_reserv_t rv);
236 static void vm_reserv_depopulate(vm_reserv_t rv, int index);
238 static boolean_t vm_reserv_has_pindex(vm_reserv_t rv,
240 static void vm_reserv_populate(vm_reserv_t rv, int index);
241 static void vm_reserv_reclaim(vm_reserv_t rv);
254 vm_reserv_t rv; local
263 rv = &vm_reserv_array[paddr >> VM_LEVEL_0_SHIFT];
264 fullpop += rv->popcnt == VM_LEVEL_0_NPAGES;
278 vm_reserv_t rv; local
290 TAILQ_FOREACH(rv,
312 vm_reserv_depopulate(vm_reserv_t rv, int index) argument
360 vm_reserv_has_pindex(vm_reserv_t rv, vm_pindex_t pindex) argument
373 vm_reserv_populate(vm_reserv_t rv, int index) argument
422 vm_reserv_t rv; local
619 vm_reserv_t rv; local
739 vm_reserv_break(vm_reserv_t rv) argument
801 vm_reserv_t rv; local
825 vm_reserv_t rv; local
871 vm_reserv_t rv; local
887 vm_reserv_t rv; local
900 vm_reserv_t rv; local
913 vm_reserv_reclaim(vm_reserv_t rv) argument
935 vm_reserv_t rv; local
958 vm_reserv_t rv; local
1047 vm_reserv_t rv; local
1120 vm_reserv_t rv; local
[all...]
/freebsd-11-stable/sys/cddl/contrib/opensolaris/common/nvpair/
H A Dopensolaris_fnvpair.c102 nvlist_t *rv; local
103 VERIFY0(nvlist_unpack(buf, buflen, &rv, KM_SLEEP));
104 return (rv);
110 nvlist_t *rv; local
111 VERIFY0(nvlist_dup(nvl, &rv, KM_SLEEP));
112 return (rv);
310 nvpair_t *rv; local
311 VERIFY0(nvlist_lookup_nvpair(nvl, name, &rv));
312 return (rv);
325 boolean_t rv; local
333 uchar_t rv; local
341 int8_t rv; local
349 int16_t rv; local
357 int32_t rv; local
365 int64_t rv; local
373 uint8_t rv; local
381 uint16_t rv; local
389 uint32_t rv; local
397 uint64_t rv; local
405 char *rv; local
413 nvlist_t *rv; local
421 boolean_t rv; local
429 uchar_t rv; local
437 int8_t rv; local
445 int16_t rv; local
453 int32_t rv; local
461 int64_t rv; local
469 uint8_t rv; local
477 uint16_t rv; local
485 uint32_t rv; local
493 uint64_t rv; local
501 char *rv; local
509 nvlist_t *rv; local
[all...]
/freebsd-11-stable/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-11-stable/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-11-stable/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-11-stable/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-11-stable/sys/arm/nvidia/
H A Das3722.c82 int rv; local
92 rv = iicbus_transfer(sc->dev, msgs, 2);
93 if (rv != 0) {
95 "Error when reading reg 0x%02X, rv: %d\n", reg, rv);
106 int rv; local
116 rv = iicbus_transfer(sc->dev, msgs, 2);
117 if (rv != 0) {
119 "Error when reading reg 0x%02X, rv: %d\n", reg, rv);
130 int rv; local
153 int rv; local
176 int rv; local
196 int rv; local
221 int rv; local
289 int dunit, rv, rid; local
[all...]

Completed in 133 milliseconds

1234567891011>>