/freebsd/lib/libc/tests/stdio/ |
H A D | scanfloat_test.c | 56 double d = 0.0; in ATF_TC_BODY() local 59 buf[0] = '\0'; in ATF_TC_BODY() 65 sscanf("3.141592653589793", "%lf", &d); in ATF_TC_BODY() 66 ATF_REQUIRE(eq(DBL, d, 3.141592653589793)); in ATF_TC_BODY() 71 sscanf("-1.234568e6", "%lF", &d); in ATF_TC_BODY() 72 ATF_REQUIRE(eq(DBL, d, -1.234568e6)); in ATF_TC_BODY() 77 sscanf("0.1", "%la", &d); in ATF_TC_BODY() 78 ATF_REQUIRE(eq(DBL, d, 0.1)); in ATF_TC_BODY() 80 sscanf("00.2", "%lA", &d); in ATF_TC_BODY() 81 ATF_REQUIRE(eq(DBL, d, 0.2)); in ATF_TC_BODY() [all …]
|
/freebsd/cddl/lib/libdtrace/ |
H A D | socket.d | 29 #pragma D depends_on module kernel 34 #pragma D binding "1.13" SO_DEBUG 35 inline int SO_DEBUG = 0x0001; /* turn on debugging info recording */ 36 #pragma D binding "1.13" SO_ACCEPTCONN 37 inline int SO_ACCEPTCONN = 0x0002; /* socket has had listen() */ 38 #pragma D binding "1.13" SO_REUSEADDR 39 inline int SO_REUSEADDR = 0x0004; /* allow local address reuse */ 40 #pragma D binding "1.13" SO_KEEPALIVE 41 inline int SO_KEEPALIVE = 0x0008; /* keep connections alive */ 42 #pragma D binding "1.13" SO_DONTROUTE [all …]
|
H A D | io.d | 28 #pragma D depends_on module kernel 29 #pragma D depends_on provider io 41 #pragma D binding "1.0" translator 42 translator devinfo_t < struct devstat *D > { 43 dev_major = D->device_number; 44 dev_minor = D->unit_number; 45 dev_instance = 0; 46 dev_type = D->device_type; 47 dev_name = stringof(D->device_name); 48 dev_statname = stringof(D->device_name); [all …]
|
/freebsd/sys/riscv/riscv/ |
H A D | db_disasm.c | 53 #define RD_MASK (0x1f << RD_SHIFT) 55 #define RS1_MASK (0x1f << RS1_SHIFT) 57 #define RS2_MASK (0x1f << RS2_SHIFT) 59 #define IMM_MASK (0xfff << IMM_SHIFT) 87 if (((insn ^ op->match) & op->mask) == 0) in m_op() 90 return (0); in m_op() 104 { "jalr", "d,o(s)", MATCH_JALR, MASK_JALR, m_op }, 105 { "jal", "d,a", MATCH_JAL, MASK_JAL, m_op }, 106 { "lui", "d,u", MATCH_LUI, MASK_LUI, m_op }, 107 { "auipc", "d,u", MATCH_AUIPC, MASK_AUIPC, m_op }, [all …]
|
/freebsd/sys/dev/sound/pcm/ |
H A D | sound.c | 55 &snd_unit_auto, 0, "assign default unit to a newly attached device"); 57 SYSCTL_NODE(_hw, OID_AUTO, snd, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, 99 struct snddev_info *d; in snd_setup_intr() local 103 d = device_get_softc(dev); in snd_setup_intr() 104 if (d != NULL && (flags & INTR_MPSAFE)) in snd_setup_intr() 105 d->flags |= SD_F_MPSAFE; in snd_setup_intr() 111 pcm_chnalloc(struct snddev_info *d, struct pcm_channel **ch, int direction, in pcm_chnalloc() argument 118 KASSERT(d != NULL && ch != NULL && in pcm_chnalloc() 120 ("%s(): invalid d=%p ch=%p direction=%d pid=%d", in pcm_chnalloc() 121 __func__, d, ch, direction, pid)); in pcm_chnalloc() [all …]
|
/freebsd/lib/libnetmap/ |
H A D | nmport.c | 52 nmport_push_cleanup(struct nmport_d *d, struct nmport_cleanup_d *c) in nmport_push_cleanup() argument 54 c->next = d->clist; in nmport_push_cleanup() 55 d->clist = c; in nmport_push_cleanup() 59 nmport_pop_cleanup(struct nmport_d *d) in nmport_pop_cleanup() argument 63 top = d->clist; in nmport_pop_cleanup() 64 d->clist = d->clist->next; in nmport_pop_cleanup() 65 (*top->cleanup)(top, d); in nmport_pop_cleanup() 66 nmctx_free(d->ctx, top); in nmport_pop_cleanup() 69 void nmport_do_cleanup(struct nmport_d *d) in nmport_do_cleanup() argument 71 while (d->clist != NULL) { in nmport_do_cleanup() [all …]
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.index.d.out | 5 printf("perl => index(\"foobarbaz\", \"barbaz\") = %d\n", 7 printf(" D => index(\"foobarbaz\", \"barbaz\") = 3\n"); 12 printf("perl => rindex(\"foobarbaz\", \"barbaz\") = %d\n", 14 printf(" D => rindex(\"foobarbaz\", \"barbaz\") = 3\n"); 18 if (index("foofoofoo", "foo") != 0) { 19 printf("perl => index(\"foofoofoo\", \"foo\") = %d\n", 21 printf(" D => index(\"foofoofoo\", \"foo\") = 0\n"); 26 printf("perl => rindex(\"foofoofoo\", \"foo\") = %d\n", 28 printf(" D => rindex(\"foofoofoo\", \"foo\") = 6\n"); 33 printf("perl => index(\"boofoofoo\", \"foo\") = %d\n", [all …]
|
/freebsd/sys/opencrypto/ |
H A D | rmd160.c | 45 (cp)[0] = (value); } while (0) 51 (cp)[0] = (value); } while (0) 53 #define H0 0x67452301U 54 #define H1 0xEFCDAB89U 55 #define H2 0x98BADCFEU 56 #define H3 0x10325476U 57 #define H4 0xC3D2E1F0U 59 #define K0 0x00000000U 60 #define K1 0x5A827999U 61 #define K2 0x6ED9EBA1U [all …]
|
/freebsd/crypto/heimdal/kdc/ |
H A D | connect.c | 76 if(strcmp(protocol, "udp") == 0) in add_port() 78 else if(strcmp(protocol, "tcp") == 0) in add_port() 82 for(i = 0; i < num_ports; i++){ in add_port() 129 port = htons(strtol(str, &end, 0)); in add_port_string() 175 if(strcmp(p, "+") == 0) { in parse_ports() 183 *q++ = 0; in parse_ports() 222 init_descr(struct descr *d) in init_descr() argument 224 memset(d, 0, sizeof(*d)); in init_descr() 225 d->sa = (struct sockaddr *)&d->__ss; in init_descr() 226 d->s = rk_INVALID_SOCKET; in init_descr() [all …]
|
/freebsd/crypto/openssl/crypto/md5/ |
H A D | md5_dgst.c | 24 #define INIT_DATA_A (unsigned long)0x67452301L 25 #define INIT_DATA_B (unsigned long)0xefcdab89L 26 #define INIT_DATA_C (unsigned long)0x98badcfeL 27 #define INIT_DATA_D (unsigned long)0x10325476L 31 memset(c, 0, sizeof(*c)); in MD5_Init() 35 c->D = INIT_DATA_D; in MD5_Init() 46 register unsigned MD32_REG_T A, B, C, D, l; in md5_block_data_order() local 60 D = c->D; in md5_block_data_order() 64 X(0) = l; in md5_block_data_order() 67 /* Round 0 */ in md5_block_data_order() [all …]
|
/freebsd/contrib/bsddialog/lib/ |
H A D | lib_util.c | 137 memset(&mbs, 0, sizeof(mbs)); in alloc_mbstows() 138 while ((charlen = mbrlen(pmbstring, MB_CUR_MAX, &mbs)) != 0 && in alloc_mbstows() 155 ws[0] = wch; in mvwaddwch() 156 ws[1] = L'\0'; in mvwaddwch() 171 ncol = 0; in str_props() 172 memset(&mbs, 0, sizeof(mbs)); in str_props() 173 while ((charlen = mbrlen(mbstring, mb_cur_max, &mbs)) != 0 && in str_props() 175 if (mbtowc(&wch, mbstring, mb_cur_max) < 0) in str_props() 178 ncol += (w < 0) ? 0 in str_props() 268 draw_buttons(struct dialog * d) draw_buttons() argument 297 set_buttons(struct dialog * d,bool shortcut,const char * oklabel,const char * cancellabel) set_buttons() argument 921 dialog_size_position(struct dialog * d,int hnotext,int minw,int * htext) dialog_size_position() argument 939 hide_dialog(struct dialog * d) hide_dialog() argument 1035 rtextpad(struct dialog * d,int ytext,int xtext,int upnotext,int downnotext) rtextpad() argument 1047 end_dialog(struct dialog * d) end_dialog() argument 1249 draw_dialog(struct dialog * d) draw_dialog() argument 1328 prepare_dialog(struct bsddialog_conf * conf,const char * text,int rows,int cols,struct dialog * d) prepare_dialog() argument [all...] |
H A D | messagebox.c | 41 static void textupdate(struct dialog *d, struct scroll *s) in textupdate() argument 43 if (s->htext > 0 && s->htextpad > s->printrows) { in textupdate() 44 wattron(d->widget, t.dialog.arrowcolor); in textupdate() 45 mvwprintw(d->widget, d->h - HBUTTONS - BORDER, in textupdate() 46 d->w - 4 - TEXTHMARGIN - BORDER, in textupdate() 47 "%3d%%", 100 * (s->ypad + s->printrows) / s->htextpad); in textupdate() 48 wattroff(d->widget, t.dialog.arrowcolor); in textupdate() 49 wnoutrefresh(d->widget); in textupdate() 51 rtextpad(d, in textupdate() 54 message_size_position(struct dialog * d,int * htext) message_size_position() argument 72 message_draw(struct dialog * d,struct scroll * s) message_draw() argument 103 struct dialog d; do_message() local 211 struct dialog d; bsddialog_infobox() local [all...] |
/freebsd/contrib/lua/src/ |
H A D | ldump.c | 36 #define dumpVector(D,v,n) dumpBlock(D,v,(n)*sizeof((v)[0])) argument 38 #define dumpLiteral(D, s) dumpBlock(D,s,sizeof(s) - sizeof(char)) argument 41 static void dumpBlock (DumpState *D, const void *b, size_t size) { in dumpBlock() argument 42 if (D->status == 0 && size > 0) { in dumpBlock() 43 lua_unlock(D->L); in dumpBlock() 44 D->status = (*D->writer)(D->L, b, size, D->data); in dumpBlock() 45 lua_lock(D->L); in dumpBlock() 50 #define dumpVar(D,x) dumpVector(D,&x,1) argument 53 static void dumpByte (DumpState *D, int y) { in dumpByte() argument 55 dumpVar(D, x); in dumpByte() [all …]
|
H A D | luac.c | 34 static int listing=0; /* list bytecodes? */ 36 static int stripping=0; /* strip debug information? */ 74 #define IS(s) (strcmp(argv[i],s)==0) 79 int version=0; in doargs() 80 if (argv[0]!=NULL && *argv[0]!=0) progname=argv[0]; in doargs() 98 if (output==NULL || *output==0 || (*output=='-' && output[1]!=0)) in doargs() 103 dumping=0; in doargs() 113 dumping=0; in doargs() 136 *size=0; in reader() 153 for (i=0; i<n; i++) in combine() [all …]
|
/freebsd/sys/crypto/openssl/aarch64/ |
H A D | armv8-mont.S | 33 add x29,sp,#0 38 ldr x9,[x2],#8 // bp[0] 40 ldp x7,x8,[x1],#16 // ap[0..1] 44 ldp x13,x14,[x3],#16 // np[0..1] 46 mul x6,x7,x9 // ap[0]*bp[0] 49 mul x10,x8,x9 // ap[1]*bp[0] 52 mul x15,x6,x4 // "tp[0]"*n0 55 // (*) mul x12,x13,x15 // np[0]*m1 81 mul x10,x8,x9 // ap[j]*bp[0] 111 ldr x23,[sp] // tp[0] [all …]
|
/freebsd/tools/tools/ath/athalq/ |
H A D | ar9300_ds.c | 39 static uint32_t last_ts = 0; 47 printf("[%u.%06u] [%llu] TXPUSH txq=%d, nframes=%d, fifodepth=%d, frmcount=%d\n", in ath_alq_print_edma_tx_fifo_push() 65 printf("[%u.%06u] [%llu] TXSTATUS TxTimestamp=%u (%u), DescId=0x%04x, QCU=%d\n", in ar9300_decode_txstatus() 73 printf(" DescId=0x%08x\n", txs.status1); in ar9300_decode_txstatus() 77 printf(" DescLen=%d, TxQcuNum=%d, CtrlStat=%d, DescId=0x%04x\n", in ar9300_decode_txstatus() 78 txs.ds_info & 0xff, in ar9300_decode_txstatus() 85 printf(" TxDone=%d, SeqNo=%d, TxOpExceed=%d, TXBFStatus=%d\n", in ar9300_decode_txstatus() 91 printf(" TXBfMismatch=%d, BFStreamMiss=%d, FinalTxIdx=%d\n", in ar9300_decode_txstatus() 96 printf(" TxBfDestMiss=%d, TxBfExpired=%d, PwrMgmt=%d, Tid=%d," in ar9300_decode_txstatus() 97 " FastTsBit=%d\n", in ar9300_decode_txstatus() [all …]
|
H A D | ar5416_ds.c | 46 printf("[%u.%06u] [%llu] TXSTATUS: TxDone=%d, FrmOk=%d, filt=%d, TS=0x%08x\n", in ar5416_decode_txstatus() 56 printf(" RX RSSI 0 [%d %d %d]", in ar5416_decode_txstatus() 57 MS(txs.u.tx.status[0], AR_TxRSSIAnt00), in ar5416_decode_txstatus() 58 MS(txs.u.tx.status[0], AR_TxRSSIAnt01), in ar5416_decode_txstatus() 59 MS(txs.u.tx.status[0], AR_TxRSSIAnt02)); in ar5416_decode_txstatus() 62 printf(" RX RSSI 1 [%d %d %d] Comb=%d\n", in ar5416_decode_txstatus() 69 printf(" BA Valid=%d", in ar5416_decode_txstatus() 70 MF(txs.u.tx.status[0], AR_TxBaStatus)); in ar5416_decode_txstatus() 73 printf(", Frmok=%d, xretries=%d, fifounderrun=%d, filt=%d\n", in ar5416_decode_txstatus() 78 printf(" DelimUnderrun=%d, DataUnderun=%d, DescCfgErr=%d," in ar5416_decode_txstatus() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_md5.cpp | 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 21 #define STEP(f, a, b, c, d, x, t, s) \ argument 22 (a) += f((b), (c), (d)) + (x) + (t); \ 23 (a) = (((a) << (s)) | (((a) & 0xffffffff) >> (32 - (s)))); \ 36 MD5_u32plus a, b, c, d; member 43 MD5_u32plus a, b, c, d; in body() local 49 d = ctx->d; in body() 55 saved_d = d; in body() 57 STEP(F, a, b, c, d, SET(0), 0xd76aa478, 7) in body() 58 STEP(F, d, a, b, c, SET(1), 0xe8c7b756, 12) in body() [all …]
|
/freebsd/crypto/openssl/crypto/md4/ |
H A D | md4_dgst.c | 24 #define INIT_DATA_A (unsigned long)0x67452301L 25 #define INIT_DATA_B (unsigned long)0xefcdab89L 26 #define INIT_DATA_C (unsigned long)0x98badcfeL 27 #define INIT_DATA_D (unsigned long)0x10325476L 31 memset(c, 0, sizeof(*c)); in MD4_Init() 35 c->D = INIT_DATA_D; in MD4_Init() 46 register unsigned MD32_REG_T A, B, C, D, l; in md4_block_data_order() local 60 D = c->D; in md4_block_data_order() 64 X(0) = l; in md4_block_data_order() 67 /* Round 0 */ in md4_block_data_order() [all …]
|
/freebsd/share/man/man4/ |
H A D | ena.4 | 102 1d0f:0ec2 - ENA PF 104 1d0f:1ec2 - ENA PF with LLQ support 106 1d0f:ec20 - ENA VF 108 1d0f:ec21 - ENA VF with LLQ support 127 The default is 0. 129 If set to 0, page size mbufs will be used instead. 141 If the node value is set to 0, the regular size LLQ header will be used, which 160 The higher the logging level, the more logs will be printed out. 0 means all 169 0 - ENA_ERR - Enable driver error messages and ena_com error logs. 224 sysctl dev.ena.0.rx_queue_size=8192 [all …]
|
/freebsd/tools/sched/ |
H A D | schedgraph.d | 35 * # ./schedgraph.d > /tmp/sched.out 40 #pragma D option quiet 41 #pragma D option bufpolicy=ring 43 inline int TDF_IDLETD = 0x00000020; 49 inline int TDI_SUSPENDED = 0x0001; /* On suspension queue. */ 50 inline int TDI_SLEEPING = 0x0002; /* Actually asleep! (tricky). */ 51 inline int TDI_SWAPPED = 0x0004; /* Stack not in mem. Bad juju if run. */ 52 inline int TDI_LOCK = 0x0008; /* Stopped on a lock. */ 53 inline int TDI_IWAIT = 0x0010; /* Awaiting interrupt. */ 56 (((td)->td_inhibitors & TDI_SLEEPING) != 0 ? "sleep" : \ [all …]
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | md5.c | 36 (cp)[0] = (value); } while (0) 42 (cp)[0] = (value); } while (0) 45 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 51 * Start MD5 accumulation. Set bit count to 0 and buffer to mysterious 57 ctx->count = 0; in MD5Init() 58 ctx->state[0] = 0x67452301; in MD5Init() 59 ctx->state[1] = 0xefcdab89; in MD5Init() 60 ctx->state[2] = 0x98badcfe; in MD5Init() [all …]
|
/freebsd/crypto/openssl/test/recipes/04-test_pem_reading_data/ |
H A D | cert-onecolumn.pem | 7 D 40 0 47 D 78 d 82 d 85 0 100 d 109 D 113 0 121 0 [all …]
|
/freebsd/contrib/libfido2/src/ |
H A D | io.c | 34 tx_pkt(fido_dev_t *d, const void *pkt, size_t len, int *ms) 39 if (fido_time_now(&ts) != 0) 42 n = d->io.write(d->io_handle, pkt, len); 44 if (fido_time_delta(&ts, ms) != 0) 51 tx_empty(fido_dev_t *d, uint8_t cmd, int *ms) in tx_empty() argument 55 const size_t len = d->tx_len + 1; in tx_empty() 58 memset(&pkt, 0, sizeof(pkt)); in tx_empty() 60 fp->cid = d->cid; in tx_empty() 63 if (len > sizeof(pkt) || (n = tx_pkt(d, pkt, len, ms)) < 0 || in tx_empty() 67 return (0); in tx_empty() [all …]
|
/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_archive_pathmatch.c | 48 assertEqualInt(1, archive_pathmatch("a/b/c", "a/b/c", 0)); in DEFINE_TEST() 49 assertEqualInt(0, archive_pathmatch("a/b/", "a/b/c", 0)); in DEFINE_TEST() 50 assertEqualInt(0, archive_pathmatch("a/b", "a/b/c", 0)); in DEFINE_TEST() 51 assertEqualInt(0, archive_pathmatch("a/b/c", "a/b/", 0)); in DEFINE_TEST() 52 assertEqualInt(0, archive_pathmatch("a/b/c", "a/b", 0)); in DEFINE_TEST() 55 assertEqualInt(0, archive_pathmatc in DEFINE_TEST() [all...] |