/freebsd-10-stable/contrib/apr/locks/unix/ |
H A D | thread_cond.c | 27 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 104 apr_status_t rv; local 117 apr_status_t rv; local [all...] |
H A D | thread_mutex.c | 26 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 90 apr_status_t rv; local 104 apr_status_t rv; local [all...] |
H A D | global_mutex.c | 27 apr_status_t rv; local 29 rv = apr_proc_mutex_destroy(m->proc_mutex); 33 if (rv != APR_SUCCESS) { 37 rv = apr_thread_mutex_destroy(m->thread_mutex); 42 return rv; 50 apr_status_t rv; local 56 rv = apr_proc_mutex_create(&m->proc_mutex, fname, mech, m->pool); 57 if (rv != APR_SUCCESS) { 58 return rv; 66 rv 86 apr_status_t rv; local 94 apr_status_t rv; local 120 apr_status_t rv; local 146 apr_status_t rv; local [all...] |
/freebsd-10-stable/include/ |
H A D | nss.h | 49 #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-10-stable/contrib/apr-util/test/ |
H A D | testqueue.c | 38 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 D | dbd.c | 25 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 D | test_apu.h | 38 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 D | testutil.c | 26 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 D | testxml.c | 27 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 D | testmemcache.c | 133 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...] |
/freebsd-10-stable/contrib/apr-util/misc/ |
H A D | apr_queue.c | 105 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-10-stable/sys/vm/ |
H A D | vm_reserv.c | 173 static void vm_reserv_depopulate(vm_reserv_t rv); 175 static boolean_t vm_reserv_has_pindex(vm_reserv_t rv, 177 static void vm_reserv_populate(vm_reserv_t rv); 178 static void vm_reserv_reclaim(vm_reserv_t rv); 187 vm_reserv_t rv; local 199 TAILQ_FOREACH(rv, &vm_rvq_partpop/*[level]*/, partpopq) { 201 unused_pages += VM_LEVEL_0_NPAGES - rv->popcnt; 221 vm_reserv_depopulate(vm_reserv_t rv) argument 225 KASSERT(rv->object != NULL, 226 ("vm_reserv_depopulate: reserv %p is free", rv)); 265 vm_reserv_has_pindex(vm_reserv_t rv, vm_pindex_t pindex) argument 278 vm_reserv_populate(vm_reserv_t rv) argument 319 vm_reserv_t rv; local 511 vm_reserv_t rv; local 621 vm_reserv_t rv; local 657 vm_reserv_t rv; local 703 vm_reserv_t rv; local 723 vm_reserv_t rv; local 772 vm_reserv_reclaim(vm_reserv_t rv) argument 806 vm_reserv_t rv; local 830 vm_reserv_t rv; local 877 vm_reserv_t rv; local [all...] |
/freebsd-10-stable/contrib/apr/network_io/unix/ |
H A D | socket_util.c | 23 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-10-stable/contrib/serf/ |
H A D | incoming.c | 37 apr_status_t rv; local 39 rv = read_from_client(client); 40 if (rv) { 41 return rv; 54 rv = write_to_client(client); 55 if (rv) { 56 return rv; 65 apr_status_t rv; local 71 rv = apr_socket_accept(&in, l->skt, p); 73 if (rv) { 97 apr_status_t rv; local 128 apr_status_t rv; local [all...] |
/freebsd-10-stable/sbin/dhclient/ |
H A D | inet.c | 56 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-10-stable/lib/libstand/ |
H A D | stat.c | 44 int fd, rv; local 49 rv = fstat(fd, sb); 51 return (rv);
|
/freebsd-10-stable/sys/cddl/contrib/opensolaris/common/nvpair/ |
H A D | opensolaris_fnvpair.c | 102 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-10-stable/contrib/netbsd-tests/kernel/ |
H A D | msg.h | 69 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-10-stable/contrib/netbsd-tests/rump/kernspace/ |
H A D | thread.c | 58 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...] |
H A D | tsleep.c | 53 int i, rv; local 63 rv = mtsleep(tinythread, relock ? 0 : PNORELOCK, 67 if (rv != 0) 75 rv = mtsleep(rumptest_tsleep, PNORELOCK, "kepuli", 1, &mymtx); 76 if (rv != EWOULDBLOCK) 77 panic("mtsleep unexpected return value %d", rv); 86 int rv, i; local 91 rv = kthread_create(PRI_NONE, KTHREAD_MUSTJOIN| KTHREAD_MPSAFE, 93 if (rv) 94 panic("thread create failed: %d", rv); [all...] |
/freebsd-10-stable/lib/libc/include/ |
H A D | nss_tls.h | 55 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-10-stable/contrib/netbsd-tests/rump/rumpvfs/ |
H A D | t_basic.c | 59 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-10-stable/usr.sbin/eeprom/ |
H A D | eeprom.c | 62 int aflag, rv; local 67 rv = EX_OK; 96 rv == EX_OK) { 101 rv = action(line); 108 while (argc && rv == EX_OK) { 109 rv = action(*argv); 115 return (rv); 121 int rv; local 129 switch (rv = ofwo_action(keyword, arg)) { 138 return(rv); [all...] |
/freebsd-10-stable/contrib/gdtoa/ |
H A D | strtod.c | 72 double rv; local 75 rv = ulp(x); 77 return rv; /* Is there an example where i <= 0 ? */ 80 return rv * u.d; 100 U adj, aadj1, rv, rv0; local 146 dval(&rv) = 0.; 195 ULtod(((U*)&rv)->L, bits, exp, i); 308 word0(&rv) = 0x7ff00000; 309 word1(&rv) = 0; 320 word0(&rv) [all...] |
/freebsd-10-stable/lib/libpam/modules/pam_ksu/ |
H A D | pam_ksu.c | 60 long rv; local 71 rv = krb5_init_context(&context); 72 if (rv != 0) { 73 const char *msg = krb5_get_error_message(context, rv); 78 rv = get_su_principal(context, user, ruser, &su_principal_name, &su_principal); 79 if (rv != 0) 82 rv = krb5_kuserok(context, su_principal, user); 83 pamret = rv ? auth_krb5(pamh, context, su_principal_name, su_principal) : PAM_AUTH_ERR; 120 long rv; local 136 rv 187 long rv; local [all...] |