| /mirbsd/src/sys/dev/raidframe/ |
| D | rf_threadstuff.c | 50 int rc; in mutex_destroyer() local 52 rc = rf_mutex_destroy(arg); in mutex_destroyer() 53 if (rc) { in mutex_destroyer() 54 RF_ERRORMSG1("RAIDFRAME: Error %d auto-destroying mutex\n", rc); in mutex_destroyer() 61 int rc; in cond_destroyer() local 63 rc = rf_cond_destroy(arg); in cond_destroyer() 64 if (rc) { in cond_destroyer() 66 rc); in cond_destroyer() 74 int rc, rc1; in _rf_create_managed_mutex() local 76 rc = rf_mutex_init(m); in _rf_create_managed_mutex() [all …]
|
| D | rf_driver.c | 182 int rc; in rf_BootRaidframe() local 188 rc = rf_mutex_init(&configureMutex); in rf_BootRaidframe() 189 if (rc) { in rf_BootRaidframe() 191 __FILE__, __LINE__, rc); in rf_BootRaidframe() 210 int rc; in rf_UnbootRaidframe() local 219 rc = rf_mutex_destroy(&configureMutex); in rf_UnbootRaidframe() 220 if (rc) { in rf_UnbootRaidframe() 222 " rc=%d.\n", __FILE__, __LINE__, rc); in rf_UnbootRaidframe() 235 int rc; in rf_UnconfigureArray() local 244 rc = rf_ShutdownList(&globalShutdown); in rf_UnconfigureArray() [all …]
|
| D | rf_mcpair.c | 60 int rc; in rf_init_mcpair() local 62 rc = rf_mutex_init(&t->mutex); in rf_init_mcpair() 63 if (rc) { in rf_init_mcpair() 65 __FILE__, __LINE__, rc); in rf_init_mcpair() 66 return (rc); in rf_init_mcpair() 68 rc = rf_cond_init(&t->cond); in rf_init_mcpair() 69 if (rc) { in rf_init_mcpair() 71 __FILE__, __LINE__, rc); in rf_init_mcpair() 73 return (rc); in rf_init_mcpair() 95 int rc; in rf_ConfigureMCPair() local [all …]
|
| D | rf_paritylogging.c | 80 int i, j, startdisk, rc; in rf_ConfigureParityLogging() local 249 rc = rf_mutex_init(&raidPtr->parityLogPool.mutex); in rf_ConfigureParityLogging() 250 if (rc) { in rf_ConfigureParityLogging() 252 __FILE__, __LINE__, rc); in rf_ConfigureParityLogging() 315 rc = rf_ShutdownCreate(listp, rf_ShutdownParityLoggingPool, raidPtr); in rf_ConfigureParityLogging() 316 if (rc) { in rf_ConfigureParityLogging() 318 " rc=%d\n", __FILE__, __LINE__, rc); in rf_ConfigureParityLogging() 320 return (rc); in rf_ConfigureParityLogging() 323 rc = rf_mutex_init(&raidPtr->regionBufferPool.mutex); in rf_ConfigureParityLogging() 324 if (rc) { in rf_ConfigureParityLogging() [all …]
|
| D | rf_diskqueue.c | 199 int rc; in rf_ConfigureDiskQueue() local 216 rc = rf_create_managed_mutex(listp, &diskqueue->mutex); in rf_ConfigureDiskQueue() 217 if (rc) { in rf_ConfigureDiskQueue() 219 __FILE__, __LINE__, rc); in rf_ConfigureDiskQueue() 220 return (rc); in rf_ConfigureDiskQueue() 222 rc = rf_create_managed_cond(listp, &diskqueue->cond); in rf_ConfigureDiskQueue() 223 if (rc) { in rf_ConfigureDiskQueue() 225 __FILE__, __LINE__, rc); in rf_ConfigureDiskQueue() 226 return (rc); in rf_ConfigureDiskQueue() 241 int rc; in rf_ConfigureDiskQueueSystem() local [all …]
|
| /mirbsd/src/lib/libcitrus_iconv/libc/citrus/modules/ |
| D | citrus_mapper_std.c | 87 struct _citrus_mapper_std_rowcol *rc = &ms->ms_rowcol; in rowcol_convert() local 91 if (rc->rc_src_col_bits == 32) { in rowcol_convert() 95 row = src >> rc->rc_src_col_bits; in rowcol_convert() 96 col = src & ((1U<<rc->rc_src_col_bits)-1); in rowcol_convert() 98 if (row < rc->rc_src_row_begin || row > rc->rc_src_row_end || in rowcol_convert() 99 col < rc->rc_src_col_begin || col > rc->rc_src_col_end) { in rowcol_convert() 100 switch (rc->rc_oob_mode) { in rowcol_convert() 102 *dst = rc->rc_dst_invalid; in rowcol_convert() 112 (row - rc->rc_src_row_begin)*rc->rc_src_col_width + in rowcol_convert() 113 (col - rc->rc_src_col_begin); in rowcol_convert() [all …]
|
| /mirbsd/src/gnu/usr.bin/perl/os2/ |
| D | dl_os2.c | 23 char *os2error(int rc); 56 ULONG obj, offset, rc; in find_myself() local 66 rc = DosQueryProcAddr(doscalls_h, 360, 0, (PFN*)&pDosQueryModFromEIP); in find_myself() 67 if (rc) in find_myself() 69 rc = pDosQueryModFromEIP(&mod, &obj, sizeof(buf), buf, &offset, (ULONG)dlopen); in find_myself() 70 if (rc) in find_myself() 84 ULONG rc; in dlopen() local 94 rc = DosQueryModuleName(dllHandle, sizeof(dllname), dllname); in dlopen() 95 if (rc) { in dlopen() 97 retcode = rc; in dlopen() [all …]
|
| D | os2ish.h | 116 extern int rc; 120 int rc; \ 121 if ((rc = _rmutex_create(m,0))) \ 122 Perl_croak_nocontext("panic: MUTEX_INIT: rc=%i", rc); \ 126 int rc; \ 127 if ((rc = _rmutex_request(m,_FMR_IGNINT))) \ 128 Perl_croak_nocontext("panic: MUTEX_LOCK: rc=%i", rc); \ 132 int rc; \ 133 if ((rc = _rmutex_release(m))) \ 134 Perl_croak_nocontext("panic: MUTEX_UNLOCK: rc=%i", rc); \ [all …]
|
| D | os2.c | 340 void *rc; in pthread_startit() local 382 rc = (*args.sub)(args.arg); in pthread_startit() 388 *((void**)thread_join_data[tid].status) = rc; in pthread_startit() 397 thread_join_data[tid].status = rc; in pthread_startit() 490 int rc; in os2_cond_wait() local 492 if ((rc = DosResetEventSem(*c,&n_a)) && (rc != ERROR_ALREADY_RESET)) in os2_cond_wait() 493 Perl_rc = rc, croak_with_os2error("panic: COND_WAIT-reset"); in os2_cond_wait() 496 && (rc != ERROR_INTERRUPT)) in os2_cond_wait() 498 if (rc == ERROR_INTERRUPT) in os2_cond_wait() 659 int rc; in my_type() local [all …]
|
| /mirbsd/src/usr.sbin/httpd/src/modules/ssl/ |
| D | ssl_engine_io.c | 212 int rc; in ssl_io_suck() local 219 if ((rc = ap_setup_client_block(r, REQUEST_CHUNKED_DECHUNK)) == OK) { in ssl_io_suck() 325 int rc; in ssl_io_hook_read() local 328 rc = SSL_read(ssl, buf, len); in ssl_io_hook_read() 334 if (rc < 0 && SSL_get_error(ssl, rc) == SSL_ERROR_WANT_READ) in ssl_io_hook_read() 339 if (rc < 0 && SSL_get_error(ssl, rc) == SSL_ERROR_SSL) { in ssl_io_hook_read() 347 if (rc < 0) in ssl_io_hook_read() 348 rc = -1; in ssl_io_hook_read() 351 rc = read(fb->fd_in, buf, len); in ssl_io_hook_read() 352 return rc; in ssl_io_hook_read() [all …]
|
| D | ssl_util_ssl.c | 103 X509 *rc; in SSL_read_X509() local 108 rc = PEM_read_X509(fp, x509, cb, NULL); in SSL_read_X509() 109 if (rc == NULL) { in SSL_read_X509() 120 rc = d2i_X509_bio(bioS, NULL); in SSL_read_X509() 122 if (rc == NULL) { in SSL_read_X509() 128 rc = d2i_X509_bio(bioS, NULL); in SSL_read_X509() 132 if (rc != NULL && x509 != NULL) { in SSL_read_X509() 135 *x509 = rc; in SSL_read_X509() 137 return rc; in SSL_read_X509() 142 EVP_PKEY *rc; in SSL_read_PrivateKey() local [all …]
|
| D | ssl_engine_mutex.c | 213 int rc = -1; in ssl_mutex_file_acquire() local 223 while ( ((rc = fcntl(mc->nMutexFD, F_SETLKW, &lock_it)) < 0) in ssl_mutex_file_acquire() 228 while ( ((rc = flock(mc->nMutexFD, LOCK_EX)) < 0) in ssl_mutex_file_acquire() 233 if (rc < 0) in ssl_mutex_file_acquire() 241 int rc = -1; in ssl_mutex_file_release() local 251 while ( (rc = fcntl(mc->nMutexFD, F_SETLKW, &unlock_it)) < 0 in ssl_mutex_file_release() 256 while ( (rc = flock(mc->nMutexFD, LOCK_UN)) < 0 in ssl_mutex_file_release() 261 if (rc < 0) in ssl_mutex_file_release() 322 int rc = 0; in ssl_mutex_sem_acquire() local 330 while ( (rc = semop(mc->nMutexSEMID, sb, 2)) < 0 in ssl_mutex_sem_acquire() [all …]
|
| /mirbsd/src/usr.sbin/mrouted/ |
| D | rsrr.c | 399 struct rsrr_cache *rc, **rcnp; in rsrr_cache() local 405 while ((rc = *rcnp) != NULL) { in rsrr_cache() 406 if ((rc->route_query.source_addr.s_addr == in rsrr_cache() 408 (rc->route_query.dest_addr.s_addr == in rsrr_cache() 410 (!strcmp(rc->client_addr.sun_path,client_addr.sun_path))) { in rsrr_cache() 416 *rcnp = rc->next; in rsrr_cache() 417 free(rc); in rsrr_cache() 420 rc->route_query.query_id = route_query->query_id; in rsrr_cache() 423 rc->route_query.query_id, rc->client_addr.sun_path); in rsrr_cache() 427 rcnp = &rc->next; in rsrr_cache() [all …]
|
| /mirbsd/src/sys/lib/libsa/ |
| D | ufs.c | 115 int rc; in read_inode() local 122 rc = (f->f_dev->dv_strategy)(f->f_devdata, F_READ, in read_inode() 125 if (rc) in read_inode() 128 rc = EIO; in read_inode() 152 return (rc); in read_inode() 165 int level, idx, rc; in block_map() local 227 rc = (f->f_dev->dv_strategy)(f->f_devdata, F_READ, in block_map() 230 if (rc) in block_map() 231 return (rc); in block_map() 264 int rc; in buf_read_file() local [all …]
|
| D | cd9660.c | 140 int rc; in cd9660_open() local 148 rc = f->f_dev->dv_strategy(f->f_devdata, F_READ, cdb2devb(bno), in cd9660_open() 150 if (rc) in cd9660_open() 153 rc = EIO; in cd9660_open() 156 rc = EINVAL; in cd9660_open() 177 rc = f->f_dev->dv_strategy(f->f_devdata, F_READ, cdb2devb(bno), in cd9660_open() 179 if (rc) in cd9660_open() 182 rc = EIO; in cd9660_open() 191 rc = ENOENT; in cd9660_open() 226 rc = f->f_dev->dv_strategy(f->f_devdata, F_READ, in cd9660_open() [all …]
|
| /mirbsd/src/usr.bin/cdio/ |
| D | cdio.c | 325 int l, r, rc; in run() local 373 rc = ioctl(fd, CDIOCSTOP); in run() 377 return (rc); in run() 383 rc = ioctl(fd, CDIOCRESET); in run() 384 if (rc < 0) in run() 385 return rc; in run() 429 rc = ioctl(fd, CDIOCEJECT); in run() 430 if (rc < 0) in run() 431 return (rc); in run() 445 rc = ioctl(fd, CDIOCPREVENT); in run() [all …]
|
| /mirbsd/src/sys/dev/ic/ |
| D | bt463.c | 251 bt463_init(rc) in bt463_init() argument 252 struct ramdac_cookie *rc; in bt463_init() 254 struct bt463data *data = (struct bt463data *)rc; 363 bt463_set_cmap(rc, cmapp) in bt463_set_cmap() argument 364 struct ramdac_cookie *rc; in bt463_set_cmap() 367 struct bt463data *data = (struct bt463data *)rc; 401 bt463_get_cmap(rc, cmapp) in bt463_get_cmap() argument 402 struct ramdac_cookie *rc; in bt463_get_cmap() 405 struct bt463data *data = (struct bt463data *)rc; 426 bt463_check_curcmap(rc, cursorp) in bt463_check_curcmap() argument [all …]
|
| D | ibm561.c | 196 ibm561_init(rc) in ibm561_init() argument 197 struct ramdac_cookie *rc; in ibm561_init() 199 struct ibm561data *data = (struct ibm561data *)rc; 272 ibm561_set_cmap(rc, cmapp) in ibm561_set_cmap() argument 273 struct ramdac_cookie *rc; in ibm561_set_cmap() 276 struct ibm561data *data = (struct ibm561data *)rc; 308 ibm561_get_cmap(rc, cmapp) in ibm561_get_cmap() argument 309 struct ramdac_cookie *rc; in ibm561_get_cmap() 312 struct ibm561data *data = (struct ibm561data *)rc; 341 ibm561_set_cursor(rc, cursorp) in ibm561_set_cursor() argument [all …]
|
| /mirbsd/src/usr.sbin/httpd/src/ap/ |
| D | ap_hook.c | 196 int rc; in ap_hook_configure() local 200 rc = FALSE; in ap_hook_configure() 218 rc = TRUE; in ap_hook_configure() 221 return rc; in ap_hook_configure() 305 int rc; in ap_hook_use() local 339 rc = TRUE; in ap_hook_use() 341 rc = FALSE; in ap_hook_use() 343 rc = TRUE; in ap_hook_use() 346 return rc; in ap_hook_use() 357 int rc; in ap_hook_call() local [all …]
|
| /mirbsd/src/gnu/usr.bin/perl/ext/Digest/MD5/ |
| D | Makefile.PL | 125 my $rc; 126 $rc = system("$cc_cmd $Config{ldflags} u32align.c $Config{libs}"); 127 if ($rc) { 133 $rc = system("./$exe"); 136 return 1 unless $rc; 138 if ($rc > 0x80) { 139 (my $cp = $rc) >>= 8; 142 if ($rc & 0x80) { 143 $rc &= ~0x80; 146 print "signal $rc\n" if $rc && $rc < 0x80;
|
| /mirbsd/src/gnu/usr.bin/perl/os2/OS2/REXX/ |
| D | REXX.xs | 74 LONG rc; in exec_in_REXX_with() local 85 rc = pRexxRegisterFunctionExe(handlerNames[n], handlers[n]); in exec_in_REXX_with() 86 if (rc == RXFUNC_DEFINED) in exec_in_REXX_with() 111 rc = pRexxStart(0, args, /* No arguments */ in exec_in_REXX_with() 143 if (rc || SvTRUE(GvSV(PL_errgv))) { in exec_in_REXX_with() 148 Perl_croak(aTHX_ "REXX compartment returned non-zero status %li", rc); in exec_in_REXX_with() 161 int i, rc; in PERLCALLcv() local 184 rc = perl_call_pv(name, G_SCALAR | G_EVAL); in PERLCALLcv() 186 rc = perl_call_sv(cv, G_SCALAR | G_EVAL); in PERLCALLcv() 188 rc = -1; in PERLCALLcv() [all …]
|
| /mirbsd/src/gnu/usr.bin/lynx/src/ |
| D | UCdomap.c | 841 int rc = 0; in UCTransUniChar() local 849 rc = (int) unicode; in UCTransUniChar() 851 rc = LYCharSet_UC[charset_out].codepage; in UCTransUniChar() 853 return rc; in UCTransUniChar() 867 rc = UC_con_set_unimap(UChndl_out, 1); in UCTransUniChar() 868 if (rc < 0) { in UCTransUniChar() 869 return rc; in UCTransUniChar() 872 rc = conv_uni_to_pc(unicode, 0); in UCTransUniChar() 873 if (rc >= 0) { in UCTransUniChar() 874 return rc; in UCTransUniChar() [all …]
|
| /mirbsd/src/lib/libncurses/src/ncurses/base/ |
| D | lib_getch.c | 63 int rc; in check_mouse_activity() local 71 rc = _nc_timed_wait(TWAIT_MASK, delay, (int *) 0 EVENTLIST_2nd(evl)); in check_mouse_activity() 75 && (rc == 0) in check_mouse_activity() 77 rc |= 2; in check_mouse_activity() 80 return rc; in check_mouse_activity() 264 int rc; in _nc_wgetch() local 269 rc = wgetnstr(win, buf, MAXCOLUMNS); in _nc_wgetch() 274 if (rc != KEY_EVENT) in _nc_wgetch() 282 if (rc == KEY_EVENT) { in _nc_wgetch() 283 *result = rc; in _nc_wgetch() [all …]
|
| /mirbsd/src/usr.sbin/httpd/src/include/ |
| D | ap_hook.h | 212 #define AP_HOOK_SIG1(rc) \ argument 213 (AP_HOOK_RC_##rc) 216 #define AP_HOOK_SIG2(rc,a1) \ argument 217 (AP_HOOK_RC_##rc|AP_HOOK_A1_##a1) 220 #define AP_HOOK_SIG3(rc,a1,a2) \ argument 221 (AP_HOOK_RC_##rc|AP_HOOK_A1_##a1|AP_HOOK_A2_##a2) 224 #define AP_HOOK_SIG4(rc,a1,a2,a3) \ argument 225 (AP_HOOK_RC_##rc|AP_HOOK_A1_##a1|AP_HOOK_A2_##a2|AP_HOOK_A3_##a3) 228 #define AP_HOOK_SIG5(rc,a1,a2,a3,a4) \ argument 229 (AP_HOOK_RC_##rc|AP_HOOK_A1_##a1|AP_HOOK_A2_##a2|AP_HOOK_A3_##a3|AP_HOOK_A4_##a4) [all …]
|
| /mirbsd/src/lib/libpthread/uthread/ |
| D | uthread_kevent.c | 46 int rc; in kevent() local 51 rc = _thread_sys_kevent(kq, changelist, nchanges, in kevent() 53 if (rc == 0 && eventlist != NULL && nevents > 0 && (timeout == NULL || in kevent() 70 rc = -1; in kevent() 73 rc = _thread_sys_kevent(kq, NULL, 0, in kevent() 75 } while (rc == 0 && curthread->timeout == 0); in kevent() 77 return (rc); in kevent()
|